wscript: refactoring, add waf_unit_test, disable -Wdouble-promotion, rename fast as fastnative and leave fast without -march=native for x-compiling

This commit is contained in:
Alibek Omarov
2019-11-05 01:01:33 +03:00
parent 00e5d42459
commit d2740f78c1
5 changed files with 44 additions and 42 deletions

View File

@@ -21,7 +21,7 @@ def configure(conf):
# check for dedicated server build
if conf.options.DEDICATED:
if conf.env.DEST_OS == 'linux':
conf.check_cc( lib='rt' )
conf.check_cc(lib='rt')
conf.define('XASH_DEDICATED', 1)
elif conf.env.DEST_OS == 'android': # Android doesn't need SDL2
for i in ['android', 'log', 'EGL']:
@@ -87,7 +87,7 @@ def build(bld):
libs.append('RT')
if not bld.env.DEDICATED:
libs.append('ASOUND')
# HACK: public headers must be put before common, so we don't get wrong mathlib included
includes = ['common', 'server', 'client', 'client/vgui', '.', '../public', '../common', '../pm_shared' ]