From 3fc8e8407daa3f2c16ba6134d5957dd7f62d14df Mon Sep 17 00:00:00 2001 From: Christopher Arndt Date: Tue, 13 Aug 2019 10:53:33 +0200 Subject: [PATCH] Cross-compiling (for windows) tweaks Signed-off-by: Christopher Arndt --- Makefile | 7 +++++-- scripts/build-win32.sh | 5 ++++- scripts/build-win64.sh | 5 ++++- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 811d925..bf9f022 100644 --- a/Makefile +++ b/Makefile @@ -25,11 +25,14 @@ gen: plugins dpf/utils/lv2_ttl_generator ifeq ($(MACOS),true) @$(CURDIR)/dpf/utils/generate-vst-bundles.sh endif - dpf/utils/lv2_ttl_generator: $(MAKE) -C dpf/utils/lv2-ttl-generator else -gen: +gen: plugins dpf/utils/lv2_ttl_generator.exe + @$(CURDIR)/dpf/utils/generate-ttl.sh + +dpf/utils/lv2_ttl_generator.exe: + $(MAKE) -C dpf/utils/lv2-ttl-generator WINDOWS=true endif # -------------------------------------------------------------- diff --git a/scripts/build-win32.sh b/scripts/build-win32.sh index d8b11fb..48913af 100755 --- a/scripts/build-win32.sh +++ b/scripts/build-win32.sh @@ -17,7 +17,10 @@ export CXXFLAGS="${_FLAGS}" export CROSS_COMPILING=true # Start clean -make clean >/dev/null +make clean > /dev/null +make -C dpf clean > /dev/null +rm -rf bin-w32 # Build now make +mv bin bin-w32 diff --git a/scripts/build-win64.sh b/scripts/build-win64.sh index 21b27bc..d4c05ce 100755 --- a/scripts/build-win64.sh +++ b/scripts/build-win64.sh @@ -19,7 +19,10 @@ export LDFLAGS="-static" export CROSS_COMPILING=true # Start clean -make clean >/dev/null +make clean > /dev/null +make -C dpf clean > /dev/null +rm -rf bin-w64 # Build now make +#mv bin bin-w64