-
Notifications
You must be signed in to change notification settings - Fork 5
/
compile-debug.sh
executable file
·45 lines (37 loc) · 1.13 KB
/
compile-debug.sh
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
#!/bin/sh
# Run clean when the argument 'clean' is provided. Usefull for eclipse.
if [[ $1 = clean ]]
then
echo "Running clean"
./clean.sh
exit
fi
rootDir=`pwd`
if [[ $1 = ffmpeg ]]
then
COMMAND="qmake -spec macx-g++ ${rootDir}/cppn-x-mpeg.pro"
else
COMMAND="qmake -spec macx-g++ ${rootDir}/cppn-x-debug.pro"
fi
# Add the current directory as the root.
# Note that this means the script will likely fail if not run from the root directory.
# Set QT variables.
# Leave blank for automatic detection (recommended)
#QT_INCLUDEDIRS=""
#QT_INCLUDEDIRS+="/Library/Frameworks/QtCore.framework/Versions/4/Headers;"
#QT_INCLUDEDIRS+="/Library/Frameworks/QtGui.framework/Versions/4/Headers"
#QT_LIBRARYDIR=""
#QT_GUI="/Library/Frameworks/QtGui.framework"
#QT_CORE="/Library/Frameworks/QtCore.framework"
# Set other variables.
# The build dir determines which directory is created to use as a build dir.
# Note that the CMakeLists file does not allow 'in-source' builds so 'buildDir' can not be '.'
buildDir="build/debug"
# Build cppn_examiner
echo Building CPPN Examiner
mkdir -p ${buildDir}
cd ${buildDir}
echo ${COMMAND}
${COMMAND}
make
cd ${rootDir}