2013-12-30 23:50:56 +01:00
|
|
|
# vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
|
2013-02-08 05:43:33 +01:00
|
|
|
import os
|
|
|
|
|
2013-12-30 23:50:56 +01:00
|
|
|
for sdk_name in SM.sdks:
|
|
|
|
sdk = SM.sdks[sdk_name]
|
|
|
|
|
|
|
|
binary = SM.HL2Library(builder, 'sdkhooks.ext.' + sdk.ext, sdk)
|
|
|
|
binary.compiler.cxxincludes += [
|
|
|
|
os.path.join(sdk.path, 'game', 'shared')
|
|
|
|
]
|
|
|
|
if binary.compiler.cxx.behavior is 'gcc':
|
|
|
|
binary.compiler.cxxflags += ['-Wno-invalid-offsetof']
|
2013-02-08 05:43:33 +01:00
|
|
|
|
2013-12-30 23:50:56 +01:00
|
|
|
binary.sources += [
|
|
|
|
'extension.cpp',
|
|
|
|
'natives.cpp',
|
|
|
|
'takedamageinfohack.cpp',
|
|
|
|
'util.cpp',
|
|
|
|
'sdk/smsdk_ext.cpp',
|
|
|
|
]
|
|
|
|
SM.binaries += [builder.Add(binary)]
|