Browse Source

Mac build: Fix openssl linking, binary stripping

tags/v0.6.0
Andrew Belt 6 years ago
parent
commit
db28dbf353
2 changed files with 9 additions and 2 deletions
  1. +8
    -1
      Makefile
  2. +1
    -1
      plugin.mk

+ 8
- 1
Makefile View File

@@ -93,6 +93,7 @@ ifeq ($(ARCH), win)
endif


# This target is not intended for public use
dist: all
ifndef RELEASE
exit 1 # Must enable RELEASE for dist target
@@ -110,7 +111,7 @@ ifeq ($(ARCH), mac)

mkdir -p $(BUNDLE)/Contents/MacOS
cp $(TARGET) $(BUNDLE)/Contents/MacOS/
strip $(BUNDLE)/Contents/MacOS/$(TARGET)
strip -S $(BUNDLE)/Contents/MacOS/$(TARGET)
cp icon.icns $(BUNDLE)/Contents/Resources/

otool -L $(BUNDLE)/Contents/MacOS/$(TARGET)
@@ -124,6 +125,7 @@ ifeq ($(ARCH), mac)
cp dep/lib/librtaudio.dylib $(BUNDLE)/Contents/MacOS/
cp dep/lib/librtmidi.4.dylib $(BUNDLE)/Contents/MacOS/
cp dep/lib/libcrypto.1.1.dylib $(BUNDLE)/Contents/MacOS/
cp dep/lib/libssl.1.1.dylib $(BUNDLE)/Contents/MacOS/

install_name_tool -change /usr/local/lib/libGLEW.2.1.0.dylib @executable_path/libGLEW.2.1.0.dylib $(BUNDLE)/Contents/MacOS/$(TARGET)
install_name_tool -change lib/libglfw.3.dylib @executable_path/libglfw.3.dylib $(BUNDLE)/Contents/MacOS/$(TARGET)
@@ -134,12 +136,17 @@ ifeq ($(ARCH), mac)
install_name_tool -change librtaudio.dylib @executable_path/librtaudio.dylib $(BUNDLE)/Contents/MacOS/$(TARGET)
install_name_tool -change $(PWD)/dep/lib/librtmidi.4.dylib @executable_path/librtmidi.4.dylib $(BUNDLE)/Contents/MacOS/$(TARGET)
install_name_tool -change $(PWD)/dep/lib/libcrypto.1.1.dylib @executable_path/libcrypto.1.1.dylib $(BUNDLE)/Contents/MacOS/$(TARGET)
install_name_tool -change $(PWD)/dep/lib/libssl.1.1.dylib @executable_path/libssl.1.1.dylib $(BUNDLE)/Contents/MacOS/$(TARGET)

otool -L $(BUNDLE)/Contents/MacOS/$(TARGET)

cp plugins/Fundamental/dist/Fundamental-*.zip $(BUNDLE)/Contents/Resources/Fundamental.zip
cp -R Bridge/au/dist/VCV-Bridge.component dist/
cp -R Bridge/vst/dist/VCV-Bridge.vst dist/
# Make DMG image
cd dist && ln -s /Applications Applications
cd dist && ln -s /Library/Audio/Plug-Ins/Components Components
cd dist && ln -s /Library/Audio/Plug-Ins/VST VST
cd dist && hdiutil create -srcfolder . -volname Rack -ov -format UDZO Rack-$(VERSION)-$(ARCH).dmg
endif
ifeq ($(ARCH), win)


+ 1
- 1
plugin.mk View File

@@ -46,7 +46,7 @@ dist: all
# Strip and copy plugin binary
cp $(TARGET) dist/$(SLUG)/
ifeq ($(ARCH), mac)
strip -x dist/$(SLUG)/$(TARGET)
strip -S dist/$(SLUG)/$(TARGET)
else
strip -s dist/$(SLUG)/$(TARGET)
endif


Loading…
Cancel
Save