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.
This commit is contained in:
parent
00f46452b0
commit
b7297fb39c
6 changed files with 35 additions and 46 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue