Skip to content

Commit

Permalink
Update Makefiles to match the new plugin build procedure
Browse files Browse the repository at this point in the history
ZynAddSubFX now use DPF's CMake module for plugin build, which brings
the following changes:
- New plugin formats: VST3, CLAP
- LV2 build for Windows (DAWs like REAPER and Ardour support LV2 there)
- Plugin will be installed to different directories

This patch mainly updates recipe `copy_zest_files`.

It also added CMAKE_SYSTEM_PROCESSOR parameter in toolchain files
(resides in z/), which is needed when cross-building VST3 plugins.
  • Loading branch information
AnClark committed Feb 9, 2023
1 parent a8eb988 commit f7196ab
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 6 deletions.
8 changes: 5 additions & 3 deletions Makefile.linux.mk
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,11 @@ copy_zest_files: preinstall_zynaddsubfx
touch $(ZYN_FUSION_OUT)/qml/MainWindow.qml

cp -a $(ZEST_PATH)/package/schema $(ZYN_FUSION_OUT)/
mkdir $(ZYN_FUSION_OUT)/ZynAddSubFX.lv2
cp $(ZYNADDSUBFX_BUILD_DIR)/src/Plugin/ZynAddSubFX/lv2/* $(ZYN_FUSION_OUT)/ZynAddSubFX.lv2/
cp $(ZYNADDSUBFX_BUILD_DIR)/src/Plugin/ZynAddSubFX/vst/ZynAddSubFX.so $(ZYN_FUSION_OUT)/
cp -r $(ZYNADDSUBFX_INSTALL_DIR)/usr/lib/lv2/ZynAddSubFX.lv2 $(ZYN_FUSION_OUT)/ZynAddSubFX.lv2/
cp -r $(ZYNADDSUBFX_INSTALL_DIR)/usr/lib/vst3/ZynAddSubFX.vst3 $(ZYN_FUSION_OUT)/ZynAddSubFX.vst3/
cp $(ZYNADDSUBFX_INSTALL_DIR)/usr/lib/vst/ZynAddSubFX-vst2.so $(ZYN_FUSION_OUT)/
cp $(ZYNADDSUBFX_INSTALL_DIR)/usr/lib/clap/ZynAddSubFX.clap $(ZYN_FUSION_OUT)/

cp $(ZYNADDSUBFX_BUILD_DIR)/src/zynaddsubfx $(ZYN_FUSION_OUT)/
cp $(ZEST_PATH)/install-linux.sh $(ZYN_FUSION_OUT)/
cp $(ZEST_PATH)/package-README.txt $(ZYN_FUSION_OUT)/README.txt
Expand Down
7 changes: 5 additions & 2 deletions Makefile.mingw64.mk
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,11 @@ copy_zest_files:
cp $(shell find $(ZEST_PATH)/deps/nanovg -type f | grep ttf$$) $(ZYN_FUSION_OUT)/font/
cp $(ZEST_PATH)/src/osc-bridge/schema/test.json $(ZYN_FUSION_OUT)/schema/

cp $(ZYNADDSUBFX_BUILD_DIR)/src/Plugin/ZynAddSubFX/vst/ZynAddSubFX.dll $(ZYN_FUSION_OUT)/
cp $(ZYNADDSUBFX_BUILD_DIR)/src/zynaddsubfx.exe $(ZYN_FUSION_OUT)/
cp -r $(ZYNADDSUBFX_BUILD_DIR)/build/bin/ZynAddSubFX.lv2 $(ZYN_FUSION_OUT)/ZynAddSubFX.lv2/
cp -r $(ZYNADDSUBFX_BUILD_DIR)/build/bin/ZynAddSubFX.vst3 $(ZYN_FUSION_OUT)/ZynAddSubFX.vst3/
cp $(ZYNADDSUBFX_BUILD_DIR)/build/bin/ZynAddSubFX-vst2.dll $(ZYN_FUSION_OUT)/
cp $(ZYNADDSUBFX_BUILD_DIR)/build/bin/ZynAddSubFX.clap $(ZYN_FUSION_OUT)/
cp $(ZYNADDSUBFX_BUILD_DIR)/src/zynaddsubfx.exe $(ZYN_FUSION_OUT)/

cp $(PREFIX_PATH)/bin/libportaudio-2.dll $(ZYN_FUSION_OUT)/
cp $(PREFIX_PATH)/bin/libwinpthread-1.dll $(ZYN_FUSION_OUT)/
Expand Down
5 changes: 4 additions & 1 deletion Makefile.windows.mk
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,10 @@ copy_zest_files:
cp $(shell find $(ZEST_PATH)/deps/nanovg -type f | grep ttf$$) $(ZYN_FUSION_OUT)/font/
cp $(ZEST_PATH)/src/osc-bridge/schema/test.json $(ZYN_FUSION_OUT)/schema/

cp $(ZYNADDSUBFX_BUILD_DIR)/src/Plugin/ZynAddSubFX/vst/ZynAddSubFX.dll $(ZYN_FUSION_OUT)/
cp -r $(ZYNADDSUBFX_BUILD_DIR)/build/bin/ZynAddSubFX.lv2 $(ZYN_FUSION_OUT)/ZynAddSubFX.lv2/
cp -r $(ZYNADDSUBFX_BUILD_DIR)/build/bin/ZynAddSubFX.vst3 $(ZYN_FUSION_OUT)/ZynAddSubFX.vst3/
cp $(ZYNADDSUBFX_BUILD_DIR)/build/bin/ZynAddSubFX-vst2.dll $(ZYN_FUSION_OUT)/
cp $(ZYNADDSUBFX_BUILD_DIR)/build/bin/ZynAddSubFX.clap $(ZYN_FUSION_OUT)/
cp $(ZYNADDSUBFX_BUILD_DIR)/src/zynaddsubfx.exe $(ZYN_FUSION_OUT)/

cp $(PREFIX_PATH)/bin/libportaudio-2.dll $(ZYN_FUSION_OUT)/
Expand Down
1 change: 1 addition & 0 deletions z/mingw64-build.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
SET(CMAKE_SYSTEM_NAME Windows)
SET(CMAKE_SYSTEM_PROCESSOR x86_64)


find_package(PkgConfig REQUIRED)
Expand Down
1 change: 1 addition & 0 deletions z/windows-build.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
SET(CMAKE_SYSTEM_NAME Windows)
SET(CMAKE_SYSTEM_PROCESSOR x86_64)


SET(CMAKE_C_COMPILER /usr/bin/x86_64-w64-mingw32-gcc)
Expand Down

0 comments on commit f7196ab

Please sign in to comment.