Skip to content

Commit ebd971b

Browse files
Kenzzerpsychonic
authored andcommitted
Update from SDK 2013
1 parent e0e0194 commit ebd971b

7,476 files changed

Lines changed: 2595595 additions & 1256654 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.hgignore

Lines changed: 0 additions & 16 deletions
This file was deleted.

AMBuildScript

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ class SDKConfig(object):
7171

7272
if cxx.target.arch == 'x86_64':
7373
cxx.defines += ['X64BITS', 'PLATFORM_64BITS']
74+
cxx.defines += ['RAD_TELEMETRY_DISABLED']
7475

7576
# Platform-specifics
7677
if cxx.target.platform == 'linux':
@@ -83,6 +84,15 @@ class SDKConfig(object):
8384
'-Wall',
8485
'-Werror',
8586
'-Wno-overloaded-virtual',
87+
'-Wno-unused-function',
88+
'-Wno-unknown-pragmas',
89+
'-Wno-dangling-else',
90+
'-Wno-unused-variable',
91+
'-Wno-unused-private-field',
92+
'-Wno-inconsistent-missing-override',
93+
'-Wno-tautological-overlap-compare',
94+
'-Wno-tautological-constant-out-of-range-compare',
95+
'-Wno-undefined-bool-conversion',
8696
'-msse',
8797
'-fPIC'
8898
]
@@ -120,22 +130,26 @@ class SDKConfig(object):
120130
def configure_linux(self, cxx):
121131
cxx.defines += ['_LINUX', 'LINUX', 'POSIX', 'GNUC']
122132

133+
if cxx.target.arch == 'x86':
134+
cxx.cflags += ["-march=pentium4", "-march=core2", "-msse2", "-mfpmath=sse"]
135+
else:
136+
cxx.cflags += ["-march=nocona", "-march=core2"]
137+
123138
# Set of defines required by the HL2SDK
124139
cxx.defines += [
125-
'_finite=finite', 'stricmp=strcasecmp',
126-
'_stricmp=strcasecmp', '_strnicmp=strncasecmp',
140+
'_finite=finite',
127141
'strnicmp=strncasecmp', '_vsnprintf=vsnprintf',
128-
'_alloca=alloca', 'strcmpi=strcasecmp',
142+
'_alloca=alloca',
129143
'NO_MALLOC_OVERRIDE'
130144
]
131145
return
132146

133147
def configure_windows(self, cxx):
134-
cxx.defines += ['_WINDOWS']
148+
cxx.defines += ['_WINDOWS', 'WINDOWS', 'COMPILER_MSVC']
135149
if cxx.target.arch == 'x86':
136150
cxx.defines += ['WIN32']
137151
elif cxx.target.arch == 'x86_64':
138-
cxx.defines += ['WIN64']
152+
cxx.defines += ['WIN32', 'WIN64']
139153
return
140154

141155
def configure(self):

Everything_SDK-2005.sln

Lines changed: 0 additions & 208 deletions
This file was deleted.

Game_Episodic-2005.sln

Lines changed: 0 additions & 25 deletions
This file was deleted.

Game_HL2-2005.sln

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)