mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 08:15:18 -04:00
makepanda: better support building with FMOD Ex on macOS for now
This means preferring the 10.13 SDK except when targeting arm64 (in which case FMOD Ex is disabled with a warning).
This commit is contained in:
parent
e9c7d345df
commit
fff0a67189
@ -756,14 +756,21 @@ if (COMPILER=="GCC"):
|
|||||||
PkgDisable("COCOA")
|
PkgDisable("COCOA")
|
||||||
|
|
||||||
if GetTarget() == 'darwin':
|
if GetTarget() == 'darwin':
|
||||||
if 'x86_64' not in OSX_ARCHS and 'i386' not in OSX_ARCHS:
|
if OSX_ARCHS and 'x86_64' not in OSX_ARCHS and 'i386' not in OSX_ARCHS:
|
||||||
# These support only these archs, so don't build them if we're not
|
# These support only these archs, so don't build them if we're not
|
||||||
# targeting any of the supported archs.
|
# targeting any of the supported archs.
|
||||||
PkgDisable("FMODEX")
|
PkgDisable("FMODEX")
|
||||||
PkgDisable("NVIDIACG")
|
PkgDisable("NVIDIACG")
|
||||||
elif (OSX_ARCHS and 'arm64' in OSX_ARCHS) or \
|
elif OSX_ARCHS and 'arm64' in OSX_ARCHS:
|
||||||
not os.path.isfile('/usr/lib/libstdc++.6.0.9.dylib'):
|
# We must be using the 11.0 SDK or higher, so can't build FMOD Ex
|
||||||
|
if not PkgSkip("FMODEX"):
|
||||||
|
Warn("thirdparty package fmodex is not supported when targeting arm64, excluding from build")
|
||||||
|
PkgDisable("FMODEX")
|
||||||
|
elif not os.path.isfile(SDK.get("MACOSX", "") + '/usr/lib/libstdc++.6.0.9.tbd') and \
|
||||||
|
not os.path.isfile(SDK.get("MACOSX", "") + '/usr/lib/libstdc++.6.0.9.dylib'):
|
||||||
# Also, we can't target FMOD Ex on 10.14 and above
|
# Also, we can't target FMOD Ex on 10.14 and above
|
||||||
|
if not PkgSkip("FMODEX"):
|
||||||
|
Warn("thirdparty package fmodex requires one of MacOSX 10.9-10.13 SDK, excluding from build")
|
||||||
PkgDisable("FMODEX")
|
PkgDisable("FMODEX")
|
||||||
|
|
||||||
#if (PkgSkip("PYTHON")==0):
|
#if (PkgSkip("PYTHON")==0):
|
||||||
|
@ -2353,10 +2353,15 @@ def SdkLocateMacOSX(archs = []):
|
|||||||
handle.close()
|
handle.close()
|
||||||
|
|
||||||
# Make a list of SDK versions that will work for us, then grab the latest.
|
# Make a list of SDK versions that will work for us, then grab the latest.
|
||||||
sdk_versions = ["11.1", "11.0"]
|
sdk_versions = []
|
||||||
if 'arm64' not in archs:
|
if 'arm64' not in archs:
|
||||||
# Prefer pre-10.14 for now so that we can keep building FMOD.
|
# Prefer pre-10.14 for now so that we can keep building FMOD.
|
||||||
sdk_versions += ["10.13", "10.12", "10.11", "10.10", "10.9", "10.15", "10.14"]
|
sdk_versions += ["10.13", "10.12", "10.11", "10.10", "10.9"]
|
||||||
|
|
||||||
|
sdk_versions += ["11.1", "11.0"]
|
||||||
|
|
||||||
|
if 'arm64' not in archs:
|
||||||
|
sdk_versions += ["10.15", "10.14"]
|
||||||
|
|
||||||
for version in sdk_versions:
|
for version in sdk_versions:
|
||||||
sdkname = "MacOSX" + version
|
sdkname = "MacOSX" + version
|
||||||
|
Loading…
x
Reference in New Issue
Block a user