diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2020-02-06 17:28:32 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2020-02-07 11:31:37 +0100 |
commit | b7297fb39ca7a55390f9390666bd29803adc827f (patch) | |
tree | d5e6f977177db1beab58745fbb53205e9c741e79 /SConstruct | |
parent | 00f46452b0206afe6aca79b0c4cd4a205f99067b (diff) |
SCons: Generate header with info on which modules are enabled
We already had `MODULE_*_ENABLED` defines but only in the modules
environment, and a few custom `*_ENABLED` defines in the main env
when we needed the information in core.
Now this is defined in a single header which can be included in the
files that need this information.
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/SConstruct b/SConstruct index 6703038bed..b9698601c3 100644 --- a/SConstruct +++ b/SConstruct @@ -410,7 +410,7 @@ if selected_platform in platform_list: env.module_icons_paths = [] env.doc_class_path = {} - for x in module_list: + for x in sorted(module_list): if not env['module_' + x + '_enabled']: continue tmppath = "./modules/" + x @@ -427,7 +427,7 @@ if selected_platform in platform_list: "signature in its config.py file, it should be " "`can_build(env, platform)`." % x) can_build = config.can_build(selected_platform) - if (can_build): + if can_build: config.configure(env) env.module_list.append(x) |