aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorlbavoil <[email protected]>2016-04-19 09:50:18 +0200
committerlbavoil <[email protected]>2016-04-19 09:50:18 +0200
commit7db4c579de1cbc73882cdbf98dfb996223307181 (patch)
treec8c830d5076057ebe2c9382bbf0204e776bc33f1 /build
parentRename folders (diff)
downloadhbaoplus-7db4c579de1cbc73882cdbf98dfb996223307181.tar.xz
hbaoplus-7db4c579de1cbc73882cdbf98dfb996223307181.zip
Add Linux build
Diffstat (limited to 'build')
-rw-r--r--build/platforms/gcc/build_linux.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/build/platforms/gcc/build_linux.sh b/build/platforms/gcc/build_linux.sh
new file mode 100644
index 0000000..a01a0ac
--- /dev/null
+++ b/build/platforms/gcc/build_linux.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+OutDir=../../../lib
+SrcDir=../../../src
+IncludeDir=../../../include
+
+mkdir $OutDir 2>/dev/null
+
+rm -f All.cpp
+for f in $SrcDir/*cpp; do echo "#include "\"$f\" >> All.cpp; done
+
+g++ -c -O3 -DSUPPORT_GL=1 -DLINUX=1 -I$IncludeDir -fPIC -o All.o -std=c++11 All.cpp
+
+g++ -shared -o $OutDir/GFSDK_SSAO.x86_64-linux-gnu.so All.o