diff options
author | David Walter Seikel | 2014-04-20 10:21:59 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-04-20 10:21:59 +1000 |
commit | b6bf06c4cd7d6e9b9ec50992c92aa5d2e0062d9c (patch) | |
tree | 7be597a8ee91f1040c1e47e5a7abec4a91c5f728 /ClientHamr/extantz | |
parent | Make the window command a Thing. (diff) | |
download | SledjHamr-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/extantz')
-rwxr-xr-x | ClientHamr/extantz/build.sh | 26 | ||||
-rwxr-xr-x | ClientHamr/extantz/test.sh | 4 |
2 files changed, 24 insertions, 6 deletions
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 @@ | |||
1 | export PKG_CONFIG_PATH="/opt/e17/lib/pkgconfig" | 1 | #! /bin/bash |
2 | |||
3 | export LOCALDIR=`pwd` | ||
4 | |||
5 | # No need for a make file, or dependencies, the entire thing takes only a few seconds to build. | ||
6 | |||
7 | CFLAGS="-g -Wall -I include -I $LOCALDIR" | ||
8 | CFLAGS="$CFLAGS -I ../../libraries -I../../libraries/irrlicht-1.8.1/include -I/usr/X11R6/include" | ||
9 | CFLAGS="$CFLAGS $(pkg-config --cflags luajit)" | ||
10 | CFLAGS="$CFLAGS $(pkg-config --cflags elementary)" | ||
11 | CFLAGS="$CFLAGS $(pkg-config --cflags ephysics)" | ||
12 | CFLAGS="$CFLAGS -DPACKAGE_BIN_DIR=\"$LOCALDIR\"" | ||
13 | CFLAGS="$CFLAGS -DPACKAGE_LIB_DIR=\"$LOCALDIR\"" | ||
14 | CFLAGS="$CFLAGS -DPACKAGE_DATA_DIR=\"$LOCALDIR\" $CFLAGOPTS" | ||
15 | |||
16 | LDFLAGS="-L $LOCALDIR $(pkg-config --libs-only-L luajit) -L lib -L /usr/lib -L /lib -L../../libraries/irrlicht-1.8.1/lib/Linux " | ||
17 | libs="$(pkg-config --cflags --libs elementary) $(pkg-config --libs luajit) -lpthread -lm -ldl -lIrrlicht -lGL -lbz2" | ||
2 | 18 | ||
3 | echo "clean" | 19 | echo "clean" |
4 | rm -f extantz crappisspuke.o CDemo.o extantzCamera.o extantz.edj | 20 | rm -f extantz crappisspuke.o CDemo.o extantzCamera.o extantz.edj |
@@ -6,8 +22,8 @@ echo "edje" | |||
6 | edje_cc -id images extantz.edc extantz.edj | 22 | edje_cc -id images extantz.edc extantz.edj |
7 | echo "Irrlicht" | 23 | echo "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 |
9 | g++ -O3 -ffast-math -c crappisspuke.cpp -o crappisspuke.o -I../../libraries/irrlicht-1.8.1/include -I/usr/X11R6/include $(pkg-config --cflags elementary) | 25 | g++ $CFLAGS -O3 -ffast-math -c crappisspuke.cpp -o crappisspuke.o $LDFLAGS |
10 | g++ -O3 -ffast-math -c CDemo.cpp -o CDemo.o -I../../libraries/irrlicht-1.8.1/include -I/usr/X11R6/include $(pkg-config --cflags elementary) | 26 | g++ $CFLAGS -O3 -ffast-math -c CDemo.cpp -o CDemo.o $LDFLAGS |
11 | echo "extantz" | 27 | echo "extantz" |
12 | g++ -O3 -ffast-math -c extantzCamera.cpp -o extantzCamera.o -I../../libraries/irrlicht-1.8.1/include -I/usr/X11R6/include $(pkg-config --cflags elementary) | 28 | g++ $CFLAGS -O3 -ffast-math -c extantzCamera.cpp -o extantzCamera.o $LDFLAGS |
13 | gcc -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 | 29 | gcc $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 | ||