summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugin/Makefile.mingw32.in101
1 files changed, 83 insertions, 18 deletions
diff --git a/plugin/Makefile.mingw32.in b/plugin/Makefile.mingw32.in
index 71b082c..b81b123 100644
--- a/plugin/Makefile.mingw32.in
+++ b/plugin/Makefile.mingw32.in
@@ -6,8 +6,82 @@ VST_SRC = \
${VST_SRC_BASE}/audioeffectx.cpp \
${VST_SRC_BASE}/audioeffect.cpp \
${VST_SRC_BASE}/vstplugmain.cpp
-VST_CPPFLAGS=-I$(VST_BASE)
+VST_CFLAGS=-I$(VST_BASE)
+DG_SRC = \
+ @top_srcdir@/src/audiocachefile.cc \
+ @top_srcdir@/src/audiocache.cc \
+ @top_srcdir@/src/audiocacheeventhandler.cc \
+ @top_srcdir@/src/audiocacheidmanager.cc \
+ @top_srcdir@/src/audioinputenginemidi.cc \
+ @top_srcdir@/src/audiofile.cc \
+ @top_srcdir@/src/channel.cc \
+ @top_srcdir@/src/channelmixer.cc \
+ @top_srcdir@/src/chresampler.cc \
+ @top_srcdir@/src/configfile.cc \
+ @top_srcdir@/src/configuration.cc \
+ @top_srcdir@/src/configparser.cc \
+ @top_srcdir@/src/drumgizmo.cc \
+ @top_srcdir@/src/drumkit.cc \
+ @top_srcdir@/src/drumkitloader.cc \
+ @top_srcdir@/src/drumkitparser.cc \
+ @top_srcdir@/src/events.cc \
+ @top_srcdir@/src/instrument.cc \
+ @top_srcdir@/src/instrumentparser.cc \
+ @top_srcdir@/src/memchecker.cc \
+ @top_srcdir@/src/messagehandler.cc \
+ @top_srcdir@/src/messagereceiver.cc \
+ @top_srcdir@/src/midimapparser.cc \
+ @top_srcdir@/src/midimapper.cc \
+ @top_srcdir@/src/mutex.cc \
+ @top_srcdir@/src/path.cc \
+ @top_srcdir@/src/powerlist.cc \
+ @top_srcdir@/src/sample.cc \
+ @top_srcdir@/src/semaphore.cc \
+ @top_srcdir@/src/saxparser.cc \
+ @top_srcdir@/src/thread.cc \
+ @top_srcdir@/src/velocity.cc \
+ @top_srcdir@/src/versionstr.cc
+DG_CFLAGS = -I.. -I../include -I../src -DSSE -msse -msse2
+# -DDISABLE_HUGIN
+
+GUI_SRC = \
+ @top_srcdir@/plugingui/dgwindow.cc \
+ @top_srcdir@/plugingui/nativewindow_win32.cc \
+ @top_srcdir@/plugingui/plugingui.cc \
+ @top_srcdir@/plugingui/pluginconfig.cc \
+ @top_srcdir@/plugingui/label.cc \
+ @top_srcdir@/plugingui/eventhandler.cc \
+ @top_srcdir@/plugingui/font.cc \
+ @top_srcdir@/plugingui/window.cc \
+ @top_srcdir@/plugingui/widget.cc \
+ @top_srcdir@/plugingui/colour.cc \
+ @top_srcdir@/plugingui/painter.cc \
+ @top_srcdir@/plugingui/button.cc \
+ @top_srcdir@/plugingui/pixelbuffer.cc \
+ @top_srcdir@/plugingui/lineedit.cc \
+ @top_srcdir@/plugingui/led.cc \
+ @top_srcdir@/plugingui/layout.cc \
+ @top_srcdir@/plugingui/checkbox.cc \
+ @top_srcdir@/plugingui/slider.cc \
+ @top_srcdir@/plugingui/scrollbar.cc \
+ @top_srcdir@/plugingui/textedit.cc \
+ @top_srcdir@/plugingui/listbox.cc \
+ @top_srcdir@/plugingui/listboxthin.cc \
+ @top_srcdir@/plugingui/listboxbasic.cc \
+ @top_srcdir@/plugingui/knob.cc \
+ @top_srcdir@/plugingui/filebrowser.cc \
+ @top_srcdir@/plugingui/directory.cc \
+ @top_srcdir@/plugingui/image.cc \
+ @top_srcdir@/plugingui/combobox.cc \
+ @top_srcdir@/plugingui/progressbar.cc \
+ @top_srcdir@/plugingui/verticalline.cc \
+ @top_srcdir@/plugingui/resource.cc \
+ @top_srcdir@/plugingui/resource_data.cc \
+ @top_srcdir@/plugingui/lodepng/lodepng.cpp
+
+GUI_CFLAGS=-I@top_srcdir@/plugingui/ -DUSE_THREAD -DVST @GUI_CFLAGS@
+GUI_LIBS=-lgdi32 -lsetupapi -lws2_32
DBG_SRC = \
@top_srcdir@/hugin/hugin.c \
@@ -16,6 +90,11 @@ DBG_SRC = \
DBG_CFLAGS=-I../hugin -DWITH_HUG_SYSLOG -DWITH_HUG_MUTEX
# -DDISABLE_HUGIN
+#
+# http://old.nabble.com/using-VC%2B%2B-.lib-with-mingw-td23151303.html
+# Given `-lfoo', the win32 build of GNU ld will search for libfoo.a and foo.lib
+#
+
EXPAT_CFLAGS=@EXPAT_CFLAGS@
EXPAT_LIBS=@EXPAT_LIBS@
@@ -28,29 +107,15 @@ SRC_LIBS=@SAMPLERATE_LIBS@
ZITA_CXXFLAGS=@ZITA_CPPFLAGS@
ZITA_LIBS=@ZITA_LIBS@
-top_srcdir = @top_srcdir@
-include $(top_srcdir)/plugingui/Makefile.am.plugingui
-include $(top_srcdir)/src/Makefile.am.drumgizmo
-
SRC = \
- $(VST_SRC) \
- $(DRUMGIZMO_SOURCES) \
- $(PLUGIN_GUI_SOURCES) \
- $(top_srcdir)/plugin/plugingizmo/midievent.cc \
- $(top_srcdir)/plugin/plugingizmo/pluginvst.cc \
+ @top_srcdir@/plugin/plugingizmo/midievent.cc \
+ @top_srcdir@/plugin/plugingizmo/pluginvst.cc \
drumgizmo_plugin.cc
all:
gcc $(DBG_CFLAGS) @top_srcdir@/hugin/hugin.c -c
gcc $(DBG_CFLAGS) @top_srcdir@/hugin/hugin_syslog.c -c
- g++ $(CXXFLAGS) -std=c++11 -static -static-libgcc -O2 -g -Wall \
- $(DBG_CFLAGS) $(DRUMGIZMO_CPPFLAGS) $(DRUMGIZMO_LIBS) $(VST_CFLAGS) \
- hugin.o hugin_syslog.o \
- ${SRC} \
- ${PLUGIN_GUI_CPPFLAGS} $(PLUGIN_GUI_LIBS) \
- -shared -o drumgizmo_vst.dll -Wl,--out-implib,libdrumgizmo_vst.a
+ g++ $(CXXFLAGS) -std=c++11 -static -static-libgcc -O2 -g -Wall $(DBG_CFLAGS) $(DG_CFLAGS) $(DG_LIBS) $(VST_CFLAGS) hugin.o hugin_syslog.o $(DG_SRC) $(VST_SRC) ${SRC} ${GUI_SRC} ${GUI_CFLAGS} $(GUI_LIBS) $(EXPAT_CFLAGS) $(SRC_CFLAGS) $(ZITA_CXXFLAGS) $(EXPAT_LIBS) $(SNDFILE_CFLAGS) $(SNDFILE_LIBS) $(SRC_LIBS) $(ZITA_LIBS) -shared -o drumgizmo_vst.dll -Wl,--out-implib,libdrumgizmo_vst.a
clean:
del -f drumgizmo_vst.dll libdrumgizmo_vst.a
--I$(top_srcdir)/plugin/plugingizmo $(DRUMGIZMO_CPPFLAGS) \
- $(PLUGIN_GUI_CPPFLAGS) \ No newline at end of file