| @@ -92,7 +92,7 @@ dist: all | |||||
| rm -rf dist | rm -rf dist | ||||
| mkdir -p dist | mkdir -p dist | ||||
| # Rack | |||||
| @# Rack | |||||
| $(MAKE) -C plugins/Fundamental dist | $(MAKE) -C plugins/Fundamental dist | ||||
| ifdef ARCH_MAC | ifdef ARCH_MAC | ||||
| @@ -111,7 +111,7 @@ ifdef ARCH_MAC | |||||
| cp plugins/Fundamental/dist/Fundamental-*.zip $(BUNDLE)/Contents/Resources/Fundamental.zip | cp plugins/Fundamental/dist/Fundamental-*.zip $(BUNDLE)/Contents/Resources/Fundamental.zip | ||||
| cp -R Bridge/AU/dist/VCV-Bridge.component dist/ | cp -R Bridge/AU/dist/VCV-Bridge.component dist/ | ||||
| cp -R Bridge/VST/dist/VCV-Bridge.vst dist/ | cp -R Bridge/VST/dist/VCV-Bridge.vst dist/ | ||||
| # Make DMG image | |||||
| @# Make DMG image | |||||
| cd dist && ln -s /Applications Applications | cd dist && ln -s /Applications Applications | ||||
| cd dist && ln -s /Library/Audio/Plug-Ins/Components Components | cd dist && ln -s /Library/Audio/Plug-Ins/Components Components | ||||
| cd dist && ln -s /Library/Audio/Plug-Ins/VST VST | cd dist && ln -s /Library/Audio/Plug-Ins/VST VST | ||||
| @@ -129,9 +129,9 @@ ifdef ARCH_WIN | |||||
| cp /mingw64/bin/libstdc++-6.dll dist/Rack/ | cp /mingw64/bin/libstdc++-6.dll dist/Rack/ | ||||
| cp /mingw64/bin/libgcc_s_seh-1.dll dist/Rack/ | cp /mingw64/bin/libgcc_s_seh-1.dll dist/Rack/ | ||||
| cp plugins/Fundamental/dist/Fundamental-*.zip dist/Rack/Fundamental.zip | cp plugins/Fundamental/dist/Fundamental-*.zip dist/Rack/Fundamental.zip | ||||
| # Make ZIP | |||||
| @# Make ZIP | |||||
| cd dist && zip -5 -r Rack-$(VERSION)-$(ARCH).zip Rack | cd dist && zip -5 -r Rack-$(VERSION)-$(ARCH).zip Rack | ||||
| # Make NSIS installer | |||||
| @# Make NSIS installer | |||||
| makensis installer.nsi | makensis installer.nsi | ||||
| mv Rack-setup.exe dist/Rack-$(VERSION)-$(ARCH).exe | mv Rack-setup.exe dist/Rack-$(VERSION)-$(ARCH).exe | ||||
| endif | endif | ||||
| @@ -144,11 +144,11 @@ ifdef ARCH_LIN | |||||
| $(STRIP) -s dist/Rack/$(TARGET) | $(STRIP) -s dist/Rack/$(TARGET) | ||||
| ldd dist/Rack/$(TARGET) | ldd dist/Rack/$(TARGET) | ||||
| cp plugins/Fundamental/dist/Fundamental-*.zip dist/Rack/Fundamental.zip | cp plugins/Fundamental/dist/Fundamental-*.zip dist/Rack/Fundamental.zip | ||||
| # Make ZIP | |||||
| @# Make ZIP | |||||
| cd dist && zip -5 -r Rack-$(VERSION)-$(ARCH).zip Rack | cd dist && zip -5 -r Rack-$(VERSION)-$(ARCH).zip Rack | ||||
| endif | endif | ||||
| # Rack SDK | |||||
| @# Rack SDK | |||||
| mkdir -p dist/Rack-SDK | mkdir -p dist/Rack-SDK | ||||
| cp LICENSE* dist/Rack-SDK/ | cp LICENSE* dist/Rack-SDK/ | ||||
| cp *.mk dist/Rack-SDK/ | cp *.mk dist/Rack-SDK/ | ||||
| @@ -81,6 +81,6 @@ ifdef ARCH_WIN | |||||
| $(OBJCOPY) -I binary -O pe-x86-64 -B i386:x86-64 --rename-section .data=.rodata,alloc,load,readonly,data,contents $< $@ | $(OBJCOPY) -I binary -O pe-x86-64 -B i386:x86-64 --rename-section .data=.rodata,alloc,load,readonly,data,contents $< $@ | ||||
| endif | endif | ||||
| ifdef ARCH_MAC | ifdef ARCH_MAC | ||||
| # Apple makes this needlessly complicated, so just generate a C file with an array. | |||||
| @# Apple makes this needlessly complicated, so just generate a C file with an array. | |||||
| xxd -i $< | $(CC) $(MAC_SDK_FLAGS) -c -o $@ -xc - | xxd -i $< | $(CC) $(MAC_SDK_FLAGS) -c -o $@ -xc - | ||||
| endif | endif | ||||
| @@ -88,7 +88,7 @@ $(libspeexdsp): | |||||
| $(openssl): | $(openssl): | ||||
| $(WGET) "https://www.openssl.org/source/openssl-1.1.0h.tar.gz" | $(WGET) "https://www.openssl.org/source/openssl-1.1.0h.tar.gz" | ||||
| $(UNTAR) openssl-1.1.0h.tar.gz | $(UNTAR) openssl-1.1.0h.tar.gz | ||||
| # ./config ignores CFLAGS, so hack it in with CC | |||||
| @# ./config ignores CFLAGS, so hack it in with CC | |||||
| cd openssl-1.1.0h && CC="$(CC) $(CFLAGS)" ./config --prefix="$(realpath $(DEP_LOCAL))" | cd openssl-1.1.0h && CC="$(CC) $(CFLAGS)" ./config --prefix="$(realpath $(DEP_LOCAL))" | ||||
| $(MAKE) -C openssl-1.1.0h | $(MAKE) -C openssl-1.1.0h | ||||
| $(MAKE) -C openssl-1.1.0h install_sw | $(MAKE) -C openssl-1.1.0h install_sw | ||||
| @@ -144,7 +144,7 @@ $(rtaudio): | |||||
| cd rtaudio/build && $(CMAKE) $(RTAUDIO_FLAGS) .. | cd rtaudio/build && $(CMAKE) $(RTAUDIO_FLAGS) .. | ||||
| $(MAKE) -C rtaudio/build | $(MAKE) -C rtaudio/build | ||||
| $(MAKE) -C rtaudio/build install | $(MAKE) -C rtaudio/build install | ||||
| # For some reason, it doesn't install the static library | |||||
| @# For some reason, it doesn't install the static library | |||||
| cp rtaudio/build/librtaudio_static.a lib/librtaudio.a | cp rtaudio/build/librtaudio_static.a lib/librtaudio.a | ||||
| $(nanovg): $(wildcard nanovg/src/*.h) | $(nanovg): $(wildcard nanovg/src/*.h) | ||||
| @@ -48,16 +48,16 @@ clean: | |||||
| dist: all | dist: all | ||||
| rm -rf dist | rm -rf dist | ||||
| mkdir -p dist/$(SLUG) | mkdir -p dist/$(SLUG) | ||||
| # Strip and copy plugin binary | |||||
| @# Strip and copy plugin binary | |||||
| cp $(TARGET) dist/$(SLUG)/ | cp $(TARGET) dist/$(SLUG)/ | ||||
| ifdef ARCH_MAC | ifdef ARCH_MAC | ||||
| $(STRIP) -S dist/$(SLUG)/$(TARGET) | $(STRIP) -S dist/$(SLUG)/$(TARGET) | ||||
| else | else | ||||
| $(STRIP) -s dist/$(SLUG)/$(TARGET) | $(STRIP) -s dist/$(SLUG)/$(TARGET) | ||||
| endif | endif | ||||
| # Copy distributables | |||||
| @# Copy distributables | |||||
| cp -R $(DISTRIBUTABLES) dist/$(SLUG)/ | cp -R $(DISTRIBUTABLES) dist/$(SLUG)/ | ||||
| # Create ZIP package | |||||
| @# Create ZIP package | |||||
| cd dist && zip -5 -r $(SLUG)-$(VERSION)-$(ARCH).zip $(SLUG) | cd dist && zip -5 -r $(SLUG)-$(VERSION)-$(ARCH).zip $(SLUG) | ||||
| install: dist | install: dist | ||||