summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2018-12-17 17:30:40 +0100
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2018-12-17 17:43:08 +0100
commit4a4d32b60df31e25f2ad406c19324592fc69669a (patch)
tree8bb32b0533cdc0654f48c851faef3944b57a6f3e /src
parent42a23d1afa23c82b0aa0a7de7a89746115ff7826 (diff)
build: make bindings cross compileable
Differential Revision: https://phab.enlightenment.org/D7470
Diffstat (limited to 'src')
-rw-r--r--src/bindings/cxx/eolian_cxx/meson.build8
-rw-r--r--src/bindings/mono/eolian_mono/meson.build7
2 files changed, 13 insertions, 2 deletions
diff --git a/src/bindings/cxx/eolian_cxx/meson.build b/src/bindings/cxx/eolian_cxx/meson.build
index 219ffa334b..43590d3f9f 100644
--- a/src/bindings/cxx/eolian_cxx/meson.build
+++ b/src/bindings/cxx/eolian_cxx/meson.build
@@ -63,10 +63,16 @@ endforeach
63 63
64inc_dir = include_directories(join_paths('..', '..', '..', 'lib', 'eolian_cxx')) 64inc_dir = include_directories(join_paths('..', '..', '..', 'lib', 'eolian_cxx'))
65 65
66eolian_cxx_gen = executable('eolian_cxx', 66eolian_cxx_gen_bin = executable('eolian_cxx',
67 join_paths('..', '..', '..', 'bin', 'eolian_cxx', 'eolian_cxx.cc'), 67 join_paths('..', '..', '..', 'bin', 'eolian_cxx', 'eolian_cxx.cc'),
68 dependencies: [eina_cxx, eolian], 68 dependencies: [eina_cxx, eolian],
69 install: true, 69 install: true,
70 include_directories : inc_dir, 70 include_directories : inc_dir,
71 cpp_args : package_c_args, 71 cpp_args : package_c_args,
72 ) 72 )
73
74if meson.is_cross_build()
75 eolian_cxx_gen = find_program('eolian_cxx', native: true)
76else
77 eolian_cxx_gen = eolian_cxx_gen_bin
78endif
diff --git a/src/bindings/mono/eolian_mono/meson.build b/src/bindings/mono/eolian_mono/meson.build
index 7782c7b31d..530a503647 100644
--- a/src/bindings/mono/eolian_mono/meson.build
+++ b/src/bindings/mono/eolian_mono/meson.build
@@ -1,9 +1,14 @@
1inc_dir = include_directories(join_paths('..', '..', '..', 'bin', 'eolian_mono')) 1inc_dir = include_directories(join_paths('..', '..', '..', 'bin', 'eolian_mono'))
2 2
3eolian_mono_gen = executable('eolian_mono', 3eolian_mono_gen_bin = executable('eolian_mono',
4 join_paths('..', '..', '..', 'bin', 'eolian_mono', 'eolian_mono.cc'), 4 join_paths('..', '..', '..', 'bin', 'eolian_mono', 'eolian_mono.cc'),
5 dependencies: [eina_cxx, eolian_cxx], 5 dependencies: [eina_cxx, eolian_cxx],
6 install: true, 6 install: true,
7 include_directories : inc_dir, 7 include_directories : inc_dir,
8 cpp_args : package_c_args, 8 cpp_args : package_c_args,
9 ) 9 )
10if meson.is_cross_build()
11 eolian_mono_gen = find_program('eolian_mono', native: true)
12else
13 eolian_mono_gen = eolian_mono_gen_bin
14endif