diff options
Diffstat (limited to '')
-rwxr-xr-x | LuaSL/build.sh | 70 |
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 | |||
3 | cd src | ||
4 | |||
5 | export LOCALDIR=`pwd` | ||
6 | |||
7 | if [ -d "/opt/e17" ] | ||
8 | then | ||
9 | export E17DIR="/opt/e17" | ||
10 | else | ||
11 | export E17DIR="/usr" | ||
12 | fi | ||
13 | |||
14 | # No need for a make file, or dependencies, the entire thing takes only a few seconds to build. | ||
15 | |||
16 | CFLAGS="-g -Wall -I include -I $LOCALDIR" | ||
17 | CFLAGS="$CFLAGS -I $E17DIR/include/eina-1" | ||
18 | CFLAGS="$CFLAGS -I $E17DIR/include/eina-1/eina" | ||
19 | CFLAGS="$CFLAGS -I $E17DIR/include/eet-1" | ||
20 | CFLAGS="$CFLAGS -I $E17DIR/include/edje-1" | ||
21 | CFLAGS="$CFLAGS -I $E17DIR/include/evas-1" | ||
22 | CFLAGS="$CFLAGS -I $E17DIR/include/ecore-1" | ||
23 | CFLAGS="$CFLAGS -I $E17DIR/include" | ||
24 | CFLAGS="$CFLAGS -DPACKAGE_DATA_DIR=\"$LOCALDIR\" $CFLAGOPTS" | ||
25 | |||
26 | LDFLAGS="-L lib -L /usr/lib -L /lib -L $E17DIR/lib" | ||
27 | libs="-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 | |||
49 | names="LuaSL_main LuaSL_utilities" | ||
50 | |||
51 | EDJE_FLAGS="-id images -fd fonts" | ||
52 | |||
53 | rm -f LuaSL *.o *.edj | ||
54 | command="edje_cc $EDJE_FLAGS LuaSL.edc LuaSL.edj" | ||
55 | echo $command | ||
56 | $command | ||
57 | |||
58 | objects="" | ||
59 | for i in $names | ||
60 | do | ||
61 | command="gcc $CFLAGS -c -o $i.o $i.c" | ||
62 | echo $command | ||
63 | $command | ||
64 | objects="$objects $i.o" | ||
65 | done | ||
66 | |||
67 | command="gcc $CFLAGS -o LuaSL $objects $LDFLAGS $libs" | ||
68 | echo $command | ||
69 | $command | ||
70 | |||