From 68b0f9dfbff9e6732ebc705abbaceac21f135c48 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sat, 27 Aug 2016 20:37:29 +0300 Subject: Expose all builtin options. --- mesonbuild/mintro.py | 26 +++++++------------------- 1 file changed, 7 insertions(+), 19 deletions(-) diff --git a/mesonbuild/mintro.py b/mesonbuild/mintro.py index 14f82a6..76efdac 100644 --- a/mesonbuild/mintro.py +++ b/mesonbuild/mintro.py @@ -86,25 +86,11 @@ def list_target_files(target_name, coredata, builddata): print(json.dumps(sources)) def list_buildoptions(coredata, builddata): - buildtype= {'choices': ['plain', 'debug', 'debugoptimized', 'release', 'minsize'], - 'type' : 'combo', - 'value' : coredata.get_builtin_option('buildtype'), - 'description' : 'Build type', - 'name' : 'type'} - strip = {'value' : coredata.get_builtin_option('strip'), - 'type' : 'boolean', - 'description' : 'Strip on install', - 'name' : 'strip'} - unity = {'value' : coredata.get_builtin_option('unity'), - 'type' : 'boolean', - 'description' : 'Unity build', - 'name' : 'unity'} - all_opt = [] - all_opt.append({'name' : 'core', - 'description' : 'Core options', - 'type' : 'suboption', - 'value' : [buildtype, strip, unity], - }) + all_opt = [{'name' : 'builtin', + 'description': 'Meson builtin options', + 'type': 'suboption', + 'value': get_keys(coredata.builtins), + }] all_opt.append({'name': 'user', 'description' : 'User defined options', 'type' : 'suboption', @@ -161,6 +147,8 @@ def get_keys(options): keys = list(options.keys()) keys.sort() for key in keys: + if key == 'backend': # The backend can never be changed. + continue opt = options[key] optlist.append(opt2dict(key, opt)) return optlist -- cgit v1.1