|
@@ -6,10 +6,14 @@ if [ "$CXX" = "g++" ]; then export CXX="g++-4.8"; fi
|
6
|
6
|
if [ "$CC" = "clang" ]; then export CC="clang-3.5"; fi
|
7
|
7
|
if [ "$CXX" = "clang++" ]; then export CXX="clang++-3.5"; fi
|
8
|
8
|
|
9
|
|
-# Need to build current glbinding from source
|
10
|
|
-git clone https://github.com/hpicgs/glbinding.git
|
11
|
|
-cd glbinding
|
|
9
|
+# Need to build latest glbinding from source
|
|
10
|
+GLBVER=`curl https://api.github.com/repos/hpicgs/glbinding/releases/latest | grep -m1 tag_name | cut -d\" -f4`
|
|
11
|
+curl -L https://github.com/hpicgs/glbinding/archive/${GLBVER}.tar.gz | tar xzf -
|
|
12
|
+cd glbinding-${GLBVER#v}
|
|
13
|
+
|
|
14
|
+# Hacky fix to allow building glbinding with clang on Linux
|
12
|
15
|
sed -i 's/ -Werror/ /g' cmake/PlatformLinuxGCC.cmake
|
|
16
|
+
|
13
|
17
|
mkdir build
|
14
|
18
|
cd build
|
15
|
19
|
cmake ..
|
|
@@ -18,5 +22,6 @@ sudo make install
|
18
|
22
|
cd ..
|
19
|
23
|
cd ..
|
20
|
24
|
|
|
25
|
+# Build OpenRaider and run the unit tests
|
21
|
26
|
mkdir build && cd build && cmake .. && make -j 4 && make check
|
22
|
27
|
|