summaryrefslogtreecommitdiff
path: root/scripts/setenv-linbuild.sh
blob: e77d969f59dc27b42f0d3bb7d296bd555158b8e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# setup environment variables for building OpenSCAD against custom built
# dependency libraries. called by linux-build-dependencies.sh

# run this file with 'source setenv-linbuild.sh' every time you re-login
# and want to build or run openscad against custom libraries installed
# into BASEDIR.  

# copy this file to your .bashrc if desired. 

if [ ! $BASEDIR ]; then
  BASEDIR=$HOME/openscad_deps
fi
DEPLOYDIR=$BASEDIR

export PATH=$BASEDIR/bin:$PATH
export LD_LIBRARY_PATH=$DEPLOYDIR/lib:$DEPLOYDIR/lib64
export LD_RUN_PATH=$DEPLOYDIR/lib:$DEPLOYDIR/lib64
export OPENSCAD_LIBRARIES=$DEPLOYDIR
export GLEWDIR=$DEPLOYDIR

echo BASEDIR: $BASEDIR
echo DEPLOYDIR: $DEPLOYDIR
echo PATH modified
echo LD_LIBRARY_PATH modified
echo LD_RUN_PATH modified
echo OPENSCAD_LIBRARIES modified
echo GLEWDIR modified

contact: Jan Huwald // Impressum