summaryrefslogtreecommitdiff
path: root/recipes/efl_tizen/i686/efl_install.sh
blob: 25a67271cd767d33f5a1e9750971e68b1bee596b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/bash
set -e

PROC_COUNT=$(grep -c ^processor /proc/cpuinfo)
bash "$PWD/recipes/get_deps.sh" "$PWD/recipes/efl_tizen/i686/deps.list" i686
rm -rf "$PWD/cross/i686/efl_tizen"
mkdir --parents "$PWD/cross/i686/efl_tizen"
bash "$PWD/recipes/link_deps_list.sh" "$PWD/recipes/efl_tizen/i686/deps.list" "$PWD/packages/i686" "$PWD/cross/i686/efl_tizen"

echo "Linking $PWD/opt/windows_32"
mkdir --parents "$PWD/opt"
if [ -L "$PWD/opt/windows_32" ]
then
  rm "$PWD/opt/windows_32"
fi
ln -s "$PWD/cross/i686/efl_tizen" "$PWD/opt/windows_32"

native=$PWD/native/efl_tizen/bin

BITS=32
LIBS="lib"
HOST="i686-w64-mingw32"

cd ./sources/efl_tizen/efl

export CXXFLAGS="-std=gnu++11 -fno-exceptions"
export CFLAGS="-I/opt/windows_$BITS/include/ -g -O2"
export LDFLAGS="-L/opt/windows_$BITS/$LIBS/ -lws2_32 -llua -llibintl"
export PKG_CONFIG_LIBDIR="/opt/windows_$BITS/$LIBS/pkgconfig"
export PKG_CONFIG_PATH=""

./autogen.sh \
--prefix=/opt/windows_$BITS \
--host=$HOST \
--disable-pulseaudio \
--disable-physics \
--disable-gstreamer \
--disable-gstreamer1 \
--enable-lua-old \
--with-crypto=none \
--with-glib=no \
--with-tests=none \
--disable-libmount \
--disable-cxx-bindings \
--disable-image-loader-jp2k \
--disable-static \
--disable-nls \
--with-eolian-gen="$native/eolian_gen" \
--with-edje-cc="$native/edje_cc" \
--with-eet-eet="$native/eet" \
--with-elm-prefs-cc="$native/elm_prefs_cc" \
--with-elementary-codegen="$native/elementary_codegen" \
--enable-i-really-know-what-i-am-doing-and-that-this-will-probably-break-things-and-i-will-fix-them-myself-and-send-patches-aba

make clean
make -j "$PROC_COUNT"
make install -j "$PROC_COUNT"