aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/build.sh
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-01-04 21:30:40 +1000
committerDavid Walter Seikel2012-01-04 21:30:40 +1000
commitae7ee5b32b8adf8970aa398bbe0d0318b10225d4 (patch)
tree9419a232788e81901a587c4a728bec2670528d93 /LuaSL/build.sh
parentAdded a basic .gitignore file. (diff)
downloadSledjHamr-ae7ee5b32b8adf8970aa398bbe0d0318b10225d4.zip
SledjHamr-ae7ee5b32b8adf8970aa398bbe0d0318b10225d4.tar.gz
SledjHamr-ae7ee5b32b8adf8970aa398bbe0d0318b10225d4.tar.bz2
SledjHamr-ae7ee5b32b8adf8970aa398bbe0d0318b10225d4.tar.xz
Skeleton of the GUI test harness for the LuaSL script engine.
Diffstat (limited to 'LuaSL/build.sh')
-rwxr-xr-xLuaSL/build.sh70
1 files changed, 70 insertions, 0 deletions
diff --git a/LuaSL/build.sh b/LuaSL/build.sh
new file mode 100755
index 0000000..206f3c0
--- /dev/null
+++ b/LuaSL/build.sh
@@ -0,0 +1,70 @@
1#! /bin/bash
2
3cd src
4
5export LOCALDIR=`pwd`
6
7if [ -d "/opt/e17" ]
8then
9 export E17DIR="/opt/e17"
10else
11 export E17DIR="/usr"
12fi
13
14# No need for a make file, or dependencies, the entire thing takes only a few seconds to build.
15
16CFLAGS="-g -Wall -I include -I $LOCALDIR"
17CFLAGS="$CFLAGS -I $E17DIR/include/eina-1"
18CFLAGS="$CFLAGS -I $E17DIR/include/eina-1/eina"
19CFLAGS="$CFLAGS -I $E17DIR/include/eet-1"
20CFLAGS="$CFLAGS -I $E17DIR/include/edje-1"
21CFLAGS="$CFLAGS -I $E17DIR/include/evas-1"
22CFLAGS="$CFLAGS -I $E17DIR/include/ecore-1"
23CFLAGS="$CFLAGS -I $E17DIR/include"
24CFLAGS="$CFLAGS -DPACKAGE_DATA_DIR=\"$LOCALDIR\" $CFLAGOPTS"
25
26LDFLAGS="-L lib -L /usr/lib -L /lib -L $E17DIR/lib"
27libs="-lecore -levas -ledje -leet -leina"
28# These need to be added to libs if linking staticaly, though some part of EFL don't like that.
29#-lecore_evas \
30#-lecore_fb \
31#-lecore_file \
32#-lecore \
33#-ledje \
34#-levas \
35#-lembryo \
36#-leet \
37#-leina \
38#-llua \
39#-lm \
40#-ldl \
41#-lglib-2.0 \
42#-lpthread \
43#-lfontconfig \
44#-lfreetype \
45#-lexpat \
46#-lrt \
47#-lz
48
49names="LuaSL_main LuaSL_utilities"
50
51EDJE_FLAGS="-id images -fd fonts"
52
53rm -f LuaSL *.o *.edj
54command="edje_cc $EDJE_FLAGS LuaSL.edc LuaSL.edj"
55echo $command
56$command
57
58objects=""
59for i in $names
60do
61 command="gcc $CFLAGS -c -o $i.o $i.c"
62 echo $command
63 $command
64 objects="$objects $i.o"
65done
66
67command="gcc $CFLAGS -o LuaSL $objects $LDFLAGS $libs"
68echo $command
69$command
70