-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathenvsetup.sh
More file actions
executable file
·59 lines (50 loc) · 1.54 KB
/
envsetup.sh
File metadata and controls
executable file
·59 lines (50 loc) · 1.54 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/bin/sh
START_DIR=`pwd`
while [ "`pwd`" != "/" -a "$DMZ_ROOT" = "" ] ; do
if [ -d ./lmkproject -a -d ./bin ] ; then
DMZ_ROOT=`pwd`
else
cd ..
fi
done
if [ "$DMZ_ROOT" = "" -a -d "$HOME/cm/" ] ; then
DMZ_ROOT="$HOME/cm"
fi
if [ "$DMZ_ROOT" = "" ] ; then
echo "Unable to locate the DMZ root directory"
exit -1
else
echo "DMZ Root: $DMZ_ROOT"
echo "-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-"
cd "$START_DIR"
fi
export QT_PLUGIN_PATH="$DMZ_ROOT/depend/Qt"
if [ "$DMZ_BIN_MODE" = "" ] ; then
DMZ_BIN_MODE="debug"
fi
if [ `uname` = "Darwin" ] ; then
export DYLD_LIBRARY_PATH=$DMZ_ROOT/bin/macos-$DMZ_BIN_MODE:$DMZ_ROOT/depend/Qt:$DMZ_ROOT/depend/osg/lib:$DMZ_ROOT/depend/Collada14Dom.framework:$DMZ_ROOT/depend/v8/lib:$DMZ_ROOT/depend/luajit/lib:$DYLD_LIBRARY_PATH
export BIN_HOME=$DMZ_ROOT/bin/macos-$DMZ_BIN_MODE ;
export DEBUG_EXE="gdb --args "
elif [ `uname` = "Linux" ] ; then
export LD_LIBRARY_PATH=$DMZ_ROOT/bin/linux-$DMZ_BIN_MODE:$LD_LIBRARY_PATH
export BIN_HOME=$DMZ_ROOT/bin/linux-$DMZ_BIN_MODE ;
export DEBUG_EXE="gdb --args "
elif [ `uname -o` = "Cygwin" ] ; then
if [ "$PATH" = "" ] ; then
export PATH=$DMZ_ROOT/depend/bin
else
export PATH=$DMZ_ROOT/depend/bin:$PATH
fi
export BIN_HOME=`cygpath -w $DMZ_ROOT/bin/win32-$DMZ_BIN_MODE` ;
export DEBUG_EXE="devenv /debugexe "
else
echo "Unsupported platform: " `uname`
exit -1
fi
if [ "$DMZ_DEBUG" = "true" ] ; then
export RUN_DEBUG="$DEBUG_EXE"
else
export RUN_DEBUG=""
fi
export DMZ_BIN_PATH=$RUN_DEBUG$BIN_HOME