meson: don't run edje_cc in tree using `env`
authorMike Blumenkrantz <zmike@samsung.com>
Fri, 26 Apr 2019 13:04:25 +0000 (09:04 -0400)
committerHermet Park <hermetpark@gmail.com>
Wed, 8 May 2019 04:32:33 +0000 (13:32 +0900)
this breaks library path setup in the build: the dependencies for runtime
are set for the 'env' executable instead of for edje_cc

for now, EFL_RUN_IN_TREE must be set manually

Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D8724

src/bin/edje/meson.build

index b2f2e73..5ba05d7 100644 (file)
@@ -36,8 +36,12 @@ if meson.is_cross_build()
   edje_cc_exe = [_edje_cc]
   edje_depends = []
 else
-  env = find_program('env', native: true)
-  edje_cc_exe = [env, 'EFL_RUN_IN_TREE=1', edje_cc.full_path()]
+  if sys_windows == true
+    edje_cc_exe = [edje_cc.full_path()]
+  else
+    env = find_program('env', native: true)
+    edje_cc_exe = [env, 'EFL_RUN_IN_TREE=1', edje_cc.full_path()]
+  endif
   edje_depends = [edje_cc, epp]
 endif