ajwillia-ms pushed a commit to branch master.

http://git.enlightenment.org/tools/examples.git/commit/?id=693845d2ccc2ca4d4c6b5b744848026b4fd6e403

commit 693845d2ccc2ca4d4c6b5b744848026b4fd6e403
Author: Andy Williams <[email protected]>
Date:   Tue Nov 14 11:48:57 2017 +0000

    eo-classes: Update meson usage to build correct paths
---
 tutorial/c/eo-classes/src/meson.build | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/tutorial/c/eo-classes/src/meson.build 
b/tutorial/c/eo-classes/src/meson.build
index bc80aa6..26d1c15 100644
--- a/tutorial/c/eo-classes/src/meson.build
+++ b/tutorial/c/eo-classes/src/meson.build
@@ -12,10 +12,11 @@ foreach eo : eo_src
     input : eo_file,
     output : [eo_file + '.h'],
     command : [eolian_gen, '-I', eolian.get_pkgconfig_variable('eoincludedir'),
-                           '-I', meson.source_root() + '/src',
-                           '-gchi', '-o', 'h:' + eo_file + '.h',
-                           '-o', 'i:' + meson.source_root() + '/src/' + eo + 
'.c',
-                           '-o', 'c:' + eo_file + '.c', '@INPUT@'])
+                           '-I', meson.current_source_dir(),
+                           '-gchi',
+                           '-o', 'i:' + join_paths(meson.current_source_dir(), 
eo + '.c'),
+                           '-o', 'h:' + join_paths(meson.current_build_dir(), 
eo_file + '.h'),
+                           '-o', 'c:' + join_paths(meson.current_build_dir(), 
eo_file + '.c'), '@INPUT@'])
 endforeach
 
 src = files([

-- 


Reply via email to