1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2025-01-19 08:52:34 +01:00
Nicholas Hastings 4007ae8310 Disable dynamic hooking iface on non-Windows Dota.
This should really be disabled on x64 (or ported to work on it), but
not sure how to best check that in the AMBuilder file.
2016-07-22 13:59:58 -04:00

34 lines
986 B
Python

# vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
import os
for sdk_name in MMS.sdks:
sdk = MMS.sdks[sdk_name]
if sdk.name == 'episode1':
continue
name = 'metamod.' + sdk.ext
binary = MMS.HL2Library(builder, name, sdk)
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'
]
# Source2 hack. TODO: check this more deterministically, "are we doing an x64 build?"
if sdk.name != 'dota' or builder.target_platform == 'windows':
binary.sources += ['sourcehook/sourcehook_hookmangen.cpp']
nodes = builder.Add(binary)
MMS.binaries += [nodes]