build: enable eolian_gen bootstrapping for cross compile
authorMarcel Hollerbach <mail@marcel-hollerbach.de>
Wed, 13 Feb 2019 12:48:24 +0000 (13:48 +0100)
committerWonki Kim <wonki_.kim@samsung.com>
Fri, 8 Mar 2019 11:49:34 +0000 (20:49 +0900)
this enables travis to build eolian_gen before cross compiling in mingw.
This is done in order to make eolian_gen patches easier on CI.

Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org>
Differential Revision: https://phab.enlightenment.org/D7930

.ci/bootstrap_eolian.sh [new file with mode: 0755]
.ci/ci-configure.sh

diff --git a/.ci/bootstrap_eolian.sh b/.ci/bootstrap_eolian.sh
new file mode 100755 (executable)
index 0000000..3e2734e
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+mkdir build-eolian-bootstrap
+meson --prefix=/usr/ --libdir=/usr/lib -Deolian-bootstrap=true build-eolian-bootstrap
+ninja -C build-eolian-bootstrap install
+rm -rf build-eolian-bootstrap
+ldconfig
index 3f35c9e..b2a7a03 100755 (executable)
@@ -77,7 +77,7 @@ else
 
   RELEASE_READY_LINUX_COPTS=" --with-profile=release"
 
-  MINGW_COPTS=" --prefix=/ewpi-64-install --host=x86_64-w64-mingw32 --with-eolian-gen=/usr/local/bin/eolian_gen \
+  MINGW_COPTS=" --prefix=/ewpi-64-install --host=x86_64-w64-mingw32 --with-eolian-gen=/usr/bin/eolian_gen \
   --with-edje-cc=/usr/local/bin/edje_cc --with-eet-eet=/usr/local/bin/eet \
   --with-bin-elm-prefs-cc=/usr/local/bin/elm_prefs_cc \
   --disable-static --with-tests=regular --with-crypto=openssl \
@@ -110,6 +110,7 @@ else
     if [ "$1" = "mingw" ]; then
       OPTS="$OPTS $MINGW_COPTS"
       docker exec $(cat $HOME/cid) sh -c 'rm -f /src/config.cache'
+      docker exec $(cat $HOME/cid) sh -c '.ci/bootstrap_eolian.sh'
     fi
     docker exec $(cat $HOME/cid) sh -c 'rm -f ~/.ccache/ccache.conf'
     travis_fold autoreconf autoreconf