meson: support mono bindings building without cxx

Summary:
the mono bindings do depend partitially on the cxx bindings, eina_cxx
and eolian_cxx are needed, nothing more. With this commit you can build
mono without cxx.

fixes T8292

Reviewers: lauromoura

Reviewed By: lauromoura

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Maniphest Tasks: T8292

Differential Revision: https://phab.enlightenment.org/D10264
This commit is contained in:
Marcel Hollerbach 2019-10-01 09:57:04 -03:00 committed by Lauro Moura
parent c1ffcff1d3
commit cc4aa8ccaa
2 changed files with 21 additions and 10 deletions

View File

@ -440,16 +440,7 @@ if sys_windows == false
subdir(join_paths('src', 'generic', 'emotion')) subdir(join_paths('src', 'generic', 'emotion'))
endif endif
subdir('cmakeconfig') subdir('cmakeconfig')
subdir(join_paths('src', 'bindings'))
bindings = get_option('bindings')
bindings_order = ['luajit', 'cxx', 'mono']
foreach binding : bindings_order
if bindings.contains(binding)
subdir(join_paths('src', 'bindings', binding))
endif
endforeach
subdir(join_paths('src', 'edje_external')) subdir(join_paths('src', 'edje_external'))
subdir(join_paths('data')) subdir(join_paths('data'))

20
src/bindings/meson.build Normal file
View File

@ -0,0 +1,20 @@
bindings = get_option('bindings')
bindings_order = ['luajit', 'cxx', 'mono']
if (bindings.contains('cxx') == false and bindings.contains('mono'))
subdirs = ['eina_cxx', 'eolian_cxx']
subdir(join_paths('cxx', 'eina_cxx'))
inc_dir = []
subdir(join_paths('cxx', 'eolian_cxx'))
eolian_cxx = declare_dependency(
include_directories: inc_dir,
dependencies : eolian
)
endif
foreach binding : bindings_order
if bindings.contains(binding)
subdir(join_paths( binding))
endif
endforeach