From 68a0bfda51727fef8baaacc7356249aacaa0c7de Mon Sep 17 00:00:00 2001 From: Marcel Hollerbach Date: Thu, 14 Mar 2019 14:26:20 -0400 Subject: [PATCH] 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 --- meson.build | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 93cd3be56b..061cd623c1 100644 --- a/meson.build +++ b/meson.build @@ -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'))