mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
Updated to squeeze pandamodules
This commit is contained in:
parent
2e89604634
commit
f10f2815b7
@ -4,7 +4,7 @@ from DirectNotifyGlobal import *
|
|||||||
notify = directNotify.newCategory("FFI")
|
notify = directNotify.newCategory("FFI")
|
||||||
|
|
||||||
# This is the name of the file that the importing code will be stored
|
# This is the name of the file that the importing code will be stored
|
||||||
importModuleName = 'PandaModules'
|
importModuleName = 'PandaModulesUnsqueezed'
|
||||||
|
|
||||||
# A header for all the generated files
|
# A header for all the generated files
|
||||||
generatedHeader = '# This file is automatically generated. It would be unwise to edit.\n\n'
|
generatedHeader = '# This file is automatically generated. It would be unwise to edit.\n\n'
|
||||||
|
@ -704,8 +704,9 @@ class FFIInterrogateDatabase:
|
|||||||
file.write('from ' + CModuleName + 'Modules import *\n')
|
file.write('from ' + CModuleName + 'Modules import *\n')
|
||||||
file.close()
|
file.close()
|
||||||
|
|
||||||
FFIConstants.notify.info( 'Compiling code...')
|
# Commented out based upon assumption that squeeze will do the compile
|
||||||
compileall.compile_dir(codeDir)
|
#FFIConstants.notify.info( 'Compiling code...')
|
||||||
|
#compileall.compile_dir(codeDir)
|
||||||
|
|
||||||
def generateCodeLib(self, codeDir, extensionsDir, CModuleName):
|
def generateCodeLib(self, codeDir, extensionsDir, CModuleName):
|
||||||
# Reset the environment so we are clean from any old modules
|
# Reset the environment so we are clean from any old modules
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
firstarg="$1"
|
firstarg="$1"
|
||||||
extra_genPyCode_libs=""
|
extra_genPyCode_libs=""
|
||||||
fSqueeze=""
|
fSqueeze=""
|
||||||
|
optimizeFlag=""
|
||||||
|
ppythonOptimizeFlag=""
|
||||||
|
|
||||||
if [ "$firstarg" = "-t" ]; then
|
if [ "$firstarg" = "-t" ]; then
|
||||||
extra_genPyCode_libs="$extra_genPyCode_libs libtoontown"
|
extra_genPyCode_libs="$extra_genPyCode_libs libtoontown"
|
||||||
@ -61,6 +63,8 @@ if [ "$firstarg" = "win-publish" ]; then
|
|||||||
# no assertions, no comments, no docstrings
|
# no assertions, no comments, no docstrings
|
||||||
cd $DIRECT/bin
|
cd $DIRECT/bin
|
||||||
ppython -OO generatePythonCode -O -v -d `cygpath -w $DIRECT/lib/py` -e `cygpath -w $DIRECT/src/extensions` -i libdtoolconfig libpandaexpress libpanda libpandaphysics libdirect $extra_genPyCode_libs || exit
|
ppython -OO generatePythonCode -O -v -d `cygpath -w $DIRECT/lib/py` -e `cygpath -w $DIRECT/src/extensions` -i libdtoolconfig libpandaexpress libpanda libpandaphysics libdirect $extra_genPyCode_libs || exit
|
||||||
|
optimizeFlag="-O"
|
||||||
|
ppythonOptimizeFlag="-OO"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$firstarg" = "install" ]; then
|
if [ "$firstarg" = "install" ]; then
|
||||||
@ -74,9 +78,11 @@ if [ "$firstarg" = "release" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$fSqueeze" = "squeezeMe" ]; then
|
if [ "$fSqueeze" = "squeezeMe" ]; then
|
||||||
echo SQUEEZING ShowBaseGlobals
|
echo SQUEEZING PandaModules
|
||||||
cd $DIRECT/src/showbase
|
cd $DIRECT/lib/py
|
||||||
ppython pandaSqueezer.py || exit
|
rm -f PandaModules.py*
|
||||||
|
pSqueezer=`cygpath -w $DIRECT/src/showbase/pandaSqueezer.py`
|
||||||
|
ppython $ppythonOptimizeFlag $pSqueezer $optimizeFlag || exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo DONE
|
echo DONE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user