mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
Added ability to squeeze ShowBaseGlobals
This commit is contained in:
parent
d56ac3776f
commit
ed7b0fbeff
@ -7,6 +7,7 @@
|
|||||||
|
|
||||||
firstarg="$1"
|
firstarg="$1"
|
||||||
extra_genPyCode_libs=""
|
extra_genPyCode_libs=""
|
||||||
|
fSqueeze=""
|
||||||
|
|
||||||
if [ "$firstarg" = "-t" ]; then
|
if [ "$firstarg" = "-t" ]; then
|
||||||
extra_genPyCode_libs="$extra_genPyCode_libs libtoontown"
|
extra_genPyCode_libs="$extra_genPyCode_libs libtoontown"
|
||||||
@ -32,42 +33,51 @@ shift
|
|||||||
firstarg="$1"
|
firstarg="$1"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$firstarg" = "-s" ]; then
|
||||||
|
fSqueeze="squeezeMe"
|
||||||
|
shift
|
||||||
|
firstarg="$1"
|
||||||
|
fi
|
||||||
|
|
||||||
shift
|
shift
|
||||||
extra_genPyCode_libs="$extra_genPyCode_libs $*"
|
extra_genPyCode_libs="$extra_genPyCode_libs $*"
|
||||||
|
|
||||||
if [ "$firstarg" = "linux" ]; then
|
if [ "$firstarg" = "linux" ]; then
|
||||||
cd $DIRECT/bin
|
cd $DIRECT/bin
|
||||||
exec ppython -d generatePythonCode -v -d $DIRECT/lib/py -e $DIRECT/src/extensions -i libdtoolconfig libpandaexpress libpanda libpandaphysics libdirect $extra_genPyCode_libs
|
ppython -d generatePythonCode -v -d $DIRECT/lib/py -e $DIRECT/src/extensions -i libdtoolconfig libpandaexpress libpanda libpandaphysics libdirect $extra_genPyCode_libs || exit
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$firstarg" = "win-debug" ]; then
|
if [ "$firstarg" = "win-debug" ]; then
|
||||||
cd $DIRECT/bin
|
cd $DIRECT/bin
|
||||||
exec ppython -d generatePythonCode -v -d `cygpath -w $DIRECT/lib/py` -e `cygpath -w $DIRECT/src/extensions` -i libdtoolconfig libpandaexpress libpanda libpandaphysics libdirect $extra_genPyCode_libs
|
ppython -d generatePythonCode -v -d `cygpath -w $DIRECT/lib/py` -e `cygpath -w $DIRECT/src/extensions` -i libdtoolconfig libpandaexpress libpanda libpandaphysics libdirect $extra_genPyCode_libs || exit
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$firstarg" = "win-release" ]; then
|
if [ "$firstarg" = "win-release" ]; then
|
||||||
cd $DIRECT/bin
|
cd $DIRECT/bin
|
||||||
exec ppython generatePythonCode -v -d `cygpath -w $DIRECT/lib/py` -e `cygpath -w $DIRECT/src/extensions` -i libdtoolconfig libpandaexpress libpanda libpandaphysics libdirect $extra_genPyCode_libs
|
ppython generatePythonCode -v -d `cygpath -w $DIRECT/lib/py` -e `cygpath -w $DIRECT/src/extensions` -i libdtoolconfig libpandaexpress libpanda libpandaphysics libdirect $extra_genPyCode_libs || exit
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$firstarg" = "win-publish" ]; then
|
if [ "$firstarg" = "win-publish" ]; then
|
||||||
# no assertions, no comments, no docstrings
|
# no assertions, no comments, no docstrings
|
||||||
cd $DIRECT/bin
|
cd $DIRECT/bin
|
||||||
exec 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
|
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
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$firstarg" = "install" ]; then
|
if [ "$firstarg" = "install" ]; then
|
||||||
# as installed on a machine without ctattach etc.
|
# as installed on a machine without ctattach etc.
|
||||||
exec install/bin/ppython -d install/bin/generatePythonCode -O -v -d install/lib/py -e direct/src/extensions -i libdtoolconfig libpandaexpress libpanda libpandaphysics libdirect $extra_genPyCode_libs
|
install/bin/ppython -d install/bin/generatePythonCode -O -v -d install/lib/py -e direct/src/extensions -i libdtoolconfig libpandaexpress libpanda libpandaphysics libdirect $extra_genPyCode_libs || exit
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$firstarg" = "release" ]; then
|
if [ "$firstarg" = "release" ]; then
|
||||||
# as installed on a machine without ctattach etc.
|
# as installed on a machine without ctattach etc.
|
||||||
exec install/bin/ppython install/bin/generatePythonCode -v -d install/lib/py -e direct/src/extensions -i libdtoolconfig libpandaexpress libpanda libpandaphysics libdirect $extra_genPyCode_libs
|
install/bin/ppython install/bin/generatePythonCode -v -d install/lib/py -e direct/src/extensions -i libdtoolconfig libpandaexpress libpanda libpandaphysics libdirect $extra_genPyCode_libs || exit
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$fSqueeze" = "squeezeMe" ]; then
|
||||||
|
echo SQUEEZING ShowBaseGlobals
|
||||||
|
cd $DIRECT/src/showbase
|
||||||
|
ppython pandaSqueezer.py || exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo DONE
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user