Added a goofy build script.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 16 Sep 2015 01:22:01 -0400
changeset 13 930e59533465
parent 12 d9821f628cc6
child 14 41c39433d874
Added a goofy build script.
make.sh
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/make.sh	Wed Sep 16 01:22:01 2015 -0400
@@ -0,0 +1,29 @@
+#!/bin/bash
+
+# You shouldn't be building this here, you should be building this stuff as
+#  part of your project, so this is just an example shell script and not a
+#  formal makefile or whatever.
+
+if [ ! -d "sdk" ]; then
+    echo "This script expects the Steamworks SDK to be unpacked here." 1>&2
+    echo "When unzipped, it makes an 'sdk' directory. Put that here." 1>&2
+    exit 1
+fi
+
+set -e
+set -x
+
+OSTYPE=`uname -s`
+if [ "$OSTYPE" = "Linux" ]; then
+    g++ -o steamshim -Wall -O0 -ggdb3 steamshim_parent.cpp -I sdk/public sdk/redistributable_bin/linux64/libsteam_api.so
+    gcc -o testapp -Wall -O0 -ggdb3 testapp.c steamshim_child.c
+elif [ "$OSTYPE" = "Darwin" ]; then
+    clang++ -o steamshim -Wall -O0 -ggdb3 steamshim_parent.cpp -I sdk/public sdk/redistributable_bin/osx32/libsteam_api.dylib
+    clang -o testapp -Wall -O0 -ggdb3 testapp.c steamshim_child.c
+else
+    echo "write me" 1>&2
+    exit 1
+fi
+
+exit 0
+