mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
Made modifications for Mac App Bundle
- Looks for game data in SDL pref path (Application Support) - Sets XASH3D_EXTRAS_PAK1 to SDL base path (Resources dir in App Bundle - Added option to force search for SDL dylib via pkgconfig on Darwin instead of Framework (option for Mac Source Ports build process)
This commit is contained in:
@@ -23,6 +23,9 @@ def options(opt):
|
||||
grp.add_option('--skip-sdl2-sanity-check', action='store_false', default = True, dest='SDL_SANITY_CHECK',
|
||||
help = 'skip checking SDL sanity [default: %(default)s]')
|
||||
|
||||
grp.add_option('--sdl-use-pkgconfig', action='store_true', default = False, dest='SDL_USE_PKGCONFIG',
|
||||
help = 'force use of pkg-config to find sdl [default: %(default)s]')
|
||||
|
||||
def my_dirname(path):
|
||||
# really dumb, will not work with /path/framework//, but still enough
|
||||
if path[-1] == '/':
|
||||
@@ -70,7 +73,7 @@ def configure(conf):
|
||||
|
||||
if conf.options.SDL_PATH:
|
||||
sdl2_configure_path(conf, conf.options.SDL_PATH, libname)
|
||||
elif conf.env.DEST_OS == 'darwin':
|
||||
elif conf.env.DEST_OS == 'darwin' and conf.options.SDL_USE_PKGCONFIG == False:
|
||||
sdl2_configure_path(conf, '/Library/Frameworks/%s.framework' % libname, libname)
|
||||
else:
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user