mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-12-23 01:11:44 +01:00
Make vgui build dependence optional as it does not have opensource license
This commit is contained in:
parent
1dedf0e208
commit
9dadc0de93
@ -11,12 +11,16 @@ def options(opt):
|
||||
opt.add_option(
|
||||
'--vgui', action = 'store', type='string', dest = 'VGUI_DEV',
|
||||
help = 'path to vgui-dev repo', default='' )
|
||||
opt.add_option(
|
||||
'--no-vgui', action = 'store_true', dest = 'NO_VGUI',
|
||||
help = 'disable vgui_support', default=False )
|
||||
|
||||
# stub
|
||||
return
|
||||
|
||||
def configure(conf):
|
||||
if conf.options.DEDICATED:
|
||||
conf.env.NO_VGUI = conf.options.NO_VGUI
|
||||
if conf.options.DEDICATED or conf.options.NO_VGUI:
|
||||
return
|
||||
|
||||
conf.start_msg('Checking for VGUI')
|
||||
@ -52,7 +56,7 @@ def build(bld):
|
||||
bld.load_envs()
|
||||
bld.env = bld.all_envs[get_subproject_name(bld)]
|
||||
|
||||
if bld.env.DEDICATED:
|
||||
if bld.env.DEDICATED or bld.env.NO_VGUI:
|
||||
return
|
||||
|
||||
# basic build: dedicated only, no dependencies
|
||||
|
Loading…
Reference in New Issue
Block a user