mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
68 lines
2.1 KiB
Bash
Executable File
68 lines
2.1 KiB
Bash
Executable File
#! /bin/sh
|
|
|
|
# This is just a helper script to generatePythonCode to cover
|
|
# the three or four cases we use all the time
|
|
# usage: genPyCode [-t] win-[linux/win-debug/win-release/win-publish] [other libs]
|
|
# -t adds libtoontown
|
|
|
|
firstarg="$1"
|
|
extra_genPyCode_libs=""
|
|
|
|
if [ "$firstarg" = "-t" ]; then
|
|
extra_genPyCode_libs="$extra_genPyCode_libs libtoontown"
|
|
shift
|
|
firstarg="$1"
|
|
fi
|
|
|
|
if [ "$firstarg" = "-b" ]; then
|
|
extra_genPyCode_libs="$extra_genPyCode_libs libbartop"
|
|
shift
|
|
firstarg="$1"
|
|
fi
|
|
|
|
if [ "$firstarg" = "-tt" ]; then
|
|
extra_genPyCode_libs="$extra_genPyCode_libs libttrader"
|
|
shift
|
|
firstarg="$1"
|
|
fi
|
|
|
|
if [ "$firstarg" = "-v" ]; then
|
|
extra_genPyCode_libs="$extra_genPyCode_libs libvrpn"
|
|
shift
|
|
firstarg="$1"
|
|
fi
|
|
|
|
shift
|
|
extra_genPyCode_libs="$extra_genPyCode_libs $*"
|
|
|
|
if [ "$firstarg" = "linux" ]; then
|
|
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
|
|
exit 1
|
|
fi
|
|
|
|
if [ "$firstarg" = "win-debug" ]; then
|
|
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
|
|
exit 1
|
|
fi
|
|
|
|
if [ "$firstarg" = "win-release" ]; then
|
|
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
|
|
exit 1
|
|
fi
|
|
|
|
if [ "$firstarg" = "win-publish" ]; then
|
|
# no assertions, no comments, no docstrings
|
|
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
|
|
exit 1
|
|
fi
|
|
|
|
if [ "$firstarg" = "install" ]; then
|
|
# as installed on a machine without ctattach etc.
|
|
exec bin/ppython -d bin/generatePythonCode -v -d lib/py -e ../direct/src/extensions -i libdtoolconfig libpandaexpress libpanda libpandaphysics libdirect $extra_genPyCode_libs
|
|
exit 1
|
|
fi
|