1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
|
#if 0/*
if [ "cppbuild" -ot "$0" ]
then
echo "Rebuilding cppbuild"
g++ -s -O3 -std=c++17 -pthread $0 libcppbuild.a -o cppbuild
[ $? != 0 ] && exit 1
fi
echo "Launching cppbuild"
./cppbuild $*
exit $?
*/
#endif
#include <vector>
#include <string>
#include <utility>
#include "libcppbuild.h"
std::vector<BuildConfiguration> configs()
{
return
{
{
.target = "plugingui",
.sources = {
"drumgizmo/zita-resampler/libs/cresampler.cc",
"drumgizmo/zita-resampler/libs/resampler-table.cc",
"drumgizmo/zita-resampler/libs/resampler.cc",
"drumgizmo/zita-resampler/libs/vresampler.cc",
"drumgizmo/hugin/hugin.c",
"drumgizmo/pugixml/src/pugixml.cpp",
},
.depends = {
"libplugingui.so",
},
.cxxflags = {
"-DUI_X11",
"-O3",
"-g",
"-Wall",
"-Werror",
"-std=c++11",
"-Idrumgizmo/getoptpp",
"-Idrumgizmo/",
"-Idrumgizmo/hugin",
"-Idrumgizmo/plugingui/",
"-Idrumgizmo/src/",
"-Idrumgizmo/zita-resampler/libs",
"-Idrumgizmo/pugixml/src",
},
.cflags = {
"-g",
//"-O3",
"-Wall",
"-Werror",
},
.ldflags = {
"-lm",
"-lX11",
"-lXext",
"-lsndfile",
"-pthread",
}
},
{
.target = "src.a",
.sources = {
"drumgizmo/src/audiocache.cc",
"drumgizmo/src/audiocacheeventhandler.cc",
"drumgizmo/src/audiocachefile.cc",
"drumgizmo/src/audiocacheidmanager.cc",
"drumgizmo/src/audiofile.cc",
"drumgizmo/src/audioinputengine.cc",
"drumgizmo/src/audioinputenginemidi.cc",
"drumgizmo/src/audiooutputengine.cc",
"drumgizmo/src/bytesizeparser.cc",
"drumgizmo/src/channel.cc",
"drumgizmo/src/channelmixer.cc",
"drumgizmo/src/configfile.cc",
"drumgizmo/src/configparser.cc",
"drumgizmo/src/dgxmlparser.cc",
"drumgizmo/src/directory.cc",
"drumgizmo/src/domloader.cc",
"drumgizmo/src/drumgizmo.cc",
"drumgizmo/src/drumgizmoconf.cc",
"drumgizmo/src/drumkit.cc",
"drumgizmo/src/drumkitloader.cc",
"drumgizmo/src/events.cc",
"drumgizmo/src/events_ds.cc",
"drumgizmo/src/inputprocessor.cc",
"drumgizmo/src/instrument.cc",
"drumgizmo/src/latencyfilter.cc",
"drumgizmo/src/midimapparser.cc",
"drumgizmo/src/midimapper.cc",
"drumgizmo/src/path.cc",
"drumgizmo/src/powerlist.cc",
"drumgizmo/src/powermap.cc",
"drumgizmo/src/powermapfilter.cc",
"drumgizmo/src/random.cc",
"drumgizmo/src/sample.cc",
"drumgizmo/src/sample_selection.cc",
"drumgizmo/src/sem.cc",
"drumgizmo/src/staminafilter.cc",
"drumgizmo/src/thread.cc",
"drumgizmo/src/translation.cc",
"drumgizmo/src/velocityfilter.cc",
"drumgizmo/src/versionstr.cc",
"drumgizmo/src/zrwrapper.cc",
},
.depends = {},
.cxxflags = {
"-fPIC",
"-DUI_X11",
"-O3",
"-g",
"-Wall",
"-Werror",
"-std=c++11",
"-Idrumgizmo/getoptpp",
"-Idrumgizmo/",
"-Idrumgizmo/hugin",
"-Idrumgizmo/plugingui/",
"-Idrumgizmo/src/",
"-Idrumgizmo/zita-resampler/libs",
"-Idrumgizmo/pugixml/src",
},
.cflags = {},
.ldflags = {}
},
{
.target = "libplugingui.so",
.sources = {
"drumgizmo/plugingui/abouttab.cc",
"drumgizmo/plugingui/bleedcontrolframecontent.cc",
"drumgizmo/plugingui/button.cc",
"drumgizmo/plugingui/button_base.cc",
"drumgizmo/plugingui/checkbox.cc",
"drumgizmo/plugingui/colour.cc",
"drumgizmo/plugingui/combobox.cc",
"drumgizmo/plugingui/dialog.cc",
"drumgizmo/plugingui/diskstreamingframecontent.cc",
"drumgizmo/plugingui/drumkitframecontent.cc",
"drumgizmo/plugingui/drumkittab.cc",
"drumgizmo/plugingui/eventhandler.cc",
"drumgizmo/plugingui/filebrowser.cc",
"drumgizmo/plugingui/font.cc",
"drumgizmo/plugingui/frame.cc",
"drumgizmo/plugingui/helpbutton.cc",
"drumgizmo/plugingui/humaniservisualiser.cc",
"drumgizmo/plugingui/humanizerframecontent.cc",
"drumgizmo/plugingui/image.cc",
"drumgizmo/plugingui/imagecache.cc",
"drumgizmo/plugingui/knob.cc",
"drumgizmo/plugingui/label.cc",
"drumgizmo/plugingui/layout.cc",
"drumgizmo/plugingui/led.cc",
"drumgizmo/plugingui/lineedit.cc",
"drumgizmo/plugingui/listbox.cc",
"drumgizmo/plugingui/listboxbasic.cc",
"drumgizmo/plugingui/listboxthin.cc",
"drumgizmo/plugingui/maintab.cc",
"drumgizmo/plugingui/mainwindow.cc",
"drumgizmo/plugingui/nativewindow_x11.cc",
"drumgizmo/plugingui/painter.cc",
"drumgizmo/plugingui/pixelbuffer.cc",
"drumgizmo/plugingui/pluginconfig.cc",
"drumgizmo/plugingui/powerbutton.cc",
"drumgizmo/plugingui/powerwidget.cc",
"drumgizmo/plugingui/progressbar.cc",
"drumgizmo/plugingui/resamplingframecontent.cc",
"drumgizmo/plugingui/resource.cc",
"drumgizmo/plugingui/resource_data.cc",
"drumgizmo/plugingui/sampleselectionframecontent.cc",
"drumgizmo/plugingui/scrollbar.cc",
"drumgizmo/plugingui/slider.cc",
"drumgizmo/plugingui/stackedwidget.cc",
"drumgizmo/plugingui/statusframecontent.cc",
"drumgizmo/plugingui/tabbutton.cc",
"drumgizmo/plugingui/tabwidget.cc",
"drumgizmo/plugingui/testmain.cc",
"drumgizmo/plugingui/textedit.cc",
"drumgizmo/plugingui/texture.cc",
"drumgizmo/plugingui/texturedbox.cc",
"drumgizmo/plugingui/timingframecontent.cc",
"drumgizmo/plugingui/toggle.cc",
"drumgizmo/plugingui/tooltip.cc",
"drumgizmo/plugingui/uitranslation.cc",
"drumgizmo/plugingui/utf8.cc",
"drumgizmo/plugingui/verticalline.cc",
"drumgizmo/plugingui/visualizerframecontent.cc",
"drumgizmo/plugingui/voicelimitframecontent.cc",
"drumgizmo/plugingui/widget.cc",
"drumgizmo/plugingui/window.cc",
"drumgizmo/plugingui/lodepng/lodepng.cpp",
},
.depends = {
"src.a",
},
.cxxflags = {
"-DUI_X11",
"-O3",
"-g",
"-Wall",
"-Werror",
"-std=c++11",
"-Idrumgizmo/getoptpp",
"-Idrumgizmo/",
"-Idrumgizmo/hugin",
"-Idrumgizmo/plugingui/",
"-Idrumgizmo/src/",
"-Idrumgizmo/zita-resampler/libs",
"-Idrumgizmo/pugixml/src",
},
.cflags = {},
.ldflags = {}
},
};
}
|