aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ClientHamr
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-04-20 10:21:59 +1000
committerDavid Walter Seikel2014-04-20 10:21:59 +1000
commitb6bf06c4cd7d6e9b9ec50992c92aa5d2e0062d9c (patch)
tree7be597a8ee91f1040c1e47e5a7abec4a91c5f728 /ClientHamr
parentMake the window command a Thing. (diff)
downloadSledjHamr-b6bf06c4cd7d6e9b9ec50992c92aa5d2e0062d9c.zip
SledjHamr-b6bf06c4cd7d6e9b9ec50992c92aa5d2e0062d9c.tar.gz
SledjHamr-b6bf06c4cd7d6e9b9ec50992c92aa5d2e0062d9c.tar.bz2
SledjHamr-b6bf06c4cd7d6e9b9ec50992c92aa5d2e0062d9c.tar.xz
Clean up all the build and test scripts to be similar, and not have the EFL directory hard coded.
Diffstat (limited to 'ClientHamr')
-rwxr-xr-xClientHamr/GuiLua/build.sh1
-rwxr-xr-xClientHamr/GuiLua/test.sh2
-rwxr-xr-xClientHamr/extantz/build.sh26
-rwxr-xr-xClientHamr/extantz/test.sh4
4 files changed, 25 insertions, 8 deletions
diff --git a/ClientHamr/GuiLua/build.sh b/ClientHamr/GuiLua/build.sh
index 076c106..c405bb2 100755
--- a/ClientHamr/GuiLua/build.sh
+++ b/ClientHamr/GuiLua/build.sh
@@ -4,7 +4,6 @@ export LOCALDIR=`pwd`
4 4
5# No need for a make file, or dependencies, the entire thing takes only a few seconds to build. 5# No need for a make file, or dependencies, the entire thing takes only a few seconds to build.
6 6
7
8CFLAGS="-g -Wall -I include -I $LOCALDIR" 7CFLAGS="-g -Wall -I include -I $LOCALDIR"
9CFLAGS="$CFLAGS -I ../../libraries" 8CFLAGS="$CFLAGS -I ../../libraries"
10CFLAGS="$CFLAGS $(pkg-config --cflags luajit)" 9CFLAGS="$CFLAGS $(pkg-config --cflags luajit)"
diff --git a/ClientHamr/GuiLua/test.sh b/ClientHamr/GuiLua/test.sh
index 4f72c52..c1b0afb 100755
--- a/ClientHamr/GuiLua/test.sh
+++ b/ClientHamr/GuiLua/test.sh
@@ -1,3 +1,3 @@
1#!/bin/bash 1#! /bin/bash
2 2
3export LD_LIBRARY_PATH="."; ./skang -l test -foo "argy bargy" 3export LD_LIBRARY_PATH="."; ./skang -l test -foo "argy bargy"
diff --git a/ClientHamr/extantz/build.sh b/ClientHamr/extantz/build.sh
index 17344b1..d3ad3b0 100755
--- a/ClientHamr/extantz/build.sh
+++ b/ClientHamr/extantz/build.sh
@@ -1,4 +1,20 @@
1export PKG_CONFIG_PATH="/opt/e17/lib/pkgconfig" 1#! /bin/bash
2
3export LOCALDIR=`pwd`
4
5# No need for a make file, or dependencies, the entire thing takes only a few seconds to build.
6
7CFLAGS="-g -Wall -I include -I $LOCALDIR"
8CFLAGS="$CFLAGS -I ../../libraries -I../../libraries/irrlicht-1.8.1/include -I/usr/X11R6/include"
9CFLAGS="$CFLAGS $(pkg-config --cflags luajit)"
10CFLAGS="$CFLAGS $(pkg-config --cflags elementary)"
11CFLAGS="$CFLAGS $(pkg-config --cflags ephysics)"
12CFLAGS="$CFLAGS -DPACKAGE_BIN_DIR=\"$LOCALDIR\""
13CFLAGS="$CFLAGS -DPACKAGE_LIB_DIR=\"$LOCALDIR\""
14CFLAGS="$CFLAGS -DPACKAGE_DATA_DIR=\"$LOCALDIR\" $CFLAGOPTS"
15
16LDFLAGS="-L $LOCALDIR $(pkg-config --libs-only-L luajit) -L lib -L /usr/lib -L /lib -L../../libraries/irrlicht-1.8.1/lib/Linux "
17libs="$(pkg-config --cflags --libs elementary) $(pkg-config --libs luajit) -lpthread -lm -ldl -lIrrlicht -lGL -lbz2"
2 18
3echo "clean" 19echo "clean"
4rm -f extantz crappisspuke.o CDemo.o extantzCamera.o extantz.edj 20rm -f extantz crappisspuke.o CDemo.o extantzCamera.o extantz.edj
@@ -6,8 +22,8 @@ echo "edje"
6edje_cc -id images extantz.edc extantz.edj 22edje_cc -id images extantz.edc extantz.edj
7echo "Irrlicht" 23echo "Irrlicht"
8#g++ -O3 -ffast-math crappisspuke.cpp -o crappisspuke -I../../libraries/irrlicht-1.8/include -I/usr/X11R6/include -L../../libraries/irrlicht-1.8/lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor && ./crappisspuke 24#g++ -O3 -ffast-math crappisspuke.cpp -o crappisspuke -I../../libraries/irrlicht-1.8/include -I/usr/X11R6/include -L../../libraries/irrlicht-1.8/lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor && ./crappisspuke
9g++ -O3 -ffast-math -c crappisspuke.cpp -o crappisspuke.o -I../../libraries/irrlicht-1.8.1/include -I/usr/X11R6/include $(pkg-config --cflags elementary) 25g++ $CFLAGS -O3 -ffast-math -c crappisspuke.cpp -o crappisspuke.o $LDFLAGS
10g++ -O3 -ffast-math -c CDemo.cpp -o CDemo.o -I../../libraries/irrlicht-1.8.1/include -I/usr/X11R6/include $(pkg-config --cflags elementary) 26g++ $CFLAGS -O3 -ffast-math -c CDemo.cpp -o CDemo.o $LDFLAGS
11echo "extantz" 27echo "extantz"
12g++ -O3 -ffast-math -c extantzCamera.cpp -o extantzCamera.o -I../../libraries/irrlicht-1.8.1/include -I/usr/X11R6/include $(pkg-config --cflags elementary) 28g++ $CFLAGS -O3 -ffast-math -c extantzCamera.cpp -o extantzCamera.o $LDFLAGS
13gcc -g -DPACKAGE_BIN_DIR="\"$(pwd)\"" -DPACKAGE_DATA_DIR="\"$(pwd)\"" extantz.c crappisspuke.o CDemo.o extantzCamera.o -o extantz $(pkg-config --cflags --libs eo) $(pkg-config --cflags --libs ecore-x) $(pkg-config --cflags --libs elementary) $(pkg-config --cflags --libs ephysics) -L../../libraries/irrlicht-1.8.1/lib/Linux -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lXcursor -lpng -ljpeg -lbz2 && strip extantz 29gcc $CFLAGS extantz.c crappisspuke.o CDemo.o extantzCamera.o -o extantz $LDFLAGS $libs && strip extantz
diff --git a/ClientHamr/extantz/test.sh b/ClientHamr/extantz/test.sh
index 01c2abe..f2a17fa 100755
--- a/ClientHamr/extantz/test.sh
+++ b/ClientHamr/extantz/test.sh
@@ -1 +1,3 @@
1./build.sh && ./extantz 1#! /bin/bash
2
3./extantz