🎉 init(first commit):

This commit is contained in:
yangwei
2024-02-26 19:26:43 +08:00
parent d6cec34bb7
commit f467df42ec
6 changed files with 152 additions and 79 deletions

40
tsg_framework.sh Normal file
View File

@@ -0,0 +1,40 @@
if [ -z "$TSG_PLATFORM_SETUP" ]; then
#for c include
if [ "$C_INCLUDE_PATH" ]; then
export C_INCLUDE_PATH=/opt/tsg/framework/include:/opt/tsg/framework/include/MESA/:$C_INCLUDE_PATH
else
export C_INCLUDE_PATH=/opt/tsg/framework/include:/opt/tsg/framework/include/MESA/
fi
#for c++ include
if [ "$CPLUS_INCLUDE_PATH" ]; then
export CPLUS_INCLUDE_PATH=/opt/tsg/framework/include:/opt/tsg/framework/include/MESA/:$CPLUS_INCLUDE_PATH
else
export CPLUS_INCLUDE_PATH=/opt/tsg/framework/include:/opt/tsg/framework/include/MESA/
fi
#for linking
if [ "$LIBRARY_PATH" ]; then
if [[ ! -n `echo $LIBRARY_PATH | grep '/usr/local/lib'` ]];then
export LIBRARY_PATH=/opt/tsg/framework/lib/:/usr/local/lib/:$LIBRARY_PATH
else
export LIBRARY_PATH=/opt/tsg/framework/lib/:$LIBRARY_PATH
fi
else
export LIBRARY_PATH=/opt/tsg/framework/lib/:/usr/local/lib/
fi
#for ld
if [ "$LD_LIBRARY_PATH" ]; then
if [[ ! -n `echo $LD_LIBRARY_PATH | grep '/usr/local/lib'` ]];then
export LD_LIBRARY_PATH=/opt/tsg/framework/lib/:/usr/local/lib/:$LD_LIBRARY_PATH
else
export LD_LIBRARY_PATH=/opt/tsg/framework/lib/:$LD_LIBRARY_PATH
fi
else
export LD_LIBRARY_PATH=/opt/tsg/framework/lib/:/usr/local/lib/
fi
export TSG_PLATFORM_SETUP=1
fi