summaryrefslogtreecommitdiff
path: root/plugingui/Makefile.am
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2017-02-05 17:06:05 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2017-02-05 17:28:41 +0100
commit50d510c6e66673849ff1eabbe9a8d6f9e363b1fc (patch)
tree271aee8eeff57343284ab5aa6a16500f8124a146 /plugingui/Makefile.am
parent23f0882bf1e40396de530e44255ce5987b5248ff (diff)
Compile plugingui as a library.
Diffstat (limited to 'plugingui/Makefile.am')
-rw-r--r--plugingui/Makefile.am88
1 files changed, 85 insertions, 3 deletions
diff --git a/plugingui/Makefile.am b/plugingui/Makefile.am
index 49025c7..e67b9f6 100644
--- a/plugingui/Makefile.am
+++ b/plugingui/Makefile.am
@@ -1,8 +1,91 @@
noinst_PROGRAMS = plugingui rcgen
+noinst_LTLIBRARIES = libdggui.la
-include Makefile.am.plugingui
+#include Makefile.am.plugingui
-plugingui_LDADD = $(PLUGIN_GUI_LIBS)
+resource_data.cc : rcgen
+ (cd resources; ../rcgen * > ../resource_data.cc)
+
+PLUGIN_GUI_LIBS = $(GUI_LIBS) $(PTHREAD_LIBS)
+
+PLUGIN_GUI_CPPFLAGS = \
+ $(GUI_CPPFLAGS) -I$(top_srcdir)/hugin \
+ -I$(top_srcdir)/plugingui \
+ -DWITH_HUG_MUTEX $(PTHREAD_CFLAGS) \
+ -DLODEPNG_NO_COMPILE_ENCODER \
+ -DLODEPNG_NO_COMPILE_DISK \
+ -DLODEPNG_NO_COMPILE_ANCILLARY_CHUNKS \
+ -DLODEPNG_NO_COMPILE_ERROR_TEXT \
+ -DLODEPNG_NO_COMPILE_CPP
+
+libdggui_la_CPPFLAGS = $(PLUGIN_GUI_CPPFLAGS) -I../src
+libdggui_la_LIBADD = $(PLUGIN_GUI_LIBS)
+nodist_libdggui_la_SOURCES = \
+ $(top_srcdir)/hugin/hugin.c \
+ dgwindow.cc \
+ plugingui.cc \
+ label.cc \
+ eventhandler.cc \
+ font.cc \
+ window.cc \
+ widget.cc \
+ colour.cc \
+ painter.cc \
+ button.cc \
+ pixelbuffer.cc \
+ lineedit.cc \
+ led.cc \
+ checkbox.cc \
+ mainwindow.cc \
+ slider.cc \
+ scrollbar.cc \
+ stackedwidget.cc \
+ tabbutton.cc \
+ tabwidget.cc \
+ textedit.cc \
+ texture.cc \
+ texturedbox.cc \
+ layout.cc \
+ listbox.cc \
+ listboxthin.cc \
+ listboxbasic.cc \
+ knob.cc \
+ filebrowser.cc \
+ directory.cc \
+ pluginconfig.cc \
+ imagecache.cc \
+ image.cc \
+ combobox.cc \
+ progressbar.cc \
+ verticalline.cc \
+ resource.cc \
+ resource_data.cc \
+ lodepng/lodepng.cpp
+
+if ENABLE_X11
+nodist_libdggui_la_SOURCES += \
+ nativewindow_x11.cc
+endif
+
+if ENABLE_WIN32
+nodist_libdggui_la_SOURCES += \
+ nativewindow_win32.cc
+endif
+
+if ENABLE_PUGL
+nodist_libdggui_la_SOURCES += \
+ nativewindow_pugl.cc \
+ $(top_srcdir)/pugl/pugl/pugl_x11.c
+PLUGIN_GUI_CPPFLAGS += -I$(top_srcdir)/pugl/pugl
+endif
+
+#if ENABLE_COCOA
+#nodist_libdggui_la_SOURCES += \
+# nativewindow_cocoa.m \
+# nativewindow_cocoa.cc
+#endif
+
+plugingui_LDADD = $(PLUGIN_GUI_LIBS) libdggui.la
plugingui_CXXFLAGS = $(SNDFILE_CXXFLAGS) $(PTHREAD_CFLAGS) $(EXPAT_CFLAGS) \
-I$(top_srcdir)/include $(PLUGIN_GUI_CPPFLAGS) -I$(top_srcdir)/src \
@@ -12,7 +95,6 @@ plugingui_CFLAGS = $(plugingui_CXXFLAGS)
plugingui_SOURCES = \
testmain.cc \
- $(PLUGIN_GUI_SOURCES) \
$(top_srcdir)/src/configfile.cc \
$(top_srcdir)/src/thread.cc \
$(top_srcdir)/src/semaphore.cc \