aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ClientHamr/GuiLua/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ClientHamr/GuiLua/build.sh')
-rwxr-xr-xClientHamr/GuiLua/build.sh54
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
3export 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.
8if [ -d "/opt/EFL" ]
9then
10 export E17DIR="/opt/EFL"
11else
12 export E17DIR="/usr"
13fi
14
15CFLAGS="-g -Wall -Wunreachable-code -I include -I $LOCALDIR"
16CFLAGS="$CFLAGS -I ../../libraries"
17#CFLAGS="$CFLAGS -I ../../libraries/LuaJIT-2.0.2/src"
18CFLAGS="$CFLAGS $(pkg-config --cflags luajit)"
19#CFLAGS="$CFLAGS -I /usr/include/lua5.1"
20CFLAGS="$CFLAGS -I $E17DIR/include/eo-1"
21CFLAGS="$CFLAGS -I $E17DIR/include/eina-1"
22CFLAGS="$CFLAGS -I $E17DIR/include/eina-1/eina"
23CFLAGS="$CFLAGS -I $E17DIR/include/eet-1"
24CFLAGS="$CFLAGS -I $E17DIR/include/embryo-1"
25CFLAGS="$CFLAGS -I $E17DIR/include/edje-1"
26CFLAGS="$CFLAGS -I $E17DIR/include/evas-1"
27CFLAGS="$CFLAGS -I $E17DIR/include/ecore-1"
28CFLAGS="$CFLAGS -I $E17DIR/include/efl-1"
29CFLAGS="$CFLAGS -I $E17DIR/include/ecore-con-1"
30CFLAGS="$CFLAGS -I $E17DIR/include/ecore-evas-1"
31CFLAGS="$CFLAGS -I $E17DIR/include/ecore-file-1"
32CFLAGS="$CFLAGS -I $E17DIR/include"
33CFLAGS="$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"
37LDFLAGS="$(pkg-config --libs-only-L luajit) -L lib -L /usr/lib -L /lib -L $E17DIR/lib"
38libs="-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
51echo "clean"
52rm -f test_c.so test_c.o
53echo "C modules"
54gcc $CFLAGS -fPIC -shared -o test_c.so test_c.c