Browse Source

Add lipo target for creating Mac fat binary.

tags/v2.5.2
Andrew Belt 6 months ago
parent
commit
b0c7675e58
2 changed files with 15 additions and 3 deletions
  1. +14
    -2
      Makefile
  2. +1
    -1
      arch.mk

+ 14
- 2
Makefile View File

@@ -163,7 +163,7 @@ endif

# The following targets are not supported for public use

DIST_NAME := RackFree-$(VERSION)-$(ARCH_NAME)
DIST_NAME = RackFree-$(VERSION)-$(ARCH_NAME)
ifdef ARCH_MAC
DIST_BUNDLE := VCV\ Rack\ $(VERSION_MAJOR)\ Free.app
DIST_DIR := dist/$(DIST_BUNDLE)
@@ -174,7 +174,7 @@ DIST_MD := $(wildcard *.md)
DIST_HTML := $(patsubst %.md, build/%.html, $(DIST_MD))
DIST_RES := res cacert.pem Core.json template.vcv LICENSE-GPLv3.txt $(DIST_HTML)
DIST_SDK_DIR := dist/Rack-SDK
DIST_SDK := dist/Rack-SDK-$(VERSION)-$(ARCH_NAME).zip
DIST_SDK = dist/Rack-SDK-$(VERSION)-$(ARCH_NAME).zip


dist: $(DIST_DIR)
@@ -275,6 +275,18 @@ endif
cd dist && zip -q -9 -r ../$(DIST_SDK) $(notdir $(DIST_SDK_DIR))


lipo: $(DIST_DIR) $(DIST_SDK_DIR)
ifndef OTHER_RACK_DIR
$(error OTHER_RACK_DIR not defined)
endif
ifdef ARCH_MAC
lipo -create -output $(DIST_DIR)/Contents/Resources/$(TARGET) $(DIST_DIR)/Contents/Resources/$(TARGET) $(OTHER_RACK_DIR)/$(DIST_DIR)/Contents/Resources/$(TARGET)
lipo -create -output $(DIST_DIR)/Contents/MacOS/$(STANDALONE_TARGET) $(DIST_DIR)/Contents/MacOS/$(STANDALONE_TARGET) $(OTHER_RACK_DIR)/$(DIST_DIR)/Contents/MacOS/$(STANDALONE_TARGET)
lipo -create -output $(DIST_SDK_DIR)/$(TARGET) $(DIST_SDK_DIR)/$(TARGET) $(OTHER_RACK_DIR)/$(DIST_SDK_DIR)/$(TARGET)
cp $(OTHER_RACK_DIR)/$(DIST_DIR)/Contents/Resources/Fundamental-*.vcvplugin $(DIST_DIR)/Contents/Resources/
endif


notarize:
ifdef ARCH_MAC
# Submit installer package to Apple


+ 1
- 1
arch.mk View File

@@ -30,4 +30,4 @@ else
$(error Could not determine operating system of $(MACHINE))
endif

ARCH_NAME := $(ARCH_OS)-$(ARCH_CPU)
ARCH_NAME = $(ARCH_OS)-$(ARCH_CPU)

Loading…
Cancel
Save