mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
OSX mesa dependency issue, and some changes for 10.6 too
This commit is contained in:
parent
912f533e1e
commit
6b8b843438
@ -478,7 +478,6 @@ if (COMPILER=="LINUX"):
|
|||||||
LibName("CARBON", "-framework Carbon")
|
LibName("CARBON", "-framework Carbon")
|
||||||
LibName("COCOA", "-framework Cocoa")
|
LibName("COCOA", "-framework Cocoa")
|
||||||
LibName("GLUT", "-framework OpenGL")
|
LibName("GLUT", "-framework OpenGL")
|
||||||
LibName("GLUT", "-lOSMesa")
|
|
||||||
# Fix for a bug in OSX:
|
# Fix for a bug in OSX:
|
||||||
LibName("GLUT", "-dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib")
|
LibName("GLUT", "-dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib")
|
||||||
else:
|
else:
|
||||||
@ -610,6 +609,9 @@ def CompileCxx(obj,src,opts):
|
|||||||
if (opt=="ALWAYS") or (opts.count(opt)): cmd += ' -D' + var + '=' + val
|
if (opt=="ALWAYS") or (opts.count(opt)): cmd += ' -D' + var + '=' + val
|
||||||
for x in ipath: cmd += ' -I' + x
|
for x in ipath: cmd += ' -I' + x
|
||||||
if (sys.platform == "darwin"):
|
if (sys.platform == "darwin"):
|
||||||
|
if (int(platform.mac_ver()[0][3]) >= 6):
|
||||||
|
cmd += " -isysroot " + SDK["MACOSX"] + " -arch x86_64"
|
||||||
|
else:
|
||||||
cmd += " -isysroot " + SDK["MACOSX"] + " -arch i386"
|
cmd += " -isysroot " + SDK["MACOSX"] + " -arch i386"
|
||||||
if ("NOPPC" not in opts): cmd += " -arch ppc"
|
if ("NOPPC" not in opts): cmd += " -arch ppc"
|
||||||
optlevel = GetOptimizeOption(opts)
|
optlevel = GetOptimizeOption(opts)
|
||||||
|
@ -966,7 +966,9 @@ def SdkLocateMSPlatform():
|
|||||||
|
|
||||||
def SdkLocateMacOSX():
|
def SdkLocateMacOSX():
|
||||||
if (sys.platform != "darwin"): return
|
if (sys.platform != "darwin"): return
|
||||||
if (os.path.exists("/Developer/SDKs/MacOSX10.5.sdk")):
|
if (os.path.exists("/Developer/SDKs/MacOSX10.6.sdk")):
|
||||||
|
SDK["MACOSX"] = "/Developer/SDKs/MacOSX10.6.sdk"
|
||||||
|
elif (os.path.exists("/Developer/SDKs/MacOSX10.5.sdk")):
|
||||||
SDK["MACOSX"] = "/Developer/SDKs/MacOSX10.5.sdk"
|
SDK["MACOSX"] = "/Developer/SDKs/MacOSX10.5.sdk"
|
||||||
elif (os.path.exists("/Developer/SDKs/MacOSX10.4u.sdk")):
|
elif (os.path.exists("/Developer/SDKs/MacOSX10.4u.sdk")):
|
||||||
SDK["MACOSX"] = "/Developer/SDKs/MacOSX10.4u.sdk"
|
SDK["MACOSX"] = "/Developer/SDKs/MacOSX10.4u.sdk"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user