Fix up VCV dependency building
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
a482ee7b73
commit
6ea36693e6
2 changed files with 19 additions and 16 deletions
3
Makefile
3
Makefile
|
@ -40,11 +40,8 @@ clean:
|
|||
rm -rf plugins/Cardinal/Rack/dep/include
|
||||
rm -rf plugins/Cardinal/Rack/dep/lib
|
||||
rm -rf plugins/Cardinal/Rack/dep/share
|
||||
rm -rf plugins/Cardinal/Rack/dep/curl-7.66.0
|
||||
rm -rf plugins/Cardinal/Rack/dep/glew-2.1.0
|
||||
rm -rf plugins/Cardinal/Rack/dep/jansson-2.12
|
||||
rm -rf plugins/Cardinal/Rack/dep/libarchive-3.4.3
|
||||
rm -rf plugins/Cardinal/Rack/dep/openssl-1.1.1d
|
||||
rm -rf plugins/Cardinal/Rack/dep/speexdsp-SpeexDSP-1.2rc3
|
||||
rm -rf plugins/Cardinal/Rack/dep/zstd-1.4.5
|
||||
|
||||
|
|
|
@ -66,20 +66,11 @@ EXTRA_LIBS += Rack/dep/lib/libzstd.a
|
|||
|
||||
include ../../dpf/Makefile.plugins.mk
|
||||
|
||||
# --------------------------------------------------------------
|
||||
# Fix up cmake for windows cross-compilation
|
||||
|
||||
ifeq ($(WINDOWS),true)
|
||||
CMAKE := cmake -G 'Unix Makefiles' -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_RC_COMPILER=$(subst gcc,windres,$(CC))
|
||||
else
|
||||
CMAKE := cmake
|
||||
endif
|
||||
|
||||
CMAKE += -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_PREFIX='$(abspath Rack/dep)'
|
||||
|
||||
# --------------------------------------------------------------
|
||||
# override VCV arch.mk stuff so we can build more architectures
|
||||
|
||||
DEP_PATH = $(abspath Rack/dep)
|
||||
|
||||
ifeq ($(CPU_ARM),true)
|
||||
ARCH_NAME = arm
|
||||
MACHINE = i686-bring-forth-the-rack
|
||||
|
@ -89,17 +80,32 @@ MACHINE = x86_64-bring-forth-the-rack
|
|||
else ifeq ($(CPU_AARCH64),true)
|
||||
ARCH_NAME = aarch64
|
||||
MACHINE = x86_64-bring-forth-the-rack
|
||||
else
|
||||
MACHINE = $(TARGET_MACHINE)
|
||||
endif
|
||||
|
||||
ifneq ($(MACOS_OR_WINDOWS),true)
|
||||
MACHINE += -linux
|
||||
MACHINE_SUFFIX = -linux
|
||||
endif
|
||||
|
||||
CONFIGURE = ./configure --prefix="$(DEP_PATH)" --host=$(TARGET_MACHINE)
|
||||
|
||||
# --------------------------------------------------------------
|
||||
# Fix up cmake for windows cross-compilation
|
||||
|
||||
ifeq ($(WINDOWS),true)
|
||||
CMAKE = cmake -G 'Unix Makefiles' -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_RC_COMPILER=$(subst gcc,windres,$(CC))
|
||||
else
|
||||
CMAKE = cmake
|
||||
endif
|
||||
|
||||
CMAKE += -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_PREFIX='$(DEP_PATH)'
|
||||
|
||||
# --------------------------------------------------------------
|
||||
# VCV internal dependencies target
|
||||
|
||||
Rack/dep/lib/%.a:
|
||||
$(MAKE) ARCH_NAME=$(ARCH_NAME) CMAKE="$(CMAKE)" MACHINE=$(MACHINE) -C Rack/dep lib/$*.a
|
||||
$(MAKE) ARCH_NAME=$(ARCH_NAME) CMAKE="$(CMAKE)" CONFIGURE="$(CONFIGURE)" MACHINE=$(MACHINE)$(MACHINE_SUFFIX) -C Rack/dep lib/$*.a
|
||||
|
||||
Rack/dep/lib/libarchive.a: Rack/dep/lib/libzstd.a
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue