mirror of
https://github.com/w23/xash3d-fwgs
synced 2025-01-05 16:35:56 +01:00
vgui_support: wscript: automatically disable vgui_support build on unsupported CPU type
This commit is contained in:
parent
26616314f8
commit
1538bc609d
@ -25,15 +25,21 @@ def configure(conf):
|
|||||||
if conf.options.NO_VGUI:
|
if conf.options.NO_VGUI:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
conf.start_msg('Does this architecture support VGUI?')
|
||||||
|
|
||||||
|
if conf.env.DEST_CPU != 'x86' and not (conf.env.DEST_CPU == 'x86_64' and not conf.options.ALLOW64):
|
||||||
|
conf.end_msg('no')
|
||||||
|
Logs.warn('vgui is not supported on this CPU: ' + str(conf.env.DEST_CPU))
|
||||||
|
conf.env.NO_VGUI = True
|
||||||
|
return
|
||||||
|
else:
|
||||||
|
conf.end_msg('yes')
|
||||||
|
|
||||||
conf.start_msg('Configuring VGUI by provided path')
|
conf.start_msg('Configuring VGUI by provided path')
|
||||||
|
|
||||||
if not conf.options.VGUI_DEV:
|
if not conf.options.VGUI_DEV:
|
||||||
conf.end_msg('no')
|
conf.end_msg('no')
|
||||||
conf.fatal("Provide a path to vgui-dev repository using --vgui key")
|
conf.fatal("Provide a path to vgui-dev repository using --vgui key")
|
||||||
|
|
||||||
if conf.env.DEST_CPU != 'x86' and not (conf.env.DEST_CPU == 'x86_64' and not conf.options.ALLOW64):
|
|
||||||
conf.end_msg('no')
|
|
||||||
conf.fatal('vgui is not supported on this CPU: ' + conf.env.DEST_CPU)
|
|
||||||
|
|
||||||
if conf.env.DEST_OS == 'win32':
|
if conf.env.DEST_OS == 'win32':
|
||||||
conf.env.LIB_VGUI = ['vgui']
|
conf.env.LIB_VGUI = ['vgui']
|
||||||
|
Loading…
Reference in New Issue
Block a user