diff options
Diffstat (limited to '')
-rwxr-xr-x | ClientHamr/GuiLua/build.sh | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/ClientHamr/GuiLua/build.sh b/ClientHamr/GuiLua/build.sh new file mode 100755 index 0000000..387b193 --- /dev/null +++ b/ClientHamr/GuiLua/build.sh | |||
@@ -0,0 +1,54 @@ | |||
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 | # 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 | |||
15 | CFLAGS="-g -Wall -Wunreachable-code -I include -I $LOCALDIR" | ||
16 | CFLAGS="$CFLAGS -I ../../libraries" | ||
17 | #CFLAGS="$CFLAGS -I ../../libraries/LuaJIT-2.0.2/src" | ||
18 | CFLAGS="$CFLAGS $(pkg-config --cflags luajit)" | ||
19 | #CFLAGS="$CFLAGS -I /usr/include/lua5.1" | ||
20 | CFLAGS="$CFLAGS -I $E17DIR/include/eo-1" | ||
21 | CFLAGS="$CFLAGS -I $E17DIR/include/eina-1" | ||
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" | ||
34 | |||
35 | #LDFLAGS="-L ../../libraries/LuaJIT-2.0.2/src -L lib -L /usr/lib -L /lib -L $E17DIR/lib" | ||
36 | #libs="-leo -lecore -levas -ledje -lembryo -leet -leina -lluajit -lpthread -lm" | ||
37 | LDFLAGS="$(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-only-L luajit) -lpthread -lm" | ||
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 | |||
51 | echo "clean" | ||
52 | rm -f test_c.so test_c.o | ||
53 | echo "C modules" | ||
54 | gcc $CFLAGS -fPIC -shared -o test_c.so test_c.c | ||