Skip to content

Commit

Permalink
Move standard source 2 include source files in HL2Library
Browse files Browse the repository at this point in the history
  • Loading branch information
psychonic committed Nov 16, 2023
1 parent 6c62ea0 commit 30f0aa6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 4 additions & 0 deletions AMBuildScript
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 0 additions & 2 deletions core/AMBuilder
Original file line number Diff line number Diff line change
Expand Up @@ -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 += [
Expand Down
4 changes: 4 additions & 0 deletions samples/s2_sample_mm/AMBuildScript
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
4 changes: 0 additions & 4 deletions samples/s2_sample_mm/AMBuilder
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
])]
Expand Down

0 comments on commit 30f0aa6

Please sign in to comment.