Embed dylibs in app bundles

This commit is contained in:
Kreeblah 2021-03-26 02:07:06 -07:00
parent 09946a1d99
commit b7ff72c364
No known key found for this signature in database
GPG key ID: 6074237BF1AEEDFB
2 changed files with 6 additions and 1 deletions

View file

@ -136,7 +136,8 @@ DXX-Rebirth can be built from the Terminal (via SCons) without Xcode; to build u
sdl\_mixer
physfs
libpng
pkg-config**
pkg-config
dylibbundler**
### Building
Once prerequisites are installed, run **scons** *options* to build. By default, both D1X-Rebirth and D2X-Rebirth are built. To build only D1X-Rebirth, run **scons d1x=1**. To build only D2X-Rebirth, run **scons d2x=1**.

View file

@ -5254,6 +5254,10 @@ class DXXProgram(DXXCommon):
typecode='APPL', creator='DCNT',
icon_file=os.path.join(cocoa, '%s-rebirth.icns' % dxxstr),
resources=[[os.path.join(self.srcdir, s), s] for s in ['English.lproj/InfoPlist.strings']])
if not self.user_settings.macos_add_frameworks:
Command('%s.app/Contents/Frameworks' % self.PROGRAM_NAME,
'%s.app/Contents/MacOS/%s-rebirth' % (self.PROGRAM_NAME, dxxstr),
"dylibbundler -od -b -x $SOURCE -d $TARGET")
class D1XProgram(DXXProgram):
LazyObjectState = DXXProgram.LazyObjectState