summaryrefslogtreecommitdiff
path: root/src/bin/eolian
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2018-12-04 20:33:07 +0100
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2018-12-07 13:05:31 +0100
commit79ded15ad3c0074e1d378cc5a0accad2399fcc24 (patch)
tree4c41f5e2e2af30763f2ea240a5ef1c4ac14df0be /src/bin/eolian
parent4a196b99d5371ec7b43a1c166436e469bd83e57c (diff)
meson: enable cross compiling
the inital work for this commit was coming from `Mark van der Putten`. In order to not have more options for this, the idea came up to use mesons autodetection using PATH. If a cross file is specified, the binaries are used from the system, rather than from the intree. (Which means --cross-file has the dependency of efl on the buildsystem) Differential Revision: https://phab.enlightenment.org/D7415
Diffstat (limited to 'src/bin/eolian')
-rw-r--r--src/bin/eolian/meson.build10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/bin/eolian/meson.build b/src/bin/eolian/meson.build
index 0714fbe..0e2152e 100644
--- a/src/bin/eolian/meson.build
+++ b/src/bin/eolian/meson.build
@@ -21,4 +21,12 @@ eolian_gen_bin = executable('eolian_gen',
21eolian_gen_path = eolian_gen_bin.full_path() 21eolian_gen_path = eolian_gen_bin.full_path()
22 22
23 23
24eolian_gen = [eolian_gen_bin, '-S'] 24if meson.is_cross_build()
25 _eolian_gen_bin = find_program('eolian_gen', native : true)
26 eolian_gen_path = _eolian_gen_bin.path()
27else
28 _eolian_gen_bin = eolian_gen_bin
29 eolian_gen_path = _eolian_gen_bin.full_path()
30endif
31
32eolian_gen = [_eolian_gen_bin, '-S']