aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/elementary
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/elementary
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/elementary')
-rw-r--r--src/bin/elementary/meson.build10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/bin/elementary/meson.build b/src/bin/elementary/meson.build
index d345af973b..a4a8dc2d21 100644
--- a/src/bin/elementary/meson.build
+++ b/src/bin/elementary/meson.build
@@ -220,6 +220,16 @@ elm_prefs_cc = executable('elm_prefs_cc',
link_args: '-rdynamic'
)
+if meson.is_cross_build()
+ _elm_prefs_cc = find_program('elm_prefs_cc', native: true)
+ elm_prefs_cc_path = _elm_prefs_cc.path()
+ elm_prefs_cc_exe = [_elm_prefs_cc]
+else
+ env = find_program('env', native: true)
+ elm_prefs_cc_exe = [env, 'EFL_RUN_IN_TREE=1', elm_prefs_cc.full_path()]
+endif
+
+
elementary_run_src = [
'run.c'
]