-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.sh
executable file
·45 lines (40 loc) · 1.4 KB
/
build.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
#!/bin/sh
set -eu
rm -R "$WORKSPACE/build"
mkdir -p "$WORKSPACE/build/dashel"
cd "$WORKSPACE/build/dashel"
cmake\
-D "CMAKE_BUILD_TYPE=Release"\
-D "BUILD_SHARED_LIBS=ON"\
-D "CMAKE_OSX_ARCHITECTURES=i386;x86_64"\
-D "CMAKE_OSX_DEPLOYMENT_TARGET=10.9"\
-D "CMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk"\
"$WORKSPACE/source/dashel"
make
mkdir -p "$WORKSPACE/build/enki"
cd "$WORKSPACE/build/enki"
cmake\
-D "CMAKE_BUILD_TYPE=Release"\
-D "CMAKE_OSX_ARCHITECTURES=x86_64"\
-D "CMAKE_OSX_DEPLOYMENT_TARGET=10.9"\
-D "CMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk"\
"$WORKSPACE/source/enki"
make
mkdir -p "$WORKSPACE/build/aseba"
cd "$WORKSPACE/build/aseba"
cmake\
-D "CMAKE_BUILD_TYPE=Release"\
-D "CMAKE_OSX_ARCHITECTURES=x86_64"\
-D "CMAKE_OSX_DEPLOYMENT_TARGET=10.9"\
-D "CMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk"\
-D "dashel_DIR=$WORKSPACE/build/dashel"\
-D "enki_DIR=$WORKSPACE/build/enki"\
-D "QWT_INCLUDE_DIR=/usr/local/qwt-6.1.2/lib/qwt.framework/Headers"\
-D "QWT_LIBRARIES=/usr/local/qwt-6.1.2/lib/qwt.framework/"\
"$WORKSPACE/source/aseba"
make
mkdir -p "$WORKSPACE/build/packager"
cd "$WORKSPACE/build/packager"
"$WORKSPACE/source/packager/packager_script"
cd "$WORKSPACE"
env