mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-23 13:14:51 +00:00
waf: upgrade to waifu 1.1.0
This commit is contained in:
parent
dc774318b2
commit
a7103c1c14
15
wscript
15
wscript
@ -63,7 +63,7 @@ def configure(conf):
|
|||||||
conf.env.SERVER_NAME = 'hl'
|
conf.env.SERVER_NAME = 'hl'
|
||||||
conf.env.PREFIX = ''
|
conf.env.PREFIX = ''
|
||||||
|
|
||||||
conf.load('fwgslib reconfigure')
|
conf.load('fwgslib reconfigure enforce_pic')
|
||||||
|
|
||||||
enforce_pic = True # modern defaults
|
enforce_pic = True # modern defaults
|
||||||
valid_build_types = ['fastnative', 'fast', 'release', 'debug', 'nooptimize', 'sanitize', 'none']
|
valid_build_types = ['fastnative', 'fast', 'release', 'debug', 'nooptimize', 'sanitize', 'none']
|
||||||
@ -114,17 +114,8 @@ def configure(conf):
|
|||||||
conf.env.MAGX = conf.options.MAGX
|
conf.env.MAGX = conf.options.MAGX
|
||||||
if conf.options.MAGX:
|
if conf.options.MAGX:
|
||||||
enforce_pic = False
|
enforce_pic = False
|
||||||
|
|
||||||
if enforce_pic:
|
conf.check_pic(enforce_pic)
|
||||||
# Every static library must have fPIC
|
|
||||||
if conf.env.DEST_OS != 'win32' and '-fPIC' in conf.env.CFLAGS_cshlib:
|
|
||||||
conf.env.append_unique('CFLAGS_cstlib', '-fPIC')
|
|
||||||
conf.env.append_unique('CXXFLAGS_cxxstlib', '-fPIC')
|
|
||||||
else:
|
|
||||||
conf.env.CFLAGS_cshlib.remove('-fPIC')
|
|
||||||
conf.env.CXXFLAGS_cxxshlib.remove('-fPIC')
|
|
||||||
conf.env.CFLAGS_MACBUNDLE.remove('-fPIC')
|
|
||||||
conf.env.CXXFLAGS_MACBUNDLE.remove('-fPIC')
|
|
||||||
|
|
||||||
# We restrict 64-bit builds ONLY for Win/Linux/OSX running on Intel architecture
|
# We restrict 64-bit builds ONLY for Win/Linux/OSX running on Intel architecture
|
||||||
# Because compatibility with original GoldSrc
|
# Because compatibility with original GoldSrc
|
||||||
|
Loading…
x
Reference in New Issue
Block a user