charp: Require mono bindings when using dotnet

Allow using `-Ddotnet=true` to automatically pull `bindings=mono`.

Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D10610
This commit is contained in:
Lauro Moura 2019-11-06 18:41:13 +00:00 committed by Marcel Hollerbach
parent a8417668bc
commit 44b5324259
1 changed files with 5 additions and 0 deletions

View File

@ -2,6 +2,11 @@
bindings = get_option('bindings')
bindings_order = ['luajit', 'cxx', 'mono']
if (get_option('dotnet') and not bindings.contains('mono'))
message('dotnet support requires the C# bindings')
bindings += ['mono']
endif
if (bindings.contains('cxx') == false and bindings.contains('mono'))
subdirs = ['eina_cxx', 'eolian_cxx']
subdir(join_paths('cxx', 'eina_cxx'))