diff options
| author | yangwei <[email protected]> | 2024-02-26 19:26:43 +0800 |
|---|---|---|
| committer | yangwei <[email protected]> | 2024-02-27 10:55:13 +0800 |
| commit | f467df42ec53958848247b000ff07bddf2fdaf75 (patch) | |
| tree | d67195db71815b10288627e16d2f30f4f17166c5 /tsg_framework.sh | |
| parent | d6cec34bb7b70016cb9c079a152c6612605116ba (diff) | |
🎉 init(first commit):
Diffstat (limited to 'tsg_framework.sh')
| -rw-r--r-- | tsg_framework.sh | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/tsg_framework.sh b/tsg_framework.sh new file mode 100644 index 0000000..91edcd8 --- /dev/null +++ b/tsg_framework.sh @@ -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
\ No newline at end of file |
