|
|
@ -71,6 +71,11 @@ def configure(conf): |
|
|
|
conf.load('msvc msdev') |
|
|
|
conf.load('msvc msdev') |
|
|
|
conf.load('xcompile compiler_c compiler_cxx') |
|
|
|
conf.load('xcompile compiler_c compiler_cxx') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if conf.env.DEST_OS2 == 'android': |
|
|
|
|
|
|
|
conf.options.ALLOW64 = True |
|
|
|
|
|
|
|
conf.options.GOLDSRC = False |
|
|
|
|
|
|
|
conf.env.SERVER_NAME = 'server' # can't be any other name, until specified |
|
|
|
|
|
|
|
|
|
|
|
# print(conf.options.ALLOW64) |
|
|
|
# print(conf.options.ALLOW64) |
|
|
|
|
|
|
|
|
|
|
|
conf.env.BIT32_MANDATORY = not conf.options.ALLOW64 |
|
|
|
conf.env.BIT32_MANDATORY = not conf.options.ALLOW64 |
|
|
@ -134,10 +139,17 @@ def configure(conf): |
|
|
|
conf.env.append_unique('DEFINES', ['_CRT_SECURE_NO_WARNINGS','_CRT_NONSTDC_NO_DEPRECATE']) |
|
|
|
conf.env.append_unique('DEFINES', ['_CRT_SECURE_NO_WARNINGS','_CRT_NONSTDC_NO_DEPRECATE']) |
|
|
|
else: |
|
|
|
else: |
|
|
|
conf.env.append_unique('DEFINES', ['stricmp=strcasecmp','strnicmp=strncasecmp','_LINUX','LINUX','_snprintf=snprintf','_vsnprintf=vsnprintf']) |
|
|
|
conf.env.append_unique('DEFINES', ['stricmp=strcasecmp','strnicmp=strncasecmp','_LINUX','LINUX','_snprintf=snprintf','_vsnprintf=vsnprintf']) |
|
|
|
cflags = ['-fvisibility=hidden','-Wno-write-strings','-fno-exceptions'] |
|
|
|
cflags = ['-fvisibility=hidden','-Wno-write-strings','-fno-exceptions','-fno-rtti'] |
|
|
|
conf.env.append_unique('CFLAGS', cflags) |
|
|
|
conf.env.append_unique('CFLAGS', cflags) |
|
|
|
conf.env.append_unique('CXXFLAGS', cflags + ['-Wno-invalid-offsetof']) |
|
|
|
conf.env.append_unique('CXXFLAGS', cflags + ['-Wno-invalid-offsetof']) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# strip lib from pattern |
|
|
|
|
|
|
|
if conf.env.DEST_OS in ['linux', 'darwin'] and conf.env.DEST_OS2 not in ['android']: |
|
|
|
|
|
|
|
if conf.env.cshlib_PATTERN.startswith('lib'): |
|
|
|
|
|
|
|
conf.env.cshlib_PATTERN = conf.env.cshlib_PATTERN[3:] |
|
|
|
|
|
|
|
if conf.env.cxxshlib_PATTERN.startswith('lib'): |
|
|
|
|
|
|
|
conf.env.cxxshlib_PATTERN = conf.env.cxxshlib_PATTERN[3:] |
|
|
|
|
|
|
|
|
|
|
|
conf.env.append_unique('DEFINES', 'CLIENT_WEAPONS') |
|
|
|
conf.env.append_unique('DEFINES', 'CLIENT_WEAPONS') |
|
|
|
|
|
|
|
|
|
|
|
conf.recurse('cl_dll dlls') |
|
|
|
conf.recurse('cl_dll dlls') |
|
|
|