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`.
  • Loading branch information
AnClark committed Feb 9, 2023
1 parent a8eb988 commit 4c1a1e5
Show file tree
Hide file tree
Showing 3 changed files with 14 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

0 comments on commit 4c1a1e5

Please sign in to comment.