Continue work for redistributable binaries, WIP
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
0c6746fdce
commit
649773c851
6 changed files with 143 additions and 22 deletions
40
src/Makefile
40
src/Makefile
|
@ -4,6 +4,13 @@
|
|||
# Created by falkTX
|
||||
#
|
||||
|
||||
# --------------------------------------------------------------
|
||||
# Build config
|
||||
|
||||
PREFIX ?= /usr/local
|
||||
DESTDIR ?=
|
||||
SYSDEPS ?= false
|
||||
|
||||
# --------------------------------------------------------------
|
||||
# Project name, used for binaries
|
||||
|
||||
|
@ -150,10 +157,41 @@ SOURCE_DIR = $(CURDIR)
|
|||
endif
|
||||
|
||||
BUILD_CXX_FLAGS += -DCARDINAL_PLUGIN_SOURCE_DIR='"$(SOURCE_DIR)"'
|
||||
BUILD_CXX_FLAGS += -DCARDINAL_PLUGIN_PREFIX='"$(PREFIX)"'
|
||||
|
||||
# --------------------------------------------------------------
|
||||
# Enable all possible plugin types
|
||||
|
||||
all: jack lv2 vst2 vst3
|
||||
all: jack lv2 vst2 vst3 resources
|
||||
|
||||
# --------------------------------------------------------------
|
||||
|
||||
CORE_RESOURCES = $(wildcard Rack/res/*)
|
||||
|
||||
PLUGIN_RESOURCES += $(CORE_RESOURCES:%=../bin/Cardinal.lv2/resources/%)
|
||||
ifeq ($(MACOS),true)
|
||||
PLUGIN_RESOURCES += $(CORE_RESOURCES:%=../bin/Cardinal.vst/Contents/Resources/%)
|
||||
else
|
||||
PLUGIN_RESOURCES += $(CORE_RESOURCES:%=../bin/Cardinal.vst/resources/%)
|
||||
endif
|
||||
PLUGIN_RESOURCES += $(CORE_RESOURCES:%=../bin/Cardinal.vst3/Contents/Resources/%)
|
||||
|
||||
resources: $(PLUGIN_RESOURCES)
|
||||
|
||||
../bin/Cardinal.lv2/resources/%: Rack/res/%
|
||||
-@mkdir -p "$(shell dirname $@)"
|
||||
ln -sf $(abspath $<) $@
|
||||
|
||||
../bin/Cardinal.vst/resources/%: Rack/res/%
|
||||
-@mkdir -p "$(shell dirname $@)"
|
||||
ln -sf $(abspath $<) $@
|
||||
|
||||
../bin/Cardinal.vst/Contents/Resources/%: Rack/res/%
|
||||
-@mkdir -p "$(shell dirname $@)"
|
||||
ln -sf $(abspath $<) $@
|
||||
|
||||
../bin/Cardinal.vst3/Contents/Resources/%: Rack/res/%
|
||||
-@mkdir -p "$(shell dirname $@)"
|
||||
ln -sf $(abspath $<) $@
|
||||
|
||||
# --------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue