mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-02-26 19:54:14 +01:00
36 lines
1.1 KiB
Python
36 lines
1.1 KiB
Python
# vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
|
|
import os
|
|
|
|
for sdk_target in MMS.sdk_targets:
|
|
sdk = sdk_target.sdk
|
|
cxx = sdk_target.cxx
|
|
|
|
name = 'metamod.' + sdk['extension']
|
|
binary = MMS.HL2Library(builder, cxx, 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',
|
|
'sourcehook/sourcehook_hookmangen.cpp',
|
|
'gamedll_bridge.cpp',
|
|
'vsp_bridge.cpp'
|
|
]
|
|
binary.compiler.defines += ['_ALLOW_KEYWORD_MACROS']
|
|
|
|
if binary.compiler.target.arch == 'x86':
|
|
binary.sources += ['sourcehook/sourcehook_hookmangen_x86.cpp']
|
|
elif binary.compiler.target.arch == 'x86_64' and binary.compiler.target.platform != 'linux':
|
|
binary.sources += ['sourcehook/sourcehook_hookmangen_x86_64.cpp']
|
|
nodes = builder.Add(binary)
|
|
MMS.binaries += [nodes]
|