1SUBDIRS = locale
2DISTDIRS = locale
3
4noinst_PROGRAMS = plugingui rcgen
5noinst_LTLIBRARIES = libdggui.la
6
7# If you add a file here, remember to add it to plugin/Makefile.mingw32.in
8RES = \
9	$(top_srcdir)/plugingui/resources/bg.png \
10	$(top_srcdir)/plugingui/resources/bypass_button.png \
11	$(top_srcdir)/plugingui/resources/font.png \
12	$(top_srcdir)/plugingui/resources/fontemboss.png \
13	$(top_srcdir)/plugingui/resources/help_button.png \
14	$(top_srcdir)/plugingui/resources/knob.png \
15	$(top_srcdir)/plugingui/resources/logo.png \
16	$(top_srcdir)/plugingui/resources/png_error \
17	$(top_srcdir)/plugingui/resources/progress.png \
18	$(top_srcdir)/plugingui/resources/pushbutton.png \
19	$(top_srcdir)/plugingui/resources/sidebar.png \
20	$(top_srcdir)/plugingui/resources/slider.png \
21	$(top_srcdir)/plugingui/resources/stddev_horizontal.png \
22	$(top_srcdir)/plugingui/resources/stddev_horizontal_disabled.png \
23	$(top_srcdir)/plugingui/resources/stddev_vertical.png \
24	$(top_srcdir)/plugingui/resources/stddev_vertical_disabled.png \
25	$(top_srcdir)/plugingui/resources/switch_back_off.png \
26	$(top_srcdir)/plugingui/resources/switch_back_on.png \
27	$(top_srcdir)/plugingui/resources/switch_front.png \
28	$(top_srcdir)/plugingui/resources/tab.png \
29	$(top_srcdir)/plugingui/resources/thinlistbox.png \
30	$(top_srcdir)/plugingui/resources/topbar.png \
31	$(top_srcdir)/plugingui/resources/toplogo.png \
32	$(top_srcdir)/plugingui/resources/vertline.png \
33	$(top_srcdir)/plugingui/resources/widget.png \
34	$(top_srcdir)/plugingui/../ABOUT \
35	$(top_srcdir)/plugingui/../ABOUT.fr \
36	$(top_srcdir)/plugingui/../AUTHORS \
37	$(top_srcdir)/plugingui/../AUTHORS.fr \
38	$(top_srcdir)/plugingui/../BUGS \
39	$(top_srcdir)/plugingui/../BUGS.fr \
40	$(top_srcdir)/plugingui/../COPYING
41
42if WITH_NLS
43$(top_srcdir)/plugingui/locale/drumgizmo.pot: $(GUI_SRC) $(GUI_HDR)
44	(cd $(top_srcdir)/plugingui/; $(XGETTEXT) --package-name "$(PACKAGE)" --package-version "$(VERSION)" --copyright-holder="DrumGizmo Team" -k_ -o locale/drumgizmo.pot $(GUI_SRC) $(GUI_HDR) )
45	grep -v '"POT-Creation-Date:' $(top_srcdir)/plugingui/locale/drumgizmo.pot > $(top_srcdir)/plugingui/locale/drumgizmo.pot.tmp
46	mv $(top_srcdir)/plugingui/locale/drumgizmo.pot.tmp $(top_srcdir)/plugingui/locale/drumgizmo.pot
47
48NLS_RES = \
49	$(top_builddir)/plugingui/locale/da.mo \
50	$(top_builddir)/plugingui/locale/fr.mo
51
52# NOTE: Manually create initial (new) .po file with msginit
53$(top_srcdir)/plugingui/locale/da.po \
54$(top_srcdir)/plugingui/locale/fr.po: $(top_srcdir)/plugingui/locale/drumgizmo.pot
55	$(MSGMERGE) --update $@ $(top_srcdir)/plugingui/locale/drumgizmo.pot
56
57$(top_builddir)/plugingui/locale/da.mo: $(top_srcdir)/plugingui/locale/da.po
58	$(MSGFMT) -c -v -o $@ $(top_srcdir)/plugingui/locale/da.po
59
60$(top_builddir)/plugingui/locale/fr.mo: $(top_srcdir)/plugingui/locale/fr.po
61	$(MSGFMT) -c -v -o $@ $(top_srcdir)/plugingui/locale/fr.po
62
63endif
64
65rcgen_verbose = $(rcgen_verbose_@AM_V@)
66rcgen_verbose_ = $(rcgen_verbose_@AM_DEFAULT_V@)
67rcgen_verbose_0 = @echo "  RCGEN    "$@;
68
69BUILT_SOURCES = \
70	resource_data.cc \
71	$(NLS_RES)
72
73resource_data.cc: rcgen$(EXEEXT) $(RES) $(NLS_RES)
74	$(rcgen_verbose)./rcgen$(EXEEXT) -s $(top_srcdir)/plugingui/ -s $(top_builddir)/plugingui/ -o $@ $(RES) $(NLS_RES)
75
76CLEANFILES = \
77	resource_data.cc \
78	$(NLS_RES)
79
80libdggui_la_CPPFLAGS = \
81	$(DEBUG_FLAGS) \
82	-I$(top_srcdir) \
83	$(GUI_CPPFLAGS) \
84	-I$(top_srcdir)/hugin \
85	-I$(top_srcdir)/src \
86	-DWITH_HUG_MUTEX $(PTHREAD_CFLAGS) \
87	-DLODEPNG_NO_COMPILE_ENCODER \
88	-DLODEPNG_NO_COMPILE_DISK \
89	-DLODEPNG_NO_COMPILE_ANCILLARY_CHUNKS \
90	-DLODEPNG_NO_COMPILE_ERROR_TEXT \
91	-DLODEPNG_NO_COMPILE_CPP
92
93libdggui_la_CFLAGS =
94
95libdggui_la_LIBTOOLFLAGS=--tag=CC
96
97libdggui_la_LIBADD = \
98	$(GUI_LIBS) $(PTHREAD_LIBS)
99
100# If you add a file here, remember to add it to plugin/Makefile.mingw32.in
101GUI_SRC = \
102	abouttab.cc \
103	bleedcontrolframecontent.cc \
104	button.cc \
105	button_base.cc \
106	checkbox.cc \
107	colour.cc \
108	combobox.cc \
109	dialog.cc \
110	diskstreamingframecontent.cc \
111	drumkitframecontent.cc \
112	drumkittab.cc \
113	eventhandler.cc \
114	filebrowser.cc \
115	font.cc \
116	frame.cc \
117	helpbutton.cc \
118	humanizerframecontent.cc \
119	humaniservisualiser.cc \
120	image.cc \
121	imagecache.cc \
122	knob.cc \
123	label.cc \
124	layout.cc \
125	led.cc \
126	lineedit.cc \
127	listbox.cc \
128	listboxbasic.cc \
129	listboxthin.cc \
130	maintab.cc \
131	mainwindow.cc \
132	painter.cc \
133	pixelbuffer.cc \
134	pluginconfig.cc \
135	powerbutton.cc \
136	powerwidget.cc \
137	progressbar.cc \
138	resamplingframecontent.cc \
139	resource.cc \
140	sampleselectionframecontent.cc \
141	scrollbar.cc \
142	slider.cc \
143	stackedwidget.cc \
144	statusframecontent.cc \
145	tabbutton.cc \
146	tabwidget.cc \
147	textedit.cc \
148	texture.cc \
149	texturedbox.cc \
150	timingframecontent.cc \
151	toggle.cc \
152	tooltip.cc \
153	uitranslation.cc \
154	utf8.cc \
155	verticalline.cc \
156	visualizerframecontent.cc \
157	voicelimitframecontent.cc \
158	widget.cc \
159	window.cc
160
161GUI_HDR = \
162	abouttab.h \
163	bleedcontrolframecontent.h \
164	button.h \
165	button_base.h \
166	canvas.h \
167	checkbox.h \
168	colour.h \
169	combobox.h \
170	dialog.h \
171	diskstreamingframecontent.h \
172	drawable.h \
173	drumkitframecontent.h \
174	drumkittab.h \
175	eventhandler.h \
176	filebrowser.h \
177	font.h \
178	frame.h \
179	guievent.h \
180	helpbutton.h \
181	humaniservisualiser.h \
182	humanizerframecontent.h \
183	image.h \
184	imagecache.h \
185	knob.h \
186	label.h \
187	labeledcontrol.h \
188	layout.h \
189	led.h \
190	lineedit.h \
191	listbox.h \
192	listboxbasic.h \
193	listboxthin.h \
194	maintab.h \
195	mainwindow.h \
196	nativewindow.h \
197	nativewindow_cocoa.h \
198	nativewindow_cocoa.mm \
199	nativewindow_pugl.h \
200	nativewindow_pugl.cc \
201	nativewindow_win32.h \
202	nativewindow_win32.cc \
203	nativewindow_x11.h \
204	nativewindow_x11.cc \
205	painter.h \
206	pixelbuffer.h \
207	pluginconfig.h \
208	powerbutton.h \
209	powerwidget.h \
210	progressbar.h \
211	resamplingframecontent.h \
212	resource.h \
213	resource_data.h \
214	sampleselectionframecontent.h \
215	scrollbar.h \
216	slider.h \
217	stackedwidget.h \
218	statusframecontent.h \
219	tabbutton.h \
220	tabwidget.h \
221	textedit.h \
222	texture.h \
223	texturedbox.h \
224	timingframecontent.h \
225	toggle.h \
226	tooltip.h \
227	uitranslation.h \
228	utf8.h \
229	verticalline.h \
230	visualizerframecontent.h \
231	voicelimitframecontent.h \
232	widget.h \
233	window.h
234
235libdggui_la_SOURCES = \
236	$(GUI_SRC) \
237	lodepng/lodepng.cpp
238
239nodist_libdggui_la_SOURCES = \
240	$(top_builddir)/plugingui/resource_data.cc
241
242if ENABLE_X11
243nodist_libdggui_la_SOURCES += \
244	nativewindow_x11.cc
245endif
246
247if ENABLE_WIN32
248nodist_libdggui_la_SOURCES += \
249	nativewindow_win32.cc
250endif
251
252if ENABLE_COCOA
253nodist_libdggui_la_SOURCES += \
254	nativewindow_cocoa.mm
255
256libdggui_la_OBJCXXFLAGS = \
257	-fblocks
258endif
259
260if ENABLE_PUGL_X11
261nodist_libdggui_la_SOURCES += \
262	nativewindow_pugl.cc \
263	$(top_srcdir)/pugl/pugl/pugl_x11.c
264
265libdggui_la_CPPFLAGS += \
266	-I$(top_srcdir)/pugl
267
268libdggui_la_CFLAGS += \
269	-std=c99
270endif
271
272if ENABLE_PUGL_WIN32
273nodist_libdggui_la_SOURCES += \
274	nativewindow_pugl.cc \
275	$(top_srcdir)/pugl/pugl/pugl_win.cpp
276
277libdggui_la_CPPFLAGS += \
278	-I$(top_srcdir)/pugl
279endif
280
281if ENABLE_PUGL_COCOA
282nodist_libdggui_la_SOURCES += \
283	nativewindow_pugl.cc \
284	$(top_srcdir)/pugl/pugl/pugl_osx.m
285
286libdggui_la_CPPFLAGS += \
287	-I$(top_srcdir)/pugl
288endif
289
290plugingui_LDADD = \
291	libdggui.la \
292	$(top_builddir)/src/libdg.la \
293	$(top_builddir)/src/libnls.la
294
295plugingui_CXXFLAGS = \
296	$(DEBUG_FLAGS) \
297	$(GUI_CPPFLAGS) \
298	$(SNDFILE_CXXFLAGS) \
299	$(PTHREAD_CFLAGS) \
300	-I$(top_srcdir)/src \
301	-I$(top_srcdir)/hugin
302
303plugingui_CFLAGS = $(plugingui_CXXFLAGS)
304
305plugingui_SOURCES = \
306	testmain.cc \
307	$(top_srcdir)/hugin/hugin.c
308
309rcgen_CXXFLAGS = -I$(top_srcdir)/getoptpp
310rcgen_SOURCES = \
311	rcgen.cc
312
313EXTRA_DIST = \
314	$(RES) \
315	$(GUI_HDR)
316