mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-02 12:17:15 +01:00
tools: Add env var to filter output configs (fixes #2423)
Adds a new GN_OUT_CONFIGS environment variable that, if specified, will limit the generated configurations to a list of comma-delimited values (e.g. "Debug_GN_x64,Release_GN_x64").
This commit is contained in:
parent
4080d513c3
commit
a6c32e1b47
@ -624,6 +624,18 @@ def GetAllPlatformConfigs(build_args):
|
||||
result['Release_GN_' + cpu + '_sandbox'] = GetConfigArgsSandbox(
|
||||
platform, args, False, cpu)
|
||||
|
||||
out_configs = os.environ.get('GN_OUT_CONFIGS', None)
|
||||
if not out_configs is None:
|
||||
# Only generate the specified configurations.
|
||||
out_configs = [c.strip() for c in out_configs.split(',')]
|
||||
for key in list(result.keys()):
|
||||
if not key in out_configs:
|
||||
msg('Not generating %s configuration due to GN_OUT_CONFIGS' % key)
|
||||
del result[key]
|
||||
if not bool(result):
|
||||
raise Exception('No supported configurations in GN_OUT_CONFIGS ("%s")' %
|
||||
','.join(out_configs))
|
||||
|
||||
return result
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user