From 8976d1106ac40e74b7bdc4d0401003126cee53d8 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Tue, 22 Nov 2016 20:19:26 +0100 Subject: Generate resource_data.cc in build system. --- plugin/Makefile.mingw32.in | 3 +++ plugingui/Makefile.am.plugingui | 3 +++ plugingui/resources/createrc.sh | 2 -- 3 files changed, 6 insertions(+), 2 deletions(-) delete mode 100755 plugingui/resources/createrc.sh diff --git a/plugin/Makefile.mingw32.in b/plugin/Makefile.mingw32.in index 7a9d412..575a8a2 100644 --- a/plugin/Makefile.mingw32.in +++ b/plugin/Makefile.mingw32.in @@ -66,6 +66,7 @@ GUI_SRC = \ @top_srcdir@/plugingui/checkbox.cc \ @top_srcdir@/plugingui/slider.cc \ @top_srcdir@/plugingui/scrollbar.cc \ + @top_srcdir@/plugingui/stackedwidget.cc \ @top_srcdir@/plugingui/textedit.cc \ @top_srcdir@/plugingui/texture.cc \ @top_srcdir@/plugingui/texturedbox.cc \ @@ -117,6 +118,8 @@ SRC = \ drumgizmo_plugin.cc all: + g++ @top_srcdir@/plugingui/rcgen.cc -o @top_srcdir@/plugingui/rcgen + (cd @top_srcdir@/plugingui/resources; ../rcgen * > ../resource_data.cc) 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) $(DG_CFLAGS) $(DG_LIBS) $(VST_CFLAGS) hugin.o hugin_syslog.o $(DG_SRC) $(VST_SRC) ${SRC} ${GUI_SRC} ${GUI_CPPFLAGS} $(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 diff --git a/plugingui/Makefile.am.plugingui b/plugingui/Makefile.am.plugingui index eb3b96d..0e48f29 100644 --- a/plugingui/Makefile.am.plugingui +++ b/plugingui/Makefile.am.plugingui @@ -39,6 +39,9 @@ PLUGIN_GUI_SOURCES = \ $(top_srcdir)/plugingui/resource_data.cc \ $(top_srcdir)/plugingui/lodepng/lodepng.cpp +$(top_srcdir)/plugingui/resource_data.cc : $(top_srcdir)/plugingui/rcgen + (cd $(top_srcdir)/plugingui/resources; ../rcgen * > ../resource_data.cc) + PLUGIN_GUI_LIBS = $(GUI_LIBS) $(PTHREAD_LIBS) PLUGIN_GUI_CPPFLAGS = \ diff --git a/plugingui/resources/createrc.sh b/plugingui/resources/createrc.sh deleted file mode 100755 index 838713a..0000000 --- a/plugingui/resources/createrc.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/bash -../rcgen *.png png_error > ../resource_data.cc -- cgit v1.2.3