1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2026-10-10 20:03:08 +08:00

Update from SDK 2013

This commit is contained in:
Kenzzer
2025-02-19 18:36:16 -05:00
committed by Nicholas Hastings
parent e0e01948b8
commit ebd971b421
7471 changed files with 2595606 additions and 1256665 deletions
+19 -5
View File
@@ -71,6 +71,7 @@ class SDKConfig(object):
if cxx.target.arch == 'x86_64':
cxx.defines += ['X64BITS', 'PLATFORM_64BITS']
cxx.defines += ['RAD_TELEMETRY_DISABLED']
# Platform-specifics
if cxx.target.platform == 'linux':
@@ -83,6 +84,15 @@ class SDKConfig(object):
'-Wall',
'-Werror',
'-Wno-overloaded-virtual',
'-Wno-unused-function',
'-Wno-unknown-pragmas',
'-Wno-dangling-else',
'-Wno-unused-variable',
'-Wno-unused-private-field',
'-Wno-inconsistent-missing-override',
'-Wno-tautological-overlap-compare',
'-Wno-tautological-constant-out-of-range-compare',
'-Wno-undefined-bool-conversion',
'-msse',
'-fPIC'
]
@@ -120,22 +130,26 @@ class SDKConfig(object):
def configure_linux(self, cxx):
cxx.defines += ['_LINUX', 'LINUX', 'POSIX', 'GNUC']
if cxx.target.arch == 'x86':
cxx.cflags += ["-march=pentium4", "-march=core2", "-msse2", "-mfpmath=sse"]
else:
cxx.cflags += ["-march=nocona", "-march=core2"]
# Set of defines required by the HL2SDK
cxx.defines += [
'_finite=finite', 'stricmp=strcasecmp',
'_stricmp=strcasecmp', '_strnicmp=strncasecmp',
'_finite=finite',
'strnicmp=strncasecmp', '_vsnprintf=vsnprintf',
'_alloca=alloca', 'strcmpi=strcasecmp',
'_alloca=alloca',
'NO_MALLOC_OVERRIDE'
]
return
def configure_windows(self, cxx):
cxx.defines += ['_WINDOWS']
cxx.defines += ['_WINDOWS', 'WINDOWS', 'COMPILER_MSVC']
if cxx.target.arch == 'x86':
cxx.defines += ['WIN32']
elif cxx.target.arch == 'x86_64':
cxx.defines += ['WIN64']
cxx.defines += ['WIN32', 'WIN64']
return
def configure(self):