meson: be a bit more helpfull when it comes to bindings

Summary:
for now meson would have just used the order that you pass in via
-Dbindings=mono,cxx. However this leads to bugs, as cxx for example must
be declared before mono can be declared. This fixes this error by
forcing a order.

Reviewers: zmike, segfaultxavi

Reviewed By: zmike

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D8341
This commit is contained in:
Marcel Hollerbach 2019-03-14 14:26:20 -04:00 committed by Mike Blumenkrantz
parent aa7ec61664
commit 68a0bfda51
1 changed files with 5 additions and 2 deletions

View File

@ -422,9 +422,12 @@ if get_option('eolian-bootstrap') == false
subdir(join_paths('src', 'generic', 'emotion'))
bindings = get_option('bindings')
bindings_order = ['luajit', 'cxx', 'mono']
foreach binding : bindings
subdir(join_paths('src', 'bindings', binding))
foreach binding : bindings_order
if bindings.contains(binding)
subdir(join_paths('src', 'bindings', binding))
endif
endforeach
subdir(join_paths('src', 'edje_external'))