aboutsummaryrefslogtreecommitdiffstats
path: root/meson.build
diff options
context:
space:
mode:
authorWonki Kim <wonki_.kim@samsung.com>2019-01-09 14:36:09 +0000
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-01-10 10:57:42 +0100
commit8d58ef48bdad37d42272d28008f538324c9a01fe (patch)
tree4e288fb38e2176d39ba4e8c6cb8cce66a1ffc9fe /meson.build
parentmeson: excludes stuffs related with gst if gst is disabled (diff)
downloadefl-8d58ef48bdad37d42272d28008f538324c9a01fe.tar.gz
meson: modify options for enabling the bindings
bindings are added as subdir by foreaching a array defined in meson.build at root. then meson checks a option which has the same name of the binding. this patch appends a new option for selecting bindings to build. [howto] *as-is meson build.asis/ -Dmono=false -Dcxx=true ninja -C build.asis/ *to-be menson build.tobe/ -Dbindings=luajit,cxx ninja -C build.tobe/ it is imposibble to use this wrongly because meson raise a error if arguments are not in a predefined list that described in meson_options.txt. for more information, refer to https://mesonbuild.com/Build-options.html and also take a look at meson_options.txt please. Differential Revision: https://phab.enlightenment.org/D7563
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build6
1 files changed, 2 insertions, 4 deletions
diff --git a/meson.build b/meson.build
index cee0c1bc3b..5299ad2262 100644
--- a/meson.build
+++ b/meson.build
@@ -406,12 +406,10 @@ subdir(join_paths('src', 'generic', 'evas'))
subdir(join_paths('src', 'generic', 'emotion'))
subdir('cmakeconfig')
-bindings = ['luajit', 'cxx', 'mono']
+bindings = get_option('bindings')
foreach binding : bindings
- if get_option(binding)
- subdir(join_paths('src', 'bindings', binding))
- endif
+ subdir(join_paths('src', 'bindings', binding))
endforeach
subdir(join_paths('src', 'edje_external'))