1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2024-11-28 10:24:20 +01:00

Move standard source 2 include source files in HL2Library

This commit is contained in:
Nick Hastings 2023-11-13 19:52:36 -05:00 committed by Nicholas Hastings
parent 6c62ea0360
commit 30f0aa65b4
4 changed files with 8 additions and 6 deletions

View File

@ -324,6 +324,10 @@ class MMSConfig(object):
if sdk['source2']:
cxx.defines += ['META_IS_SOURCE2']
binary.sources += [
os.path.join(sdk['path'], 'public', 'tier0', 'memoverride.cpp'),
os.path.join(sdk['path'], 'tier1', 'convar.cpp'),
]
SdkHelpers.configureCxx(context, binary, sdk)

View File

@ -23,8 +23,6 @@ for sdk, cxx in MMS.sdk_targets:
if sdk.get('source2', False):
binary.sources += [
'provider/source2/provider_source2.cpp',
os.path.join(sdk['path'], 'tier1', 'convar.cpp'),
os.path.join(sdk['path'], 'public', 'tier0', 'memoverride.cpp')
]
else:
binary.sources += [

View File

@ -275,6 +275,10 @@ class MMSPluginConfig(object):
if sdk['source2']:
cxx.defines += ['META_IS_SOURCE2']
binary.sources += [
os.path.join(sdk['path'], 'tier0_perproject', 'memoverride.cpp'),
os.path.join(sdk['path'], 'tier1', 'convar.cpp'),
]
SdkHelpers.configureCxx(context, binary, sdk)

View File

@ -16,10 +16,6 @@ for sdk_target in MMSPlugin.sdk_targets:
'sample_mm.cpp',
]
binary.sources += [
os.path.join(sdk['path'], 'tier1', 'convar.cpp'),
os.path.join(sdk['path'], 'public', 'tier0', 'memoverride.cpp')
]
binary.custom = [builder.tools.Protoc(protoc = sdk_target.protoc, sources = [
os.path.join(sdk['path'], 'common', 'network_connection.proto'),
])]