|
@@ -1009,12 +1009,26 @@ if (COMPILER=="GCC"):
|
|
|
|
|
|
|
|
if GetTarget() == 'darwin':
|
|
if GetTarget() == 'darwin':
|
|
|
LibName("ALWAYS", "-framework AppKit")
|
|
LibName("ALWAYS", "-framework AppKit")
|
|
|
|
|
+ LibName("IOKIT", "-framework IOKit")
|
|
|
|
|
+ LibName("QUARTZ", "-framework Quartz")
|
|
|
LibName("AGL", "-framework AGL")
|
|
LibName("AGL", "-framework AGL")
|
|
|
LibName("CARBON", "-framework Carbon")
|
|
LibName("CARBON", "-framework Carbon")
|
|
|
LibName("COCOA", "-framework Cocoa")
|
|
LibName("COCOA", "-framework Cocoa")
|
|
|
# Fix for a bug in OSX Leopard:
|
|
# Fix for a bug in OSX Leopard:
|
|
|
LibName("GL", "-dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib")
|
|
LibName("GL", "-dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib")
|
|
|
|
|
|
|
|
|
|
+ # Temporary exceptions to removal of this flag
|
|
|
|
|
+ if not PkgSkip("ROCKET"):
|
|
|
|
|
+ LibName("ROCKET", "-undefined dynamic_lookup")
|
|
|
|
|
+ if not PkgSkip("FFMPEG"):
|
|
|
|
|
+ LibName("FFMPEG", "-undefined dynamic_lookup")
|
|
|
|
|
+ if not PkgSkip("ASSIMP"):
|
|
|
|
|
+ LibName("ASSIMP", "-undefined dynamic_lookup")
|
|
|
|
|
+ if not PkgSkip("OPENEXR"):
|
|
|
|
|
+ LibName("OPENEXR", "-undefined dynamic_lookup")
|
|
|
|
|
+ if not PkgSkip("VRPN"):
|
|
|
|
|
+ LibName("VRPN", "-undefined dynamic_lookup")
|
|
|
|
|
+
|
|
|
if GetTarget() == 'android':
|
|
if GetTarget() == 'android':
|
|
|
LibName("ALWAYS", '-llog')
|
|
LibName("ALWAYS", '-llog')
|
|
|
LibName("ANDROID", '-landroid')
|
|
LibName("ANDROID", '-landroid')
|
|
@@ -1140,6 +1154,7 @@ def BracketNameWithQuotes(name):
|
|
|
# Workaround for OSX bug - compiler doesn't like those flags quoted.
|
|
# Workaround for OSX bug - compiler doesn't like those flags quoted.
|
|
|
if (name.startswith("-framework")): return name
|
|
if (name.startswith("-framework")): return name
|
|
|
if (name.startswith("-dylib_file")): return name
|
|
if (name.startswith("-dylib_file")): return name
|
|
|
|
|
+ if (name.startswith("-undefined ")): return name
|
|
|
|
|
|
|
|
# Don't add quotes when it's not necessary.
|
|
# Don't add quotes when it's not necessary.
|
|
|
if " " not in name: return name
|
|
if " " not in name: return name
|
|
@@ -1813,9 +1828,11 @@ def CompileLink(dll, obj, opts):
|
|
|
cmd += ' -Wl,--allow-shlib-undefined'
|
|
cmd += ' -Wl,--allow-shlib-undefined'
|
|
|
else:
|
|
else:
|
|
|
if (GetTarget() == "darwin"):
|
|
if (GetTarget() == "darwin"):
|
|
|
- cmd = cxx + ' -undefined dynamic_lookup'
|
|
|
|
|
- if ("BUNDLE" in opts or GetOrigExt(dll) == ".pyd"):
|
|
|
|
|
- cmd += ' -bundle '
|
|
|
|
|
|
|
+ cmd = cxx
|
|
|
|
|
+ if GetOrigExt(dll) == ".pyd":
|
|
|
|
|
+ cmd += ' -bundle -undefined dynamic_lookup'
|
|
|
|
|
+ elif "BUNDLE" in opts:
|
|
|
|
|
+ cmd += ' -bundle'
|
|
|
else:
|
|
else:
|
|
|
install_name = '@loader_path/../lib/' + os.path.basename(dll)
|
|
install_name = '@loader_path/../lib/' + os.path.basename(dll)
|
|
|
cmd += ' -dynamiclib -install_name ' + install_name
|
|
cmd += ' -dynamiclib -install_name ' + install_name
|
|
@@ -2325,7 +2342,6 @@ DTOOL_CONFIG=[
|
|
|
("COMPILE_IN_DEFAULT_FONT", '1', '1'),
|
|
("COMPILE_IN_DEFAULT_FONT", '1', '1'),
|
|
|
("STDFLOAT_DOUBLE", 'UNDEF', 'UNDEF'),
|
|
("STDFLOAT_DOUBLE", 'UNDEF', 'UNDEF'),
|
|
|
("HAVE_MAYA", '1', '1'),
|
|
("HAVE_MAYA", '1', '1'),
|
|
|
- ("HAVE_SOFTIMAGE", 'UNDEF', 'UNDEF'),
|
|
|
|
|
("REPORT_OPENSSL_ERRORS", '1', '1'),
|
|
("REPORT_OPENSSL_ERRORS", '1', '1'),
|
|
|
("USE_PANDAFILESTREAM", '1', '1'),
|
|
("USE_PANDAFILESTREAM", '1', '1'),
|
|
|
("USE_DELETED_CHAIN", '1', '1'),
|
|
("USE_DELETED_CHAIN", '1', '1'),
|
|
@@ -2866,6 +2882,14 @@ for basename in del_files:
|
|
|
p3d_init = """"Python bindings for the Panda3D libraries"
|
|
p3d_init = """"Python bindings for the Panda3D libraries"
|
|
|
|
|
|
|
|
__version__ = '%s'
|
|
__version__ = '%s'
|
|
|
|
|
+
|
|
|
|
|
+if __debug__:
|
|
|
|
|
+ import sys
|
|
|
|
|
+ if sys.version_info < (3, 0):
|
|
|
|
|
+ sys.stderr.write("WARNING: Python 2.7 will reach EOL after December 31, 2019.\\n")
|
|
|
|
|
+ sys.stderr.write("To suppress this warning, upgrade to Python 3.\\n")
|
|
|
|
|
+ sys.stderr.flush()
|
|
|
|
|
+ del sys
|
|
|
""" % (WHLVERSION)
|
|
""" % (WHLVERSION)
|
|
|
|
|
|
|
|
if GetTarget() == 'windows':
|
|
if GetTarget() == 'windows':
|
|
@@ -3661,6 +3685,7 @@ IGATEFILES += [
|
|
|
"globPattern_ext.h",
|
|
"globPattern_ext.h",
|
|
|
"pandaFileStream.h",
|
|
"pandaFileStream.h",
|
|
|
"lineStream.h",
|
|
"lineStream.h",
|
|
|
|
|
+ "iostream_ext.h",
|
|
|
]
|
|
]
|
|
|
TargetAdd('libp3dtoolutil.in', opts=OPTS, input=IGATEFILES)
|
|
TargetAdd('libp3dtoolutil.in', opts=OPTS, input=IGATEFILES)
|
|
|
TargetAdd('libp3dtoolutil.in', opts=['IMOD:panda3d.core', 'ILIB:libp3dtoolutil', 'SRCDIR:dtool/src/dtoolutil'])
|
|
TargetAdd('libp3dtoolutil.in', opts=['IMOD:panda3d.core', 'ILIB:libp3dtoolutil', 'SRCDIR:dtool/src/dtoolutil'])
|
|
@@ -4204,7 +4229,7 @@ if (not RUNTIME):
|
|
|
OPTS=['DIR:panda/metalibs/panda', 'BUILDING:PANDA', 'JPEG', 'PNG', 'HARFBUZZ',
|
|
OPTS=['DIR:panda/metalibs/panda', 'BUILDING:PANDA', 'JPEG', 'PNG', 'HARFBUZZ',
|
|
|
'TIFF', 'OPENEXR', 'ZLIB', 'OPENSSL', 'FREETYPE', 'FFTW', 'ADVAPI', 'WINSOCK2',
|
|
'TIFF', 'OPENEXR', 'ZLIB', 'OPENSSL', 'FREETYPE', 'FFTW', 'ADVAPI', 'WINSOCK2',
|
|
|
'SQUISH', 'NVIDIACG', 'VORBIS', 'OPUS', 'WINUSER', 'WINMM', 'WINGDI', 'IPHLPAPI',
|
|
'SQUISH', 'NVIDIACG', 'VORBIS', 'OPUS', 'WINUSER', 'WINMM', 'WINGDI', 'IPHLPAPI',
|
|
|
- 'SETUPAPI']
|
|
|
|
|
|
|
+ 'SETUPAPI', 'IOKIT']
|
|
|
|
|
|
|
|
TargetAdd('panda_panda.obj', opts=OPTS, input='panda.cxx')
|
|
TargetAdd('panda_panda.obj', opts=OPTS, input='panda.cxx')
|
|
|
|
|
|
|
@@ -4843,7 +4868,7 @@ if (GetTarget() == 'darwin' and PkgSkip("COCOA")==0 and PkgSkip("GL")==0 and not
|
|
|
if (PkgSkip('PANDAFX')==0):
|
|
if (PkgSkip('PANDAFX')==0):
|
|
|
TargetAdd('libpandagl.dll', input='libpandafx.dll')
|
|
TargetAdd('libpandagl.dll', input='libpandafx.dll')
|
|
|
TargetAdd('libpandagl.dll', input=COMMON_PANDA_LIBS)
|
|
TargetAdd('libpandagl.dll', input=COMMON_PANDA_LIBS)
|
|
|
- TargetAdd('libpandagl.dll', opts=['MODULE', 'GL', 'NVIDIACG', 'CGGL', 'COCOA', 'CARBON'])
|
|
|
|
|
|
|
+ TargetAdd('libpandagl.dll', opts=['MODULE', 'GL', 'NVIDIACG', 'CGGL', 'COCOA', 'CARBON', 'QUARTZ'])
|
|
|
|
|
|
|
|
#
|
|
#
|
|
|
# DIRECTORY: panda/src/wgldisplay/
|
|
# DIRECTORY: panda/src/wgldisplay/
|