summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-02-13 13:42:55 +0100
committerStefan Schmidt <s.schmidt@samsung.com>2019-02-14 13:00:56 +0100
commitac6061057355c21cb8d48bd6517344923dde7681 (patch)
treebdbd034faade1c9c06b1b47d775a1abe888806f0
parenta49c783c32e095a5280f2c5bd334e7ff92759620 (diff)
downloadefl-ac6061057355c21cb8d48bd6517344923dde7681.tar.gz
build: add a option to bootstrap eolian
this is here in order to make cross compiling easier, and we can just provide the *all the time changing* eolian_gen binary. Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org> Differential Revision: https://phab.enlightenment.org/D7929
-rw-r--r--meson.build33
-rw-r--r--meson_options.txt6
2 files changed, 27 insertions, 12 deletions
diff --git a/meson.build b/meson.build
index d6b9b6074d..401ba04f00 100644
--- a/meson.build
+++ b/meson.build
@@ -242,6 +242,12 @@ endif
ecore_evas_wayland_engine_include_dir = []
+boot_strap_eolian = [
+ ['evil' ,[] , false, true, false, false, false, false, [], []],
+ ['eina' ,[] , false, true, false, false, false, false, [], []],
+ ['eolian' ,[] , false, true, true, false, false, false, ['eina'], []],
+]
+
subprojects = [
# name | option | mod | lib | bin | bench | tests | examples | pkg-config options | name of static libs
['evil' ,[] , false, true, false, false, false, false, [], []],
@@ -304,6 +310,9 @@ test_dirs = []
example_dirs = []
tmp_empty = declare_dependency()
+if get_option('eolian-bootstrap')
+ subprojects = boot_strap_eolian
+endif
foreach package : subprojects
package_name = package[0]
@@ -404,23 +413,23 @@ foreach package : subprojects
endforeach
-#build this later, as the debug services are depending on ecore
-subdir(join_paths('src', 'bin', 'efl'))
-
-subdir(join_paths('src', 'generic', 'evas'))
-subdir(join_paths('src', 'generic', 'emotion'))
subdir('cmakeconfig')
+#build this later, as the debug services are depending on ecore
+if get_option('eolian-bootstrap') == false
+ subdir(join_paths('src', 'bin', 'efl'))
-bindings = get_option('bindings')
-
-foreach binding : bindings
- subdir(join_paths('src', 'bindings', binding))
-endforeach
+ subdir(join_paths('src', 'generic', 'evas'))
+ subdir(join_paths('src', 'generic', 'emotion'))
-subdir(join_paths('src', 'edje_external'))
+ bindings = get_option('bindings')
+ foreach binding : bindings
+ subdir(join_paths('src', 'bindings', binding))
+ endforeach
-subdir(join_paths('data'))
+ subdir(join_paths('src', 'edje_external'))
+ subdir(join_paths('data'))
+endif
if get_option('build-tests')
check = dependency('check')
diff --git a/meson_options.txt b/meson_options.txt
index 651fbcc01e..c1677606ee 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -353,3 +353,9 @@ option('elementary-base-dir',
value : '.elementary',
description : 'Put the name of a base directory for elementary data'
)
+
+option('eolian-bootstrap',
+ type : 'boolean',
+ value : false,
+ description : 'Only build efl up to eolian_gen and install eina libeolian and eolian_gen, usefull for cross compiles'
+)