makepanda: pick up AudioToolbox and CoreAudio frameworks on macOS

These seem to be needed to compile against OpenAL Soft.

Fixes #678
Fixes #679
This commit is contained in:
rdb 2019-07-10 10:05:10 +02:00
parent e080d33e31
commit cee000d1da

View File

@ -967,6 +967,10 @@ if (COMPILER=="GCC"):
else: else:
PkgDisable("OPENCV") PkgDisable("OPENCV")
if GetTarget() == "darwin" and not PkgSkip("OPENAL"):
LibName("OPENAL", "-framework AudioToolbox")
LibName("OPENAL", "-framework CoreAudio")
if not PkgSkip("ASSIMP") and \ if not PkgSkip("ASSIMP") and \
os.path.isfile(GetThirdpartyDir() + "assimp/lib/libassimp.a"): os.path.isfile(GetThirdpartyDir() + "assimp/lib/libassimp.a"):
# Also pick up IrrXML, which is needed when linking statically. # Also pick up IrrXML, which is needed when linking statically.