diff options
Diffstat (limited to '')
-rwxr-xr-x | ClientHamr/GuiLua/build.sh | 42 |
1 files changed, 5 insertions, 37 deletions
diff --git a/ClientHamr/GuiLua/build.sh b/ClientHamr/GuiLua/build.sh index 0ef46b9..076c106 100755 --- a/ClientHamr/GuiLua/build.sh +++ b/ClientHamr/GuiLua/build.sh | |||
@@ -4,49 +4,17 @@ 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 | # This assumes you have EFL installed in one of two standard places. | ||
8 | if [ -d "/opt/EFL" ] | ||
9 | then | ||
10 | export E17DIR="/opt/EFL" | ||
11 | else | ||
12 | export E17DIR="/usr" | ||
13 | fi | ||
14 | 7 | ||
15 | CFLAGS="-g -Wall -I include -I $LOCALDIR" | 8 | CFLAGS="-g -Wall -I include -I $LOCALDIR" |
16 | CFLAGS="$CFLAGS -I ../../libraries" | 9 | CFLAGS="$CFLAGS -I ../../libraries" |
17 | #CFLAGS="$CFLAGS -I ../../libraries/LuaJIT-2.0.2/src" | ||
18 | CFLAGS="$CFLAGS $(pkg-config --cflags luajit)" | 10 | CFLAGS="$CFLAGS $(pkg-config --cflags luajit)" |
19 | #CFLAGS="$CFLAGS -I /usr/include/lua5.1" | 11 | CFLAGS="$CFLAGS $(pkg-config --cflags elementary)" |
20 | CFLAGS="$CFLAGS -I $E17DIR/include/eo-1" | 12 | CFLAGS="$CFLAGS -DPACKAGE_BIN_DIR=\"$LOCALDIR\"" |
21 | CFLAGS="$CFLAGS -I $E17DIR/include/eina-1" | 13 | CFLAGS="$CFLAGS -DPACKAGE_LIB_DIR=\"$LOCALDIR\"" |
22 | CFLAGS="$CFLAGS -I $E17DIR/include/eina-1/eina" | ||
23 | CFLAGS="$CFLAGS -I $E17DIR/include/eet-1" | ||
24 | CFLAGS="$CFLAGS -I $E17DIR/include/embryo-1" | ||
25 | CFLAGS="$CFLAGS -I $E17DIR/include/edje-1" | ||
26 | CFLAGS="$CFLAGS -I $E17DIR/include/evas-1" | ||
27 | CFLAGS="$CFLAGS -I $E17DIR/include/ecore-1" | ||
28 | CFLAGS="$CFLAGS -I $E17DIR/include/efl-1" | ||
29 | CFLAGS="$CFLAGS -I $E17DIR/include/ecore-con-1" | ||
30 | CFLAGS="$CFLAGS -I $E17DIR/include/ecore-evas-1" | ||
31 | CFLAGS="$CFLAGS -I $E17DIR/include/ecore-file-1" | ||
32 | CFLAGS="$CFLAGS -I $E17DIR/include" | ||
33 | CFLAGS="$CFLAGS -DPACKAGE_DATA_DIR=\"$LOCALDIR\" $CFLAGOPTS" | 14 | CFLAGS="$CFLAGS -DPACKAGE_DATA_DIR=\"$LOCALDIR\" $CFLAGOPTS" |
34 | 15 | ||
35 | #LDFLAGS="-L ../../libraries/LuaJIT-2.0.2/src -L lib -L /usr/lib -L /lib -L $E17DIR/lib" | 16 | LDFLAGS="-L $LOCALDIR $(pkg-config --libs-only-L luajit) -L lib -L /usr/lib -L /lib" |
36 | #libs="-leo -lecore -levas -ledje -lembryo -leet -leina -lluajit -lpthread -lm" | 17 | libs="$(pkg-config --cflags --libs elementary) $(pkg-config --libs luajit) -lpthread -lm -ldl" |
37 | LDFLAGS="-L $LOCALDIR $(pkg-config --libs-only-L luajit) -L lib -L /usr/lib -L /lib -L $E17DIR/lib" | ||
38 | libs="-leo -lecore -levas -ledje -lembryo -leet -leina $(pkg-config --libs luajit) -lpthread -lm -ldl" | ||
39 | #LDFLAGS="-L /usr/lib/lua/5.1 -L lib -L /usr/lib -L /lib -L $E17DIR/lib" | ||
40 | #libs="-lecore -levas -ledje -lembryo -leet -leina -llua5.1 -lpthread -lm" | ||
41 | # These need to be added to libs if linking staticaly, though some parts of EFL don't like that. | ||
42 | #-lecore_evas \ | ||
43 | #-lecore_file \ | ||
44 | #-ldl \ | ||
45 | #-lfontconfig \ | ||
46 | #-lfreetype \ | ||
47 | #-lexpat \ | ||
48 | #-lrt \ | ||
49 | #-lz | ||
50 | 18 | ||
51 | echo "clean" | 19 | echo "clean" |
52 | rm -f test_c.so GuiLua.o libGuiLua.so skang | 20 | rm -f test_c.so GuiLua.o libGuiLua.so skang |