wscript: check if extra-projects was set in configuration

This commit is contained in:
mittorn 2023-10-31 21:09:36 +03:00 committed by Alibek Omarov
parent 46c82e89e1
commit 16eeaef35c
1 changed files with 6 additions and 1 deletions

View File

@ -105,13 +105,16 @@ REFDLLS = [
]
def process_extra_projects_opts(ctx):
projs = ''
options, commands, envvars = ctx.parse_cmd_args()
projs = options.EXTRA_PROJECTS
if not projs:
return
for proj in projs.split(','):
ctx.add_subproject(proj)
def process_extra_projects_conf(ctx):
projs = ctx.options.EXTRA_PROJECTS
if not projs:
return
ctx.env.EXTRA_PROJECTS = projs
for proj in projs.split(','):
@ -128,6 +131,8 @@ def process_extra_projects_conf(ctx):
def process_extra_projects_bld(ctx):
projs = ctx.env.EXTRA_PROJECTS
if not projs:
return
for proj in projs.split(','):
ctx.add_subproject(proj)