Browse Source

Fix up VCV dependency building

Signed-off-by: falkTX <falktx@falktx.com>
tags/22.02
falkTX 4 years ago
parent
commit
6ea36693e6
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 19 additions and 16 deletions
  1. +0
    -3
      Makefile
  2. +19
    -13
      plugins/Cardinal/Makefile

+ 0
- 3
Makefile View File

@@ -40,11 +40,8 @@ clean:
rm -rf plugins/Cardinal/Rack/dep/include rm -rf plugins/Cardinal/Rack/dep/include
rm -rf plugins/Cardinal/Rack/dep/lib rm -rf plugins/Cardinal/Rack/dep/lib
rm -rf plugins/Cardinal/Rack/dep/share 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/jansson-2.12
rm -rf plugins/Cardinal/Rack/dep/libarchive-3.4.3 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/speexdsp-SpeexDSP-1.2rc3
rm -rf plugins/Cardinal/Rack/dep/zstd-1.4.5 rm -rf plugins/Cardinal/Rack/dep/zstd-1.4.5




+ 19
- 13
plugins/Cardinal/Makefile View File

@@ -66,20 +66,11 @@ EXTRA_LIBS += Rack/dep/lib/libzstd.a


include ../../dpf/Makefile.plugins.mk 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 # override VCV arch.mk stuff so we can build more architectures


DEP_PATH = $(abspath Rack/dep)

ifeq ($(CPU_ARM),true) ifeq ($(CPU_ARM),true)
ARCH_NAME = arm ARCH_NAME = arm
MACHINE = i686-bring-forth-the-rack MACHINE = i686-bring-forth-the-rack
@@ -89,17 +80,32 @@ MACHINE = x86_64-bring-forth-the-rack
else ifeq ($(CPU_AARCH64),true) else ifeq ($(CPU_AARCH64),true)
ARCH_NAME = aarch64 ARCH_NAME = aarch64
MACHINE = x86_64-bring-forth-the-rack MACHINE = x86_64-bring-forth-the-rack
else
MACHINE = $(TARGET_MACHINE)
endif endif


ifneq ($(MACOS_OR_WINDOWS),true) ifneq ($(MACOS_OR_WINDOWS),true)
MACHINE += -linux
MACHINE_SUFFIX = -linux
endif 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 # VCV internal dependencies target


Rack/dep/lib/%.a: 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 Rack/dep/lib/libarchive.a: Rack/dep/lib/libzstd.a




Loading…
Cancel
Save