aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rwxr-xr-xClientHamr/GuiLua/build.sh1
-rwxr-xr-xClientHamr/GuiLua/test.sh2
-rwxr-xr-xClientHamr/extantz/build.sh26
-rwxr-xr-xClientHamr/extantz/test.sh4
-rwxr-xr-xLuaSL/build.sh73
-rwxr-xr-xtest.sh7
6 files changed, 52 insertions, 61 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
diff --git a/LuaSL/build.sh b/LuaSL/build.sh
index 4605cb0..8d776d6 100755
--- a/LuaSL/build.sh
+++ b/LuaSL/build.sh
@@ -1,75 +1,45 @@
1#! /bin/bash 1#! /bin/bash
2 2
3
4export LOCALDIR=`pwd` 3export LOCALDIR=`pwd`
5 4
6cd src
7rm -f ../LuaSL *.o *.output *.backup ../luac.out ../*.edj LuaSL_lexer.h LuaSL_lexer.c LuaSL_lemon_yaccer.h LuaSL_lemon_yaccer.c LuaSL_lemon_yaccer.out
8
9
10# This assumes you have EFL installed in one of two standard places.
11if [ -d "/opt/e17" ]
12then
13 export E17DIR="/opt/e17"
14else
15 export E17DIR="/usr"
16fi
17
18# 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.
19 6
20CFLAGS="-g -Wall -Wunreachable-code -I include -I $LOCALDIR/src" 7CFLAGS="-g -Wall -Wunreachable-code -I include -I $LOCALDIR"
21CFLAGS="$CFLAGS -I ../../libraries" 8CFLAGS="$CFLAGS -I ../../libraries"
22#CFLAGS="$CFLAGS -I ../../libraries/LuaJIT-2.0.2/src"
23CFLAGS="$CFLAGS $(pkg-config --cflags luajit)" 9CFLAGS="$CFLAGS $(pkg-config --cflags luajit)"
24#CFLAGS="$CFLAGS -I /usr/include/lua5.1" 10CFLAGS="$CFLAGS $(pkg-config --cflags eo)"
25CFLAGS="$CFLAGS -I $E17DIR/include/eo-1" 11CFLAGS="$CFLAGS $(pkg-config --cflags eet)"
26CFLAGS="$CFLAGS -I $E17DIR/include/eina-1" 12CFLAGS="$CFLAGS $(pkg-config --cflags ecore-con)"
27CFLAGS="$CFLAGS -I $E17DIR/include/eina-1/eina" 13CFLAGS="$CFLAGS $(pkg-config --cflags ecore-evas)"
28CFLAGS="$CFLAGS -I $E17DIR/include/eet-1" 14CFLAGS="$CFLAGS $(pkg-config --cflags ecore-file)"
29CFLAGS="$CFLAGS -I $E17DIR/include/embryo-1" 15CFLAGS="$CFLAGS $(pkg-config --cflags edje)"
30CFLAGS="$CFLAGS -I $E17DIR/include/edje-1" 16CFLAGS="$CFLAGS -DPACKAGE_BIN_DIR=\"$LOCALDIR\""
31CFLAGS="$CFLAGS -I $E17DIR/include/evas-1" 17CFLAGS="$CFLAGS -DPACKAGE_LIB_DIR=\"$LOCALDIR\""
32CFLAGS="$CFLAGS -I $E17DIR/include/ecore-1"
33CFLAGS="$CFLAGS -I $E17DIR/include/efl-1"
34CFLAGS="$CFLAGS -I $E17DIR/include/ecore-con-1"
35CFLAGS="$CFLAGS -I $E17DIR/include/ecore-evas-1"
36CFLAGS="$CFLAGS -I $E17DIR/include/ecore-file-1"
37CFLAGS="$CFLAGS -I $E17DIR/include"
38CFLAGS="$CFLAGS -DPACKAGE_DATA_DIR=\"$LOCALDIR\" $CFLAGOPTS" 18CFLAGS="$CFLAGS -DPACKAGE_DATA_DIR=\"$LOCALDIR\" $CFLAGOPTS"
39 19
40#LDFLAGS="-L ../../libraries/LuaJIT-2.0.2/src -L lib -L /usr/lib -L /lib -L $E17DIR/lib" 20LDFLAGS="$(pkg-config --libs-only-L luajit) -L lib -L /usr/lib -L /lib"
41#libs="-leo -lecore -levas -ledje -lembryo -leet -leina -lluajit -lpthread -lm" 21libs="$(pkg-config --libs edje) $libs $(pkg-config --libs luajit)"
42LDFLAGS="$(pkg-config --libs-only-L luajit) -L lib -L /usr/lib -L /lib -L $E17DIR/lib"
43libs="-leo -lecore -levas -ledje -lembryo -leet -leina $(pkg-config --libs-only-L luajit) -lpthread -lm"
44#LDFLAGS="-L /usr/lib/lua/5.1 -L lib -L /usr/lib -L /lib -L $E17DIR/lib"
45#libs="-lecore -levas -ledje -lembryo -leet -leina -llua5.1 -lpthread -lm"
46# These need to be added to libs if linking staticaly, though some parts of EFL don't like that.
47#-lecore_evas \
48#-lecore_file \
49#-ldl \
50#-lfontconfig \
51#-lfreetype \
52#-lexpat \
53#-lrt \
54#-lz
55 22
56LFLAGS="-d" 23LFLAGS="-d"
57EDJE_FLAGS="-id images -fd fonts" 24EDJE_FLAGS="-id images -fd fonts"
58# Dunno why I needed this, not gonna work with a packaged LuaJIT anyway. 25# Dunno why I needed this, not gonna work with a packaged LuaJIT anyway.
59#LD_RUN_PATH="../../libraries/LuaJIT-2.0.2/src:" 26#LD_RUN_PATH="../../libraries/LuaJIT-2.0.2/src:"
60 27
28cd src
29echo "clean"
30rm -f ../LuaSL *.o *.output *.backup ../luac.out ../*.edj LuaSL_lexer.h LuaSL_lexer.c LuaSL_lemon_yaccer.h LuaSL_lemon_yaccer.c LuaSL_lemon_yaccer.out
61 31
62# Run lemon first, flex depends on it to define the symbol values. 32# Run lemon first, flex depends on it to define the symbol values.
63command="../../libraries/lemon/lemon -s -T../../libraries/lemon/lempar.c LuaSL_lemon_yaccer.y" 33command="../../libraries/lemon/lemon -s -T../../libraries/lemon/lempar.c LuaSL_lemon_yaccer.y"
64echo $command 34echo "lemon"
65$command 35$command
66 36
67command="flex -C --outfile=LuaSL_lexer.c --header-file=LuaSL_lexer.h LuaSL_lexer.l" 37command="flex -C --outfile=LuaSL_lexer.c --header-file=LuaSL_lexer.h LuaSL_lexer.l"
68echo $command 38echo "flex"
69$command 39$command
70 40
71command="edje_cc $EDJE_FLAGS LuaSL.edc ../LuaSL.edj" 41command="edje_cc $EDJE_FLAGS LuaSL.edc ../LuaSL.edj"
72echo $command 42echo "edje_cc"
73$command 43$command
74 44
75names="LuaSL_main LuaSL_compile LuaSL_threads LuaSL_utilities LuaSL_lexer LuaSL_lemon_yaccer" 45names="LuaSL_main LuaSL_compile LuaSL_threads LuaSL_utilities LuaSL_lexer LuaSL_lemon_yaccer"
@@ -77,12 +47,12 @@ objects=""
77for i in $names 47for i in $names
78do 48do
79 command="gcc $CFLAGS -c -o $i.o $i.c" 49 command="gcc $CFLAGS -c -o $i.o $i.c"
80 echo $command 50 echo $i
81 $command 51 $command
82 objects="$objects $i.o" 52 objects="$objects $i.o"
83done 53done
84command="gcc $CFLAGS -o ../LuaSL $objects $LDFLAGS $libs" 54command="gcc $CFLAGS -o ../LuaSL $objects $LDFLAGS $libs"
85echo $command 55echo "LuaSL"
86$command 56$command
87 57
88names="LuaSL_test LuaSL_utilities" 58names="LuaSL_test LuaSL_utilities"
@@ -90,11 +60,10 @@ objects=""
90for i in $names 60for i in $names
91do 61do
92 command="gcc $CFLAGS -c -o $i.o $i.c" 62 command="gcc $CFLAGS -c -o $i.o $i.c"
93 echo $command 63 echo $i
94 $command 64 $command
95 objects="$objects $i.o" 65 objects="$objects $i.o"
96done 66done
97command="gcc $CFLAGS -o ../LuaSL_test $objects $LDFLAGS $libs" 67command="gcc $CFLAGS -o ../LuaSL_test $objects $LDFLAGS $libs"
98echo $command 68echo "LuaSL_test"
99$command 69$command
100
diff --git a/test.sh b/test.sh
index ecafc69..1b77b42 100755
--- a/test.sh
+++ b/test.sh
@@ -8,7 +8,12 @@ wd=$(pwd)
8 8
9echo "_______________ TESTING extantz _______________" 9echo "_______________ TESTING extantz _______________"
10cd $wd/ClientHamr/extantz 10cd $wd/ClientHamr/extantz
11./extantz & 11./test.sh &
12sleep 1
13
14echo "_______________ TESTING GuiLua _______________"
15cd $wd/ClientHamr/GuiLua
16./test.sh &
12sleep 1 17sleep 1
13 18
14echo "_______________ TESTING LuaSL _______________" 19echo "_______________ TESTING LuaSL _______________"