2013-11-18 18:46:46 +01:00
|
|
|
# vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
|
2010-05-14 07:34:36 +02:00
|
|
|
import os
|
|
|
|
|
2013-11-18 18:46:46 +01:00
|
|
|
for sdk_name in MMS.sdks:
|
|
|
|
sdk = MMS.sdks[sdk_name]
|
2014-05-25 11:16:03 +02:00
|
|
|
if sdk.name == 'episode1':
|
2013-11-18 18:46:46 +01:00
|
|
|
continue
|
2010-05-14 07:34:36 +02:00
|
|
|
|
2013-11-18 18:46:46 +01:00
|
|
|
name = 'metamod.' + sdk.ext
|
|
|
|
binary = MMS.HL2Library(builder, name, sdk)
|
2010-05-14 07:34:36 +02:00
|
|
|
|
2013-11-18 18:46:46 +01:00
|
|
|
binary.sources += [
|
|
|
|
'metamod.cpp',
|
|
|
|
'metamod_console.cpp',
|
|
|
|
'metamod_oslink.cpp',
|
|
|
|
'metamod_plugins.cpp',
|
|
|
|
'metamod_util.cpp',
|
|
|
|
'provider/console.cpp',
|
|
|
|
'provider/provider_ep2.cpp',
|
|
|
|
'sourcehook/sourcehook.cpp',
|
|
|
|
'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'
|
|
|
|
]
|
2016-07-22 19:59:58 +02:00
|
|
|
|
|
|
|
# Source2 hack. TODO: check this more deterministically, "are we doing an x64 build?"
|
2016-07-24 03:39:12 +02:00
|
|
|
if sdk.name != 'dota' or builder.target.platform == 'windows':
|
2016-07-22 19:59:58 +02:00
|
|
|
binary.sources += ['sourcehook/sourcehook_hookmangen.cpp']
|
2013-11-18 18:46:46 +01:00
|
|
|
nodes = builder.Add(binary)
|
|
|
|
MMS.binaries += [nodes]
|