aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/edje
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/edje
parentecore: fix typo in comments. (diff)
downloadefl-79ded15ad3c0074e1d378cc5a0accad2399fcc24.tar.gz
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/edje')
-rw-r--r--src/bin/edje/meson.build11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/bin/edje/meson.build b/src/bin/edje/meson.build
index 83e4cbbde3..24d62ead62 100644
--- a/src/bin/edje/meson.build
+++ b/src/bin/edje/meson.build
@@ -30,9 +30,14 @@ edje_cc = executable('edje_cc',
link_args : bin_linker_args
)
-env = find_program('env')
-
-edje_cc_exe = [env, 'EFL_RUN_IN_TREE=1', edje_cc.full_path()]
+if meson.is_cross_build()
+ _edje_cc = find_program('edje_cc', native: true)
+ edje_cc_path = _edje_cc.path()
+ edje_cc_exe = [_edje_cc]
+else
+ env = find_program('env', native: true)
+ edje_cc_exe = [env, 'EFL_RUN_IN_TREE=1', edje_cc.full_path()]
+endif
edje_decc_src = [
'edje_decc.c',