|
@@ -1789,29 +1789,6 @@ def CompileRsrc(target, src, opts):
|
|
|
cmd += " " + BracketNameWithQuotes(src)
|
|
cmd += " " + BracketNameWithQuotes(src)
|
|
|
oscmd(cmd)
|
|
oscmd(cmd)
|
|
|
|
|
|
|
|
-##########################################################################################
|
|
|
|
|
-#
|
|
|
|
|
-# GenPyExtensions
|
|
|
|
|
-#
|
|
|
|
|
-##########################################################################################
|
|
|
|
|
-
|
|
|
|
|
-def GenPyExtensions(target, inputs, opts):
|
|
|
|
|
- # Hopefully the need for this will soon go away as we migrate everything to
|
|
|
|
|
- # C extensions.
|
|
|
|
|
-
|
|
|
|
|
- code = "# This file is automatically generated by makepanda.py. Do not modify.\n"
|
|
|
|
|
- code += "from __future__ import absolute_import\n"
|
|
|
|
|
-
|
|
|
|
|
- for i in inputs:
|
|
|
|
|
- if GetOrigExt(i) == ".pyd":
|
|
|
|
|
- code += "from .%s import *\n" % (os.path.splitext(os.path.basename(i))[0])
|
|
|
|
|
- elif GetOrigExt(i) == ".py":
|
|
|
|
|
- code += "### BEGIN %s\n" % i
|
|
|
|
|
- code += ReadFile(i)
|
|
|
|
|
- code += "### END %s\n" % i
|
|
|
|
|
-
|
|
|
|
|
- WriteFile(target, code)
|
|
|
|
|
-
|
|
|
|
|
##########################################################################################
|
|
##########################################################################################
|
|
|
#
|
|
#
|
|
|
# FreezePy
|
|
# FreezePy
|
|
@@ -1968,10 +1945,6 @@ def CompileAnything(target, inputs, opts, progress = None):
|
|
|
os.system("chmod +x \"%s\"" % target)
|
|
os.system("chmod +x \"%s\"" % target)
|
|
|
return
|
|
return
|
|
|
|
|
|
|
|
- elif (target.endswith(".py")):
|
|
|
|
|
- ProgressOutput(progress, "Generating", target)
|
|
|
|
|
- return GenPyExtensions(target, inputs, opts)
|
|
|
|
|
-
|
|
|
|
|
elif (infile.endswith(".py")):
|
|
elif (infile.endswith(".py")):
|
|
|
if origsuffix == ".obj":
|
|
if origsuffix == ".obj":
|
|
|
source = os.path.splitext(target)[0] + ".c"
|
|
source = os.path.splitext(target)[0] + ".c"
|
|
@@ -2622,28 +2595,22 @@ if (PkgSkip("DIRECT")==0):
|
|
|
if os.path.isfile(GetOutputDir() + '/lib/panda3d.py'):
|
|
if os.path.isfile(GetOutputDir() + '/lib/panda3d.py'):
|
|
|
os.remove(GetOutputDir() + '/lib/panda3d.py')
|
|
os.remove(GetOutputDir() + '/lib/panda3d.py')
|
|
|
|
|
|
|
|
- # Don't copy this file, which would cause conflict with our 'panda3d' module.
|
|
|
|
|
- if os.path.isfile(GetOutputDir() + '/direct/ffi/panda3d.py'):
|
|
|
|
|
- os.remove(GetOutputDir() + '/direct/ffi/panda3d.py')
|
|
|
|
|
- if os.path.isfile(GetOutputDir() + '/direct/ffi/panda3d.pyc'):
|
|
|
|
|
- os.remove(GetOutputDir() + '/direct/ffi/panda3d.pyc')
|
|
|
|
|
|
|
+ # This directory doesn't exist at all any more.
|
|
|
|
|
+ if os.path.isdir(os.path.join(GetOutputDir(), 'direct', 'ffi')):
|
|
|
|
|
+ shutil.rmtree(os.path.join(GetOutputDir(), 'direct', 'ffi'))
|
|
|
|
|
|
|
|
-# This used to exist; no longer.
|
|
|
|
|
-if GetTarget() == 'windows':
|
|
|
|
|
- core_so = GetOutputDir() + '/panda3d/core.pyd'
|
|
|
|
|
- direct_so = GetOutputDir() + '/panda3d/direct.pyd'
|
|
|
|
|
- dtoolconfig_so = GetOutputDir() + '/panda3d/dtoolconfig.pyd'
|
|
|
|
|
-else:
|
|
|
|
|
- core_so = GetOutputDir() + '/panda3d/core.so'
|
|
|
|
|
- direct_so = GetOutputDir() + '/panda3d/direct.so'
|
|
|
|
|
- dtoolconfig_so = GetOutputDir() + '/panda3d/dtoolconfig.so'
|
|
|
|
|
|
|
+# These files used to exist; remove them to avoid conflicts.
|
|
|
|
|
+del_files = ['core.py', 'core.pyc', 'core.pyo',
|
|
|
|
|
+ '_core.pyd', '_core.so',
|
|
|
|
|
+ 'direct.py', 'direct.pyc', 'direct.pyo',
|
|
|
|
|
+ '_direct.pyd', '_direct.so',
|
|
|
|
|
+ 'dtoolconfig.pyd', 'dtoolconfig.so']
|
|
|
|
|
|
|
|
-if os.path.isfile(core_so):
|
|
|
|
|
- os.remove(core_so)
|
|
|
|
|
-if os.path.isfile(direct_so):
|
|
|
|
|
- os.remove(direct_so)
|
|
|
|
|
-if os.path.isfile(dtoolconfig_so):
|
|
|
|
|
- os.remove(dtoolconfig_so)
|
|
|
|
|
|
|
+for basename in del_files:
|
|
|
|
|
+ path = os.path.join(GetOutputDir(), 'panda3d', basename)
|
|
|
|
|
+ if os.path.isfile(path):
|
|
|
|
|
+ print("Removing %s" % (path))
|
|
|
|
|
+ os.remove(path)
|
|
|
|
|
|
|
|
# Write an appropriate panda3d/__init__.py
|
|
# Write an appropriate panda3d/__init__.py
|
|
|
p3d_init = """"Python bindings for the Panda3D libraries"
|
|
p3d_init = """"Python bindings for the Panda3D libraries"
|
|
@@ -2663,7 +2630,14 @@ if os.path.isfile(os.path.join(bindir, 'libpanda.dll')):
|
|
|
del os, bindir
|
|
del os, bindir
|
|
|
"""
|
|
"""
|
|
|
|
|
|
|
|
-ConditionalWriteFile(GetOutputDir() + '/panda3d/__init__.py', p3d_init)
|
|
|
|
|
|
|
+if not PkgSkip("PYTHON"):
|
|
|
|
|
+ ConditionalWriteFile(GetOutputDir() + '/panda3d/__init__.py', p3d_init)
|
|
|
|
|
+
|
|
|
|
|
+ # Also add this file, for backward compatibility.
|
|
|
|
|
+ ConditionalWriteFile(GetOutputDir() + '/panda3d/dtoolconfig.py', """
|
|
|
|
|
+print("Warning: panda3d.dtoolconfig is deprecated, use panda3d.interrogatedb instead.")
|
|
|
|
|
+from .interrogatedb import *
|
|
|
|
|
+""")
|
|
|
|
|
|
|
|
# PandaModules is now deprecated; generate a shim for backward compatibility.
|
|
# PandaModules is now deprecated; generate a shim for backward compatibility.
|
|
|
for fn in glob.glob(GetOutputDir() + '/pandac/*.py') + glob.glob(GetOutputDir() + '/pandac/*.py[co]'):
|
|
for fn in glob.glob(GetOutputDir() + '/pandac/*.py') + glob.glob(GetOutputDir() + '/pandac/*.py[co]'):
|
|
@@ -2703,8 +2677,9 @@ except ImportError as err:
|
|
|
if "No module named %s" not in str(err):
|
|
if "No module named %s" not in str(err):
|
|
|
raise""" % (module, module)
|
|
raise""" % (module, module)
|
|
|
|
|
|
|
|
-ConditionalWriteFile(GetOutputDir() + '/pandac/PandaModules.py', panda_modules_code)
|
|
|
|
|
-ConditionalWriteFile(GetOutputDir() + '/pandac/__init__.py', '')
|
|
|
|
|
|
|
+if not PkgSkip("PYTHON"):
|
|
|
|
|
+ ConditionalWriteFile(GetOutputDir() + '/pandac/PandaModules.py', panda_modules_code)
|
|
|
|
|
+ ConditionalWriteFile(GetOutputDir() + '/pandac/__init__.py', '')
|
|
|
|
|
|
|
|
##########################################################################################
|
|
##########################################################################################
|
|
|
#
|
|
#
|
|
@@ -3197,9 +3172,6 @@ if not PkgSkip("PYTHON"):
|
|
|
TargetAdd('interrogatedb.pyd', input='libp3interrogatedb.dll')
|
|
TargetAdd('interrogatedb.pyd', input='libp3interrogatedb.dll')
|
|
|
TargetAdd('interrogatedb.pyd', opts=['PYTHON'])
|
|
TargetAdd('interrogatedb.pyd', opts=['PYTHON'])
|
|
|
|
|
|
|
|
- # Make a stub file importing the new one for backward compatibility.
|
|
|
|
|
- TargetAdd('panda3d/dtoolconfig.py', input='interrogatedb.pyd')
|
|
|
|
|
-
|
|
|
|
|
#
|
|
#
|
|
|
# DIRECTORY: dtool/src/pystub/
|
|
# DIRECTORY: dtool/src/pystub/
|
|
|
#
|
|
#
|
|
@@ -3930,69 +3902,60 @@ if (not RUNTIME):
|
|
|
if PkgSkip("FREETYPE")==0:
|
|
if PkgSkip("FREETYPE")==0:
|
|
|
TargetAdd('core_module.obj', input='libp3pnmtext.in')
|
|
TargetAdd('core_module.obj', input='libp3pnmtext.in')
|
|
|
|
|
|
|
|
- TargetAdd('core_module.obj', opts=['IMOD:panda3d._core', 'ILIB:_core'])
|
|
|
|
|
-
|
|
|
|
|
- TargetAdd('_core.pyd', input='libp3downloader_igate.obj')
|
|
|
|
|
- TargetAdd('_core.pyd', input='p3downloader_stringStream_ext.obj')
|
|
|
|
|
- TargetAdd('_core.pyd', input='p3express_ext_composite.obj')
|
|
|
|
|
- TargetAdd('_core.pyd', input='libp3express_igate.obj')
|
|
|
|
|
-
|
|
|
|
|
- TargetAdd('_core.pyd', input='libp3recorder_igate.obj')
|
|
|
|
|
- TargetAdd('_core.pyd', input='libp3pgraphnodes_igate.obj')
|
|
|
|
|
- TargetAdd('_core.pyd', input='libp3pgraph_igate.obj')
|
|
|
|
|
- TargetAdd('_core.pyd', input='libp3movies_igate.obj')
|
|
|
|
|
- TargetAdd('_core.pyd', input='libp3grutil_igate.obj')
|
|
|
|
|
- TargetAdd('_core.pyd', input='libp3chan_igate.obj')
|
|
|
|
|
- TargetAdd('_core.pyd', input='libp3pstatclient_igate.obj')
|
|
|
|
|
- TargetAdd('_core.pyd', input='libp3char_igate.obj')
|
|
|
|
|
- TargetAdd('_core.pyd', input='libp3collide_igate.obj')
|
|
|
|
|
- TargetAdd('_core.pyd', input='libp3device_igate.obj')
|
|
|
|
|
- TargetAdd('_core.pyd', input='libp3dgraph_igate.obj')
|
|
|
|
|
- TargetAdd('_core.pyd', input='libp3display_igate.obj')
|
|
|
|
|
- TargetAdd('_core.pyd', input='libp3pipeline_igate.obj')
|
|
|
|
|
- TargetAdd('_core.pyd', input='libp3event_igate.obj')
|
|
|
|
|
- TargetAdd('_core.pyd', input='libp3gobj_igate.obj')
|
|
|
|
|
- TargetAdd('_core.pyd', input='libp3gsgbase_igate.obj')
|
|
|
|
|
- TargetAdd('_core.pyd', input='libp3linmath_igate.obj')
|
|
|
|
|
- TargetAdd('_core.pyd', input='libp3mathutil_igate.obj')
|
|
|
|
|
- TargetAdd('_core.pyd', input='libp3parametrics_igate.obj')
|
|
|
|
|
- TargetAdd('_core.pyd', input='libp3pnmimage_igate.obj')
|
|
|
|
|
- TargetAdd('_core.pyd', input='libp3text_igate.obj')
|
|
|
|
|
- TargetAdd('_core.pyd', input='libp3tform_igate.obj')
|
|
|
|
|
- TargetAdd('_core.pyd', input='libp3putil_igate.obj')
|
|
|
|
|
- TargetAdd('_core.pyd', input='libp3audio_igate.obj')
|
|
|
|
|
- TargetAdd('_core.pyd', input='libp3pgui_igate.obj')
|
|
|
|
|
- TargetAdd('_core.pyd', input='libp3net_igate.obj')
|
|
|
|
|
- TargetAdd('_core.pyd', input='libp3nativenet_igate.obj')
|
|
|
|
|
- TargetAdd('_core.pyd', input='libp3dxml_igate.obj')
|
|
|
|
|
|
|
+ TargetAdd('core_module.obj', opts=['IMOD:panda3d.core', 'ILIB:core'])
|
|
|
|
|
+
|
|
|
|
|
+ TargetAdd('core.pyd', input='libp3downloader_igate.obj')
|
|
|
|
|
+ TargetAdd('core.pyd', input='p3downloader_stringStream_ext.obj')
|
|
|
|
|
+ TargetAdd('core.pyd', input='p3express_ext_composite.obj')
|
|
|
|
|
+ TargetAdd('core.pyd', input='libp3express_igate.obj')
|
|
|
|
|
+
|
|
|
|
|
+ TargetAdd('core.pyd', input='libp3recorder_igate.obj')
|
|
|
|
|
+ TargetAdd('core.pyd', input='libp3pgraphnodes_igate.obj')
|
|
|
|
|
+ TargetAdd('core.pyd', input='libp3pgraph_igate.obj')
|
|
|
|
|
+ TargetAdd('core.pyd', input='libp3movies_igate.obj')
|
|
|
|
|
+ TargetAdd('core.pyd', input='libp3grutil_igate.obj')
|
|
|
|
|
+ TargetAdd('core.pyd', input='libp3chan_igate.obj')
|
|
|
|
|
+ TargetAdd('core.pyd', input='libp3pstatclient_igate.obj')
|
|
|
|
|
+ TargetAdd('core.pyd', input='libp3char_igate.obj')
|
|
|
|
|
+ TargetAdd('core.pyd', input='libp3collide_igate.obj')
|
|
|
|
|
+ TargetAdd('core.pyd', input='libp3device_igate.obj')
|
|
|
|
|
+ TargetAdd('core.pyd', input='libp3dgraph_igate.obj')
|
|
|
|
|
+ TargetAdd('core.pyd', input='libp3display_igate.obj')
|
|
|
|
|
+ TargetAdd('core.pyd', input='libp3pipeline_igate.obj')
|
|
|
|
|
+ TargetAdd('core.pyd', input='libp3event_igate.obj')
|
|
|
|
|
+ TargetAdd('core.pyd', input='libp3gobj_igate.obj')
|
|
|
|
|
+ TargetAdd('core.pyd', input='libp3gsgbase_igate.obj')
|
|
|
|
|
+ TargetAdd('core.pyd', input='libp3linmath_igate.obj')
|
|
|
|
|
+ TargetAdd('core.pyd', input='libp3mathutil_igate.obj')
|
|
|
|
|
+ TargetAdd('core.pyd', input='libp3parametrics_igate.obj')
|
|
|
|
|
+ TargetAdd('core.pyd', input='libp3pnmimage_igate.obj')
|
|
|
|
|
+ TargetAdd('core.pyd', input='libp3text_igate.obj')
|
|
|
|
|
+ TargetAdd('core.pyd', input='libp3tform_igate.obj')
|
|
|
|
|
+ TargetAdd('core.pyd', input='libp3putil_igate.obj')
|
|
|
|
|
+ TargetAdd('core.pyd', input='libp3audio_igate.obj')
|
|
|
|
|
+ TargetAdd('core.pyd', input='libp3pgui_igate.obj')
|
|
|
|
|
+ TargetAdd('core.pyd', input='libp3net_igate.obj')
|
|
|
|
|
+ TargetAdd('core.pyd', input='libp3nativenet_igate.obj')
|
|
|
|
|
+ TargetAdd('core.pyd', input='libp3dxml_igate.obj')
|
|
|
|
|
|
|
|
if PkgSkip("FREETYPE")==0:
|
|
if PkgSkip("FREETYPE")==0:
|
|
|
- TargetAdd('_core.pyd', input="libp3pnmtext_igate.obj")
|
|
|
|
|
-
|
|
|
|
|
- TargetAdd('_core.pyd', input='p3putil_typedWritable_ext.obj')
|
|
|
|
|
- TargetAdd('_core.pyd', input='p3putil_pythonCallbackObject.obj')
|
|
|
|
|
- TargetAdd('_core.pyd', input='p3pnmimage_pfmFile_ext.obj')
|
|
|
|
|
- TargetAdd('_core.pyd', input='p3event_pythonTask.obj')
|
|
|
|
|
- TargetAdd('_core.pyd', input='p3gobj_ext_composite.obj')
|
|
|
|
|
- TargetAdd('_core.pyd', input='p3pgraph_ext_composite.obj')
|
|
|
|
|
- TargetAdd('_core.pyd', input='p3display_graphicsStateGuardian_ext.obj')
|
|
|
|
|
- TargetAdd('_core.pyd', input='p3display_graphicsWindow_ext.obj')
|
|
|
|
|
- TargetAdd('_core.pyd', input='p3display_pythonGraphicsWindowProc.obj')
|
|
|
|
|
-
|
|
|
|
|
- TargetAdd('_core.pyd', input='core_module.obj')
|
|
|
|
|
- TargetAdd('_core.pyd', input='libp3tinyxml.ilb')
|
|
|
|
|
- TargetAdd('_core.pyd', input='libp3interrogatedb.dll')
|
|
|
|
|
- TargetAdd('_core.pyd', input=COMMON_PANDA_LIBS)
|
|
|
|
|
- TargetAdd('_core.pyd', opts=['PYTHON', 'WINSOCK2'])
|
|
|
|
|
-
|
|
|
|
|
- OPTS=['DIR:direct/src/extensions_native']
|
|
|
|
|
- TargetAdd('panda3d/core.py', input='_core.pyd')
|
|
|
|
|
- TargetAdd('panda3d/core.py', opts=OPTS, input='core_extensions.py')
|
|
|
|
|
- TargetAdd('panda3d/core.py', opts=OPTS, input='NodePath_extensions.py')
|
|
|
|
|
- TargetAdd('panda3d/core.py', opts=OPTS, input='Mat3_extensions.py')
|
|
|
|
|
- TargetAdd('panda3d/core.py', opts=OPTS, input='VBase3_extensions.py')
|
|
|
|
|
- TargetAdd('panda3d/core.py', opts=OPTS, input='VBase4_extensions.py')
|
|
|
|
|
- TargetAdd('panda3d/core.py', opts=OPTS, input='HTTPChannel_extensions.py')
|
|
|
|
|
|
|
+ TargetAdd('core.pyd', input="libp3pnmtext_igate.obj")
|
|
|
|
|
+
|
|
|
|
|
+ TargetAdd('core.pyd', input='p3putil_typedWritable_ext.obj')
|
|
|
|
|
+ TargetAdd('core.pyd', input='p3putil_pythonCallbackObject.obj')
|
|
|
|
|
+ TargetAdd('core.pyd', input='p3pnmimage_pfmFile_ext.obj')
|
|
|
|
|
+ TargetAdd('core.pyd', input='p3event_pythonTask.obj')
|
|
|
|
|
+ TargetAdd('core.pyd', input='p3gobj_ext_composite.obj')
|
|
|
|
|
+ TargetAdd('core.pyd', input='p3pgraph_ext_composite.obj')
|
|
|
|
|
+ TargetAdd('core.pyd', input='p3display_graphicsStateGuardian_ext.obj')
|
|
|
|
|
+ TargetAdd('core.pyd', input='p3display_graphicsWindow_ext.obj')
|
|
|
|
|
+ TargetAdd('core.pyd', input='p3display_pythonGraphicsWindowProc.obj')
|
|
|
|
|
+
|
|
|
|
|
+ TargetAdd('core.pyd', input='core_module.obj')
|
|
|
|
|
+ TargetAdd('core.pyd', input='libp3tinyxml.ilb')
|
|
|
|
|
+ TargetAdd('core.pyd', input='libp3interrogatedb.dll')
|
|
|
|
|
+ TargetAdd('core.pyd', input=COMMON_PANDA_LIBS)
|
|
|
|
|
+ TargetAdd('core.pyd', opts=['PYTHON', 'WINSOCK2'])
|
|
|
|
|
|
|
|
#
|
|
#
|
|
|
# DIRECTORY: panda/src/vision/
|
|
# DIRECTORY: panda/src/vision/
|
|
@@ -4014,7 +3977,7 @@ if (PkgSkip("VISION") == 0) and (not RUNTIME):
|
|
|
|
|
|
|
|
TargetAdd('vision_module.obj', input='libp3vision.in')
|
|
TargetAdd('vision_module.obj', input='libp3vision.in')
|
|
|
TargetAdd('vision_module.obj', opts=OPTS)
|
|
TargetAdd('vision_module.obj', opts=OPTS)
|
|
|
- TargetAdd('vision_module.obj', opts=['IMOD:panda3d.vision', 'ILIB:vision', 'IMPORT:panda3d._core'])
|
|
|
|
|
|
|
+ TargetAdd('vision_module.obj', opts=['IMOD:panda3d.vision', 'ILIB:vision', 'IMPORT:panda3d.core'])
|
|
|
|
|
|
|
|
TargetAdd('vision.pyd', input='vision_module.obj')
|
|
TargetAdd('vision.pyd', input='vision_module.obj')
|
|
|
TargetAdd('vision.pyd', input='libp3vision_igate.obj')
|
|
TargetAdd('vision.pyd', input='libp3vision_igate.obj')
|
|
@@ -4045,7 +4008,7 @@ if (PkgSkip("ROCKET") == 0) and (not RUNTIME):
|
|
|
|
|
|
|
|
TargetAdd('rocket_module.obj', input='libp3rocket.in')
|
|
TargetAdd('rocket_module.obj', input='libp3rocket.in')
|
|
|
TargetAdd('rocket_module.obj', opts=OPTS)
|
|
TargetAdd('rocket_module.obj', opts=OPTS)
|
|
|
- TargetAdd('rocket_module.obj', opts=['IMOD:panda3d.rocket', 'ILIB:rocket', 'IMPORT:panda3d._core'])
|
|
|
|
|
|
|
+ TargetAdd('rocket_module.obj', opts=['IMOD:panda3d.rocket', 'ILIB:rocket', 'IMPORT:panda3d.core'])
|
|
|
|
|
|
|
|
TargetAdd('rocket.pyd', input='rocket_module.obj')
|
|
TargetAdd('rocket.pyd', input='rocket_module.obj')
|
|
|
TargetAdd('rocket.pyd', input='libp3rocket_igate.obj')
|
|
TargetAdd('rocket.pyd', input='libp3rocket_igate.obj')
|
|
@@ -4073,7 +4036,7 @@ if PkgSkip("AWESOMIUM") == 0 and not RUNTIME:
|
|
|
|
|
|
|
|
TargetAdd('awesomium_module.obj', input='libp3awesomium.in')
|
|
TargetAdd('awesomium_module.obj', input='libp3awesomium.in')
|
|
|
TargetAdd('awesomium_module.obj', opts=OPTS)
|
|
TargetAdd('awesomium_module.obj', opts=OPTS)
|
|
|
- TargetAdd('awesomium_module.obj', opts=['IMOD:panda3d.awesomium', 'ILIB:awesomium', 'IMPORT:panda3d._core'])
|
|
|
|
|
|
|
+ TargetAdd('awesomium_module.obj', opts=['IMOD:panda3d.awesomium', 'ILIB:awesomium', 'IMPORT:panda3d.core'])
|
|
|
|
|
|
|
|
TargetAdd('awesomium.pyd', input='awesomium_module.obj')
|
|
TargetAdd('awesomium.pyd', input='awesomium_module.obj')
|
|
|
TargetAdd('awesomium.pyd', input='libp3awesomium_igate.obj')
|
|
TargetAdd('awesomium.pyd', input='libp3awesomium_igate.obj')
|
|
@@ -4107,7 +4070,7 @@ if (PkgSkip('SKEL')==0) and (not RUNTIME):
|
|
|
TargetAdd('libpandaskel.dll', opts=OPTS)
|
|
TargetAdd('libpandaskel.dll', opts=OPTS)
|
|
|
|
|
|
|
|
TargetAdd('skel_module.obj', input='libp3skel.in')
|
|
TargetAdd('skel_module.obj', input='libp3skel.in')
|
|
|
- TargetAdd('skel_module.obj', opts=['IMOD:panda3d.skel', 'ILIB:skel', 'IMPORT:panda3d._core'])
|
|
|
|
|
|
|
+ TargetAdd('skel_module.obj', opts=['IMOD:panda3d.skel', 'ILIB:skel', 'IMPORT:panda3d.core'])
|
|
|
|
|
|
|
|
TargetAdd('skel.pyd', input='skel_module.obj')
|
|
TargetAdd('skel.pyd', input='skel_module.obj')
|
|
|
TargetAdd('skel.pyd', input='libp3skel_igate.obj')
|
|
TargetAdd('skel.pyd', input='libp3skel_igate.obj')
|
|
@@ -4146,7 +4109,7 @@ if (PkgSkip('PANDAFX')==0) and (not RUNTIME):
|
|
|
OPTS=['DIR:panda/metalibs/pandafx', 'DIR:panda/src/distort', 'NVIDIACG']
|
|
OPTS=['DIR:panda/metalibs/pandafx', 'DIR:panda/src/distort', 'NVIDIACG']
|
|
|
TargetAdd('fx_module.obj', input='libp3distort.in')
|
|
TargetAdd('fx_module.obj', input='libp3distort.in')
|
|
|
TargetAdd('fx_module.obj', opts=OPTS)
|
|
TargetAdd('fx_module.obj', opts=OPTS)
|
|
|
- TargetAdd('fx_module.obj', opts=['IMOD:panda3d.fx', 'ILIB:fx', 'IMPORT:panda3d._core'])
|
|
|
|
|
|
|
+ TargetAdd('fx_module.obj', opts=['IMOD:panda3d.fx', 'ILIB:fx', 'IMPORT:panda3d.core'])
|
|
|
|
|
|
|
|
TargetAdd('fx.pyd', input='fx_module.obj')
|
|
TargetAdd('fx.pyd', input='fx_module.obj')
|
|
|
TargetAdd('fx.pyd', input='libp3distort_igate.obj')
|
|
TargetAdd('fx.pyd', input='libp3distort_igate.obj')
|
|
@@ -4174,7 +4137,7 @@ if (PkgSkip("VRPN")==0 and not RUNTIME):
|
|
|
|
|
|
|
|
TargetAdd('vrpn_module.obj', input='libp3vrpn.in')
|
|
TargetAdd('vrpn_module.obj', input='libp3vrpn.in')
|
|
|
TargetAdd('vrpn_module.obj', opts=OPTS)
|
|
TargetAdd('vrpn_module.obj', opts=OPTS)
|
|
|
- TargetAdd('vrpn_module.obj', opts=['IMOD:panda3d.vrpn', 'ILIB:vrpn', 'IMPORT:panda3d._core'])
|
|
|
|
|
|
|
+ TargetAdd('vrpn_module.obj', opts=['IMOD:panda3d.vrpn', 'ILIB:vrpn', 'IMPORT:panda3d.core'])
|
|
|
|
|
|
|
|
TargetAdd('vrpn.pyd', input='vrpn_module.obj')
|
|
TargetAdd('vrpn.pyd', input='vrpn_module.obj')
|
|
|
TargetAdd('vrpn.pyd', input='libp3vrpn_igate.obj')
|
|
TargetAdd('vrpn.pyd', input='libp3vrpn_igate.obj')
|
|
@@ -4407,7 +4370,7 @@ if (not RUNTIME):
|
|
|
TargetAdd('egg_module.obj', input='libp3egg2pg.in')
|
|
TargetAdd('egg_module.obj', input='libp3egg2pg.in')
|
|
|
TargetAdd('egg_module.obj', input='libp3egg.in')
|
|
TargetAdd('egg_module.obj', input='libp3egg.in')
|
|
|
TargetAdd('egg_module.obj', opts=OPTS)
|
|
TargetAdd('egg_module.obj', opts=OPTS)
|
|
|
- TargetAdd('egg_module.obj', opts=['IMOD:panda3d.egg', 'ILIB:egg', 'IMPORT:panda3d._core'])
|
|
|
|
|
|
|
+ TargetAdd('egg_module.obj', opts=['IMOD:panda3d.egg', 'ILIB:egg', 'IMPORT:panda3d.core'])
|
|
|
|
|
|
|
|
TargetAdd('egg.pyd', input='egg_module.obj')
|
|
TargetAdd('egg.pyd', input='egg_module.obj')
|
|
|
TargetAdd('egg.pyd', input='p3egg_eggGroupNode_ext.obj')
|
|
TargetAdd('egg.pyd', input='p3egg_eggGroupNode_ext.obj')
|
|
@@ -4574,7 +4537,7 @@ if (PkgSkip("ODE")==0 and not RUNTIME):
|
|
|
OPTS=['DIR:panda/metalibs/pandaode', 'ODE']
|
|
OPTS=['DIR:panda/metalibs/pandaode', 'ODE']
|
|
|
TargetAdd('ode_module.obj', input='libpandaode.in')
|
|
TargetAdd('ode_module.obj', input='libpandaode.in')
|
|
|
TargetAdd('ode_module.obj', opts=OPTS)
|
|
TargetAdd('ode_module.obj', opts=OPTS)
|
|
|
- TargetAdd('ode_module.obj', opts=['IMOD:panda3d.ode', 'ILIB:ode', 'IMPORT:panda3d._core'])
|
|
|
|
|
|
|
+ TargetAdd('ode_module.obj', opts=['IMOD:panda3d.ode', 'ILIB:ode', 'IMPORT:panda3d.core'])
|
|
|
|
|
|
|
|
TargetAdd('ode.pyd', input='ode_module.obj')
|
|
TargetAdd('ode.pyd', input='ode_module.obj')
|
|
|
TargetAdd('ode.pyd', input='libpandaode_igate.obj')
|
|
TargetAdd('ode.pyd', input='libpandaode_igate.obj')
|
|
@@ -4612,7 +4575,7 @@ if (PkgSkip("BULLET")==0 and not RUNTIME):
|
|
|
OPTS=['DIR:panda/metalibs/pandabullet', 'BULLET']
|
|
OPTS=['DIR:panda/metalibs/pandabullet', 'BULLET']
|
|
|
TargetAdd('bullet_module.obj', input='libpandabullet.in')
|
|
TargetAdd('bullet_module.obj', input='libpandabullet.in')
|
|
|
TargetAdd('bullet_module.obj', opts=OPTS)
|
|
TargetAdd('bullet_module.obj', opts=OPTS)
|
|
|
- TargetAdd('bullet_module.obj', opts=['IMOD:panda3d.bullet', 'ILIB:bullet', 'IMPORT:panda3d._core'])
|
|
|
|
|
|
|
+ TargetAdd('bullet_module.obj', opts=['IMOD:panda3d.bullet', 'ILIB:bullet', 'IMPORT:panda3d.core'])
|
|
|
|
|
|
|
|
TargetAdd('bullet.pyd', input='bullet_module.obj')
|
|
TargetAdd('bullet.pyd', input='bullet_module.obj')
|
|
|
TargetAdd('bullet.pyd', input='libpandabullet_igate.obj')
|
|
TargetAdd('bullet.pyd', input='libpandabullet_igate.obj')
|
|
@@ -4651,7 +4614,7 @@ if (PkgSkip("PHYSX")==0):
|
|
|
OPTS=['DIR:panda/metalibs/pandaphysx', 'PHYSX', 'NOARCH:PPC']
|
|
OPTS=['DIR:panda/metalibs/pandaphysx', 'PHYSX', 'NOARCH:PPC']
|
|
|
TargetAdd('physx_module.obj', input='libpandaphysx.in')
|
|
TargetAdd('physx_module.obj', input='libpandaphysx.in')
|
|
|
TargetAdd('physx_module.obj', opts=OPTS)
|
|
TargetAdd('physx_module.obj', opts=OPTS)
|
|
|
- TargetAdd('physx_module.obj', opts=['IMOD:panda3d.physx', 'ILIB:physx', 'IMPORT:panda3d._core'])
|
|
|
|
|
|
|
+ TargetAdd('physx_module.obj', opts=['IMOD:panda3d.physx', 'ILIB:physx', 'IMPORT:panda3d.core'])
|
|
|
|
|
|
|
|
TargetAdd('physx.pyd', input='physx_module.obj')
|
|
TargetAdd('physx.pyd', input='physx_module.obj')
|
|
|
TargetAdd('physx.pyd', input='libpandaphysx_igate.obj')
|
|
TargetAdd('physx.pyd', input='libpandaphysx_igate.obj')
|
|
@@ -4717,7 +4680,7 @@ if (PkgSkip("PANDAPHYSICS")==0) and (not RUNTIME):
|
|
|
if (PkgSkip("PANDAPARTICLESYSTEM")==0):
|
|
if (PkgSkip("PANDAPARTICLESYSTEM")==0):
|
|
|
TargetAdd('physics_module.obj', input='libp3particlesystem.in')
|
|
TargetAdd('physics_module.obj', input='libp3particlesystem.in')
|
|
|
TargetAdd('physics_module.obj', opts=OPTS)
|
|
TargetAdd('physics_module.obj', opts=OPTS)
|
|
|
- TargetAdd('physics_module.obj', opts=['IMOD:panda3d.physics', 'ILIB:physics', 'IMPORT:panda3d._core'])
|
|
|
|
|
|
|
+ TargetAdd('physics_module.obj', opts=['IMOD:panda3d.physics', 'ILIB:physics', 'IMPORT:panda3d.core'])
|
|
|
|
|
|
|
|
TargetAdd('physics.pyd', input='physics_module.obj')
|
|
TargetAdd('physics.pyd', input='physics_module.obj')
|
|
|
TargetAdd('physics.pyd', input='libp3physics_igate.obj')
|
|
TargetAdd('physics.pyd', input='libp3physics_igate.obj')
|
|
@@ -4974,23 +4937,19 @@ if (PkgSkip("DIRECT")==0):
|
|
|
TargetAdd('direct_module.obj', input='libp3interval.in')
|
|
TargetAdd('direct_module.obj', input='libp3interval.in')
|
|
|
TargetAdd('direct_module.obj', input='libp3distributed.in')
|
|
TargetAdd('direct_module.obj', input='libp3distributed.in')
|
|
|
TargetAdd('direct_module.obj', opts=OPTS)
|
|
TargetAdd('direct_module.obj', opts=OPTS)
|
|
|
- TargetAdd('direct_module.obj', opts=['IMOD:panda3d._direct', 'ILIB:_direct', 'IMPORT:panda3d._core'])
|
|
|
|
|
-
|
|
|
|
|
- TargetAdd('_direct.pyd', input='libp3dcparser_igate.obj')
|
|
|
|
|
- TargetAdd('_direct.pyd', input='libp3showbase_igate.obj')
|
|
|
|
|
- TargetAdd('_direct.pyd', input='libp3deadrec_igate.obj')
|
|
|
|
|
- TargetAdd('_direct.pyd', input='libp3interval_igate.obj')
|
|
|
|
|
- TargetAdd('_direct.pyd', input='libp3distributed_igate.obj')
|
|
|
|
|
|
|
+ TargetAdd('direct_module.obj', opts=['IMOD:panda3d.direct', 'ILIB:direct', 'IMPORT:panda3d.core'])
|
|
|
|
|
|
|
|
- TargetAdd('_direct.pyd', input='direct_module.obj')
|
|
|
|
|
- TargetAdd('_direct.pyd', input='libp3direct.dll')
|
|
|
|
|
- TargetAdd('_direct.pyd', input='libp3interrogatedb.dll')
|
|
|
|
|
- TargetAdd('_direct.pyd', input=COMMON_PANDA_LIBS)
|
|
|
|
|
- TargetAdd('_direct.pyd', opts=['PYTHON', 'OPENSSL', 'WINUSER', 'WINGDI'])
|
|
|
|
|
|
|
+ TargetAdd('direct.pyd', input='libp3dcparser_igate.obj')
|
|
|
|
|
+ TargetAdd('direct.pyd', input='libp3showbase_igate.obj')
|
|
|
|
|
+ TargetAdd('direct.pyd', input='libp3deadrec_igate.obj')
|
|
|
|
|
+ TargetAdd('direct.pyd', input='libp3interval_igate.obj')
|
|
|
|
|
+ TargetAdd('direct.pyd', input='libp3distributed_igate.obj')
|
|
|
|
|
|
|
|
- OPTS=['DIR:direct/src/extensions_native']
|
|
|
|
|
- TargetAdd('panda3d/direct.py', input='_direct.pyd')
|
|
|
|
|
- TargetAdd('panda3d/direct.py', opts=OPTS, input='CInterval_extensions.py')
|
|
|
|
|
|
|
+ TargetAdd('direct.pyd', input='direct_module.obj')
|
|
|
|
|
+ TargetAdd('direct.pyd', input='libp3direct.dll')
|
|
|
|
|
+ TargetAdd('direct.pyd', input='libp3interrogatedb.dll')
|
|
|
|
|
+ TargetAdd('direct.pyd', input=COMMON_PANDA_LIBS)
|
|
|
|
|
+ TargetAdd('direct.pyd', opts=['PYTHON', 'OPENSSL', 'WINUSER', 'WINGDI'])
|
|
|
|
|
|
|
|
#
|
|
#
|
|
|
# DIRECTORY: direct/src/dcparse/
|
|
# DIRECTORY: direct/src/dcparse/
|
|
@@ -5052,7 +5011,7 @@ if (RTDIST or RUNTIME):
|
|
|
# Freeze VFSImporter and its dependency modules into p3dpython.
|
|
# Freeze VFSImporter and its dependency modules into p3dpython.
|
|
|
# Mark panda3d.core as a dependency to make sure to build that first.
|
|
# Mark panda3d.core as a dependency to make sure to build that first.
|
|
|
TargetAdd('p3dpython_frozen.obj', input='VFSImporter.py', opts=['DIR:direct/src/showbase', 'FREEZE_STARTUP'])
|
|
TargetAdd('p3dpython_frozen.obj', input='VFSImporter.py', opts=['DIR:direct/src/showbase', 'FREEZE_STARTUP'])
|
|
|
- TargetAdd('p3dpython_frozen.obj', dep='panda3d/core.py')
|
|
|
|
|
|
|
+ TargetAdd('p3dpython_frozen.obj', dep='core.pyd')
|
|
|
|
|
|
|
|
TargetAdd('p3dpython_p3dpython_composite1.obj', opts=OPTS, input='p3dpython_composite1.cxx')
|
|
TargetAdd('p3dpython_p3dpython_composite1.obj', opts=OPTS, input='p3dpython_composite1.cxx')
|
|
|
TargetAdd('p3dpython_p3dPythonMain.obj', opts=OPTS, input='p3dPythonMain.cxx')
|
|
TargetAdd('p3dpython_p3dPythonMain.obj', opts=OPTS, input='p3dPythonMain.cxx')
|
|
@@ -6201,7 +6160,7 @@ if (PkgSkip("CONTRIB")==0 and not RUNTIME):
|
|
|
|
|
|
|
|
TargetAdd('ai_module.obj', input='libpandaai.in')
|
|
TargetAdd('ai_module.obj', input='libpandaai.in')
|
|
|
TargetAdd('ai_module.obj', opts=OPTS)
|
|
TargetAdd('ai_module.obj', opts=OPTS)
|
|
|
- TargetAdd('ai_module.obj', opts=['IMOD:panda3d.ai', 'ILIB:ai', 'IMPORT:panda3d._core'])
|
|
|
|
|
|
|
+ TargetAdd('ai_module.obj', opts=['IMOD:panda3d.ai', 'ILIB:ai', 'IMPORT:panda3d.core'])
|
|
|
|
|
|
|
|
TargetAdd('ai.pyd', input='ai_module.obj')
|
|
TargetAdd('ai.pyd', input='ai_module.obj')
|
|
|
TargetAdd('ai.pyd', input='libpandaai_igate.obj')
|
|
TargetAdd('ai.pyd', input='libpandaai_igate.obj')
|