2013-11-18 09:46:46 -08:00
|
|
|
# vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
|
2010-05-14 00:34:36 -05:00
|
|
|
import os
|
|
|
|
|
2024-02-06 11:12:29 -08:00
|
|
|
for sdk_target in MMS.sdk_targets:
|
|
|
|
sdk = sdk_target.sdk
|
|
|
|
cxx = sdk_target.cxx
|
|
|
|
|
2023-10-10 22:23:38 -07:00
|
|
|
name = 'metamod.' + sdk['extension']
|
|
|
|
binary = MMS.HL2Library(builder, cxx, name, sdk)
|
2010-05-14 00:34:36 -05:00
|
|
|
|
2023-10-10 22:23:38 -07:00
|
|
|
binary.sources += [
|
|
|
|
'metamod.cpp',
|
|
|
|
'metamod_console.cpp',
|
|
|
|
'metamod_oslink.cpp',
|
|
|
|
'metamod_plugins.cpp',
|
|
|
|
'metamod_util.cpp',
|
|
|
|
'provider/console.cpp',
|
|
|
|
'provider/provider_ep2.cpp',
|
2024-04-20 14:10:59 +02:00
|
|
|
'sourcehook/sourcehook.cpp',
|
|
|
|
'sourcehook/sourcehook_hookmangen_test.cpp',
|
2023-10-10 22:23:38 -07:00
|
|
|
'sourcehook/sourcehook_impl_chookidman.cpp',
|
|
|
|
'sourcehook/sourcehook_impl_chookmaninfo.cpp',
|
|
|
|
'sourcehook/sourcehook_impl_cproto.cpp',
|
|
|
|
'sourcehook/sourcehook_impl_cvfnptr.cpp',
|
|
|
|
'gamedll_bridge.cpp',
|
|
|
|
'vsp_bridge.cpp'
|
|
|
|
]
|
2010-05-14 00:34:36 -05:00
|
|
|
|
2023-10-10 22:23:38 -07:00
|
|
|
# Source2 hack. TODO: check this more deterministically, "are we doing an x64 build?"
|
|
|
|
if binary.compiler.target.arch == 'x86':
|
|
|
|
binary.sources += ['sourcehook/sourcehook_hookmangen.cpp']
|
2024-04-20 14:10:59 +02:00
|
|
|
elif binary.compiler.target.arch == 'x86_64':
|
|
|
|
binary.sources += ['sourcehook/sourcehook_hookmangen_x86_64.cpp']
|
2023-10-10 22:23:38 -07:00
|
|
|
nodes = builder.Add(binary)
|
|
|
|
MMS.binaries += [nodes]
|