mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
Changes related to genpycode
This commit is contained in:
parent
d406f9a64a
commit
893ca7a413
@ -213,7 +213,7 @@ VERBOSE=1
|
|||||||
COMPRESSOR="zlib"
|
COMPRESSOR="zlib"
|
||||||
PACKAGES=["PYTHON","ZLIB","PNG","JPEG","TIFF","VRPN","FMOD","NVIDIACG","HELIX","NSPR",
|
PACKAGES=["PYTHON","ZLIB","PNG","JPEG","TIFF","VRPN","FMOD","NVIDIACG","HELIX","NSPR",
|
||||||
"SSL","FREETYPE","FFTW","MILES","MAYA5","MAYA6","MAYA65","MAX5","MAX6","MAX7",
|
"SSL","FREETYPE","FFTW","MILES","MAYA5","MAYA6","MAYA65","MAX5","MAX6","MAX7",
|
||||||
"BISONFLEX"]
|
"BISON","FLEX"]
|
||||||
OMIT=PACKAGES[:]
|
OMIT=PACKAGES[:]
|
||||||
WARNINGS=[]
|
WARNINGS=[]
|
||||||
DIRECTXSDK = None
|
DIRECTXSDK = None
|
||||||
@ -512,7 +512,7 @@ def usage(problem):
|
|||||||
|
|
||||||
def parseopts(args):
|
def parseopts(args):
|
||||||
global PREFIX,COMPILER,OPTIMIZE,OMIT,THIRDPARTY,INSTALLER,GENMAN
|
global PREFIX,COMPILER,OPTIMIZE,OMIT,THIRDPARTY,INSTALLER,GENMAN
|
||||||
global PPGAME,COPYEXTRAS,VERSION,COMPRESSOR,DIRECTXSDK,VERBOSE
|
global PPGAME,VERSION,COMPRESSOR,DIRECTXSDK,VERBOSE
|
||||||
longopts = [
|
longopts = [
|
||||||
"help","package-info","prefix=","compiler=","directx-sdk=","thirdparty=",
|
"help","package-info","prefix=","compiler=","directx-sdk=","thirdparty=",
|
||||||
"optimize=","everything","nothing","installer","ppgame=","quiet","verbose",
|
"optimize=","everything","nothing","installer","ppgame=","quiet","verbose",
|
||||||
@ -1157,7 +1157,7 @@ def CopyAllHeaders(dir):
|
|||||||
print msg
|
print msg
|
||||||
WARNINGS.append(msg)
|
WARNINGS.append(msg)
|
||||||
for x in SetDifference(cvsheaders, files):
|
for x in SetDifference(cvsheaders, files):
|
||||||
msg = "WARNING: header file %s is in your directory, but not in CVS"%(dir+"/"+x)
|
msg = "WARNING: header file %s is CVS, but not in your directory"%(dir+"/"+x)
|
||||||
print msg
|
print msg
|
||||||
WARNINGS.append(msg)
|
WARNINGS.append(msg)
|
||||||
# actually copy the headers.
|
# actually copy the headers.
|
||||||
@ -1188,7 +1188,7 @@ def CompileBison(pre,dstc,dsth,src):
|
|||||||
"""
|
"""
|
||||||
Generate a CXX file from a source YXX file.
|
Generate a CXX file from a source YXX file.
|
||||||
"""
|
"""
|
||||||
if (OMIT.count("BISONFLEX")):
|
if (OMIT.count("BISON")):
|
||||||
dir = os.path.dirname(src)
|
dir = os.path.dirname(src)
|
||||||
CopyFile(PREFIX+"/tmp/"+dstc, dir+"/"+dstc+".prebuilt")
|
CopyFile(PREFIX+"/tmp/"+dstc, dir+"/"+dstc+".prebuilt")
|
||||||
CopyFile(PREFIX+"/tmp/"+dsth, dir+"/"+dsth+".prebuilt")
|
CopyFile(PREFIX+"/tmp/"+dsth, dir+"/"+dsth+".prebuilt")
|
||||||
@ -1215,7 +1215,7 @@ def CompileFlex(pre,dst,src,dashi):
|
|||||||
"""
|
"""
|
||||||
Generate a CXX file from a source LXX file.
|
Generate a CXX file from a source LXX file.
|
||||||
"""
|
"""
|
||||||
if (OMIT.count("BISONFLEX")):
|
if (OMIT.count("FLEX")):
|
||||||
dir = os.path.dirname(src)
|
dir = os.path.dirname(src)
|
||||||
CopyFile(PREFIX+"/tmp/"+dst, dir+"/"+dst+".prebuilt")
|
CopyFile(PREFIX+"/tmp/"+dst, dir+"/"+dst+".prebuilt")
|
||||||
return()
|
return()
|
||||||
@ -1485,7 +1485,7 @@ def CompileLink(dll=0, obj=[], opts=[], xdep=[]):
|
|||||||
if (OPTIMIZE==3): cmd = cmd + " /MAP:NUL "
|
if (OPTIMIZE==3): cmd = cmd + " /MAP:NUL "
|
||||||
if (OPTIMIZE==4): cmd = cmd + " /MAP:NUL /LTCG"
|
if (OPTIMIZE==4): cmd = cmd + " /MAP:NUL /LTCG"
|
||||||
cmd = cmd + " /FIXED:NO /OPT:REF /STACK:4194304 /INCREMENTAL:NO "
|
cmd = cmd + " /FIXED:NO /OPT:REF /STACK:4194304 /INCREMENTAL:NO "
|
||||||
if (opts.count("MAXEGGDEF")): cmd = cmd + ' /DEF:pandatool/src/maxegg/MaxEgg.def'
|
if (opts.count("MAXEGGDEF")): cmd = cmd + ' /DEF:pandatool/src/maxegg/maxEgg.def'
|
||||||
cmd = cmd + ' /OUT:' + dll + ' /IMPLIB:' + lib
|
cmd = cmd + ' /OUT:' + dll + ' /IMPLIB:' + lib
|
||||||
if (OMIT.count("PYTHON")==0): cmd = cmd + ' /LIBPATH:' + PREFIX + '/python/libs '
|
if (OMIT.count("PYTHON")==0): cmd = cmd + ' /LIBPATH:' + PREFIX + '/python/libs '
|
||||||
for x in wobj: cmd = cmd + ' ' + x
|
for x in wobj: cmd = cmd + ' ' + x
|
||||||
@ -2397,7 +2397,7 @@ CompileC(ipath=IPATH, opts=OPTS, src='gobj_composite1.cxx', obj='gobj_composite1
|
|||||||
CompileC(ipath=IPATH, opts=OPTS, src='gobj_composite2.cxx', obj='gobj_composite2.obj')
|
CompileC(ipath=IPATH, opts=OPTS, src='gobj_composite2.cxx', obj='gobj_composite2.obj')
|
||||||
Interrogate(ipath=IPATH, opts=OPTS, outd='libgobj.in', outc='libgobj_igate.cxx',
|
Interrogate(ipath=IPATH, opts=OPTS, outd='libgobj.in', outc='libgobj_igate.cxx',
|
||||||
src='panda/src/gobj', module='panda', library='libgobj',
|
src='panda/src/gobj', module='panda', library='libgobj',
|
||||||
skip=["geomprimitives.h"], also=["gobj_composite1.cxx", "gobj_composite2.cxx"])
|
skip=[], also=["gobj_composite1.cxx", "gobj_composite2.cxx"])
|
||||||
CompileC(ipath=IPATH, opts=OPTS, src='libgobj_igate.cxx', obj='libgobj_igate.obj')
|
CompileC(ipath=IPATH, opts=OPTS, src='libgobj_igate.cxx', obj='libgobj_igate.obj')
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -2459,7 +2459,7 @@ CompileC(ipath=IPATH, opts=OPTS, src='char_composite1.cxx', obj='char_composite1
|
|||||||
CompileC(ipath=IPATH, opts=OPTS, src='char_composite2.cxx', obj='char_composite2.obj')
|
CompileC(ipath=IPATH, opts=OPTS, src='char_composite2.cxx', obj='char_composite2.obj')
|
||||||
Interrogate(ipath=IPATH, opts=OPTS, outd='libchar.in', outc='libchar_igate.cxx',
|
Interrogate(ipath=IPATH, opts=OPTS, outd='libchar.in', outc='libchar_igate.cxx',
|
||||||
src='panda/src/char', module='panda', library='libchar',
|
src='panda/src/char', module='panda', library='libchar',
|
||||||
skip=['char_headers.h'], also=["char_composite1.cxx", "char_composite2.cxx"])
|
skip=[], also=["char_composite1.cxx", "char_composite2.cxx"])
|
||||||
CompileC(ipath=IPATH, opts=OPTS, src='libchar_igate.cxx', obj='libchar_igate.obj')
|
CompileC(ipath=IPATH, opts=OPTS, src='libchar_igate.cxx', obj='libchar_igate.obj')
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -3059,8 +3059,6 @@ CompileLink(dll='libpandaegg.dll', opts=['ADVAPI', 'NSPR'], obj=[
|
|||||||
'egg_parser.obj',
|
'egg_parser.obj',
|
||||||
'egg_lexer.obj',
|
'egg_lexer.obj',
|
||||||
'libegg_igate.obj',
|
'libegg_igate.obj',
|
||||||
'builder_composite1.obj',
|
|
||||||
'builder_composite2.obj',
|
|
||||||
'libpanda.dll',
|
'libpanda.dll',
|
||||||
'libpandaexpress.dll',
|
'libpandaexpress.dll',
|
||||||
'libdtoolconfig.dll',
|
'libdtoolconfig.dll',
|
||||||
@ -4007,12 +4005,11 @@ for VER in ["5", "6", "7"]:
|
|||||||
if (OMIT.count("MAX"+VER)==0):
|
if (OMIT.count("MAX"+VER)==0):
|
||||||
IPATH=['pandatool/src/maxegg']
|
IPATH=['pandatool/src/maxegg']
|
||||||
OPTS=['MAX'+VER, 'NSPR', "WINCOMCTL", "WINCOMDLG", "WINUSER", "MAXEGGDEF"]
|
OPTS=['MAX'+VER, 'NSPR', "WINCOMCTL", "WINCOMDLG", "WINUSER", "MAXEGGDEF"]
|
||||||
CopyAllHeaders(IPATH[0])
|
CopyFile(PREFIX+"/tmp/maxEgg.obj", "pandatool/src/maxegg/maxEgg.obj")
|
||||||
CopyFile(PREFIX+"/tmp/MaxEgg.obj", "pandatool/src/maxegg/MaxEgg.obj")
|
|
||||||
CompileC(ipath=IPATH, opts=OPTS, src='maxegg_composite1.cxx',obj='maxegg'+VER+'_composite1.obj')
|
CompileC(ipath=IPATH, opts=OPTS, src='maxegg_composite1.cxx',obj='maxegg'+VER+'_composite1.obj')
|
||||||
CompileLink(opts=OPTS, dll='maxegg'+VER+'.dlo', obj=[
|
CompileLink(opts=OPTS, dll='maxegg'+VER+'.dlo', obj=[
|
||||||
'maxegg'+VER+'_composite1.obj',
|
'maxegg'+VER+'_composite1.obj',
|
||||||
'MaxEgg.obj',
|
'maxEgg.obj',
|
||||||
'libeggbase.lib',
|
'libeggbase.lib',
|
||||||
'libprogbase.lib',
|
'libprogbase.lib',
|
||||||
'libpandatoolbase.lib',
|
'libpandatoolbase.lib',
|
||||||
@ -4137,7 +4134,6 @@ for VER in ["5","6","65"]:
|
|||||||
IPATH=['pandatool/src/mayaprogs', 'pandatool/src/maya', 'pandatool/src/mayaegg',
|
IPATH=['pandatool/src/mayaprogs', 'pandatool/src/maya', 'pandatool/src/mayaegg',
|
||||||
'pandatool/src/cvscopy']
|
'pandatool/src/cvscopy']
|
||||||
OPTS=['BUILDING_MISC', 'MAYA'+VER, 'NSPR']
|
OPTS=['BUILDING_MISC', 'MAYA'+VER, 'NSPR']
|
||||||
CopyAllHeaders(IPATH[0])
|
|
||||||
CompileC(ipath=IPATH, opts=OPTS, src='config_mayaloader.cxx', obj='mayaloader'+VER+'_config_mayaloader.obj')
|
CompileC(ipath=IPATH, opts=OPTS, src='config_mayaloader.cxx', obj='mayaloader'+VER+'_config_mayaloader.obj')
|
||||||
CompileLink(dll='libmayaloader'+VER+'.dll', opts=['ADVAPI', 'NSPR', 'MAYA'+VER], obj=[
|
CompileLink(dll='libmayaloader'+VER+'.dll', opts=['ADVAPI', 'NSPR', 'MAYA'+VER], obj=[
|
||||||
'mayaloader'+VER+'_config_mayaloader.obj',
|
'mayaloader'+VER+'_config_mayaloader.obj',
|
||||||
@ -4615,15 +4611,15 @@ CompileBAM("../=", PREFIX+"/models/misc/Spotlight.bam", "dmodels/src/misc/S
|
|||||||
##########################################################################################
|
##########################################################################################
|
||||||
|
|
||||||
if (OMIT.count("PYTHON")==0):
|
if (OMIT.count("PYTHON")==0):
|
||||||
if (older(PREFIX+'/pandac/PandaModules.pyz',xpaths(PREFIX+"/pandac/input/",ALLIN,""))):
|
if (older(PREFIX+'/pandac/PandaModules.py',xpaths(PREFIX+"/pandac/input/",ALLIN,""))):
|
||||||
ALLTARGETS.append(PREFIX+'/pandac/PandaModules.pyz')
|
ALLTARGETS.append(PREFIX+'/pandac/PandaModules.py')
|
||||||
if (sys.platform=="win32"):
|
if (sys.platform=="win32"):
|
||||||
if (GENMAN): oscmd(PREFIX+"/bin/genpycode.exe -m")
|
if (GENMAN): oscmd(PREFIX+"/bin/genpycode.exe -m")
|
||||||
else : oscmd(PREFIX+"/bin/genpycode.exe")
|
else : oscmd(PREFIX+"/bin/genpycode.exe")
|
||||||
else:
|
else:
|
||||||
if (GENMAN): oscmd(PREFIX+"/bin/genpycode -m")
|
if (GENMAN): oscmd(PREFIX+"/bin/genpycode -m")
|
||||||
else : oscmd(PREFIX+"/bin/genpycode")
|
else : oscmd(PREFIX+"/bin/genpycode")
|
||||||
updatefiledate(PREFIX+'/pandac/PandaModules.pyz')
|
updatefiledate(PREFIX+'/pandac/PandaModules.py')
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
##
|
##
|
||||||
@ -4711,7 +4707,7 @@ Description: The panda3D free 3D engine
|
|||||||
oscmd("ln -sf /usr/lib/"+base+" debtmp/usr/lib/"+PYTHONV+"/lib-dynload/"+base)
|
oscmd("ln -sf /usr/lib/"+base+" debtmp/usr/lib/"+PYTHONV+"/lib-dynload/"+base)
|
||||||
oscmd("cp built/lib/"+base+" debtmp/usr/lib/"+base)
|
oscmd("cp built/lib/"+base+" debtmp/usr/lib/"+base)
|
||||||
for base in os.listdir("debtmp/usr/share/panda3d/direct/src"):
|
for base in os.listdir("debtmp/usr/share/panda3d/direct/src"):
|
||||||
if (base != "extensions"):
|
if ((base != "extensions") and (base != "extensions_native")):
|
||||||
compileall.compile_dir("debtmp/usr/share/panda3d/direct/src/"+base)
|
compileall.compile_dir("debtmp/usr/share/panda3d/direct/src/"+base)
|
||||||
compileall.compile_dir("debtmp/usr/share/panda3d/Pmw")
|
compileall.compile_dir("debtmp/usr/share/panda3d/Pmw")
|
||||||
compileall.compile_dir("debtmp/usr/share/panda3d/epydoc")
|
compileall.compile_dir("debtmp/usr/share/panda3d/epydoc")
|
||||||
|
@ -78,7 +78,6 @@ Section "${SMDIRECTORY}" SecCore
|
|||||||
File ${PANDA}\direct\__init__.py
|
File ${PANDA}\direct\__init__.py
|
||||||
SetOutPath $INSTDIR\pandac
|
SetOutPath $INSTDIR\pandac
|
||||||
File /r ${PANDA}\pandac\*.py
|
File /r ${PANDA}\pandac\*.py
|
||||||
File /r ${PANDA}\pandac\*.pyz
|
|
||||||
SetOutPath $INSTDIR\python
|
SetOutPath $INSTDIR\python
|
||||||
File /r /x CVS /x *.pyc ${PANDA}\python\*
|
File /r /x CVS /x *.pyc ${PANDA}\python\*
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user