mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
Support prebuilt p3d files. Also, let's disable the new library system for the rtdist build until we have pythonwrapper<>c++lib separation working well.
This commit is contained in:
parent
f5e2e89d18
commit
e0bc983296
@ -1084,7 +1084,7 @@ def CompileAnything(target, inputs, opts, progress = None):
|
|||||||
ProgressOutput(progress, "Linking dynamic library", target)
|
ProgressOutput(progress, "Linking dynamic library", target)
|
||||||
|
|
||||||
# Add version number to the dynamic library, on unix
|
# Add version number to the dynamic library, on unix
|
||||||
if (origsuffix==".dll" and not sys.platform.startswith("win")):
|
if (origsuffix==".dll" and not sys.platform.startswith("win") and not RTDIST):
|
||||||
if (sys.platform == "darwin"):
|
if (sys.platform == "darwin"):
|
||||||
if (target.lower().endswith(".dylib")):
|
if (target.lower().endswith(".dylib")):
|
||||||
target = target[:-5] + VERSION + ".dylib"
|
target = target[:-5] + VERSION + ".dylib"
|
||||||
@ -1660,6 +1660,13 @@ if (PkgSkip("PYTHON")==0 and os.path.isdir("thirdparty/Pmw")):
|
|||||||
CopyTree(GetOutputDir()+'/Pmw', 'thirdparty/Pmw')
|
CopyTree(GetOutputDir()+'/Pmw', 'thirdparty/Pmw')
|
||||||
ConditionalWriteFile(GetOutputDir()+'/include/ctl3d.h', '/* dummy file to make MAX happy */')
|
ConditionalWriteFile(GetOutputDir()+'/include/ctl3d.h', '/* dummy file to make MAX happy */')
|
||||||
|
|
||||||
|
# Copy prebuilt p3d files
|
||||||
|
for g in glob.glob("direct/src/p3d/*.p3d"):
|
||||||
|
base = os.path.basename(g)
|
||||||
|
if (sys.platform.startswith("win")):
|
||||||
|
base = base.split(".", 1)[0]
|
||||||
|
CopyFile(GetOutputDir()+"/bin/"+base, g)
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
#
|
#
|
||||||
# Copy header files to the built/include/parser-inc directory.
|
# Copy header files to the built/include/parser-inc directory.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user