This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
stellar-stellar-dev-env/tsg_framework.sh
2024-02-27 10:55:13 +08:00

40 lines
1.6 KiB
Bash

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