summaryrefslogtreecommitdiff
path: root/recipes/efl_tizen/i686/elementary_install.sh
blob: 45f05c03428c3ff0bf42019c0bce5a4de5666f27 (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
#!/bin/bash
set -e

PROC_COUNT=$(grep -c ^processor /proc/cpuinfo)
native=$PWD/native/efl_tizen/bin

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

cd ./sources/efl_tizen/elementary

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

./autogen.sh \
--prefix=/opt/windows_$BITS \
--host=$HOST \
--with-tests=none \
--disable-cxx-bindings \
--disable-static \
--disable-nls \
--with-eolian-gen="$native/eolian_gen" \
--with-edje-cc="$native/edje_cc" \
--with-eet-eet="$native/eet" \
--with-eolian-cxx="$native/eolian_cxx" \
--with-elm-prefs-cc="$native/elm_prefs_cc" \
--with-elementary-codegen="$native/elementary_codegen"

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