Skip to content

Commit

Permalink
Fix build script
Browse files Browse the repository at this point in the history
  • Loading branch information
zer0k-z committed Dec 18, 2023
1 parent 0016a41 commit 9ea6433
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions AMBuilder
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,25 @@ import os
# which in the end would ruin the multi-platform (unix, win etc) loading by metamod as it won't be able to append platform specific extension
# so just fall back to the single binary.
# Multi-sdk solutions should be manually loaded with a custom plugin loader (examples being sourcemod, stripper:source)
CXXINCLUDES = [
os.path.join(builder.sourcePath, 'src'),
os.path.join(builder.sourcePath, 'hl2sdk-cs2'),
os.path.join(builder.sourcePath, 'hl2sdk-cs2', 'public', 'entity2'),
os.path.join(builder.sourcePath, 'hl2sdk-cs2', 'game', 'server'),
os.path.join(builder.sourcePath, 'vendor', 'funchook', 'include'),
]

PROTOS = [
os.path.join(sdk['path'], 'game', 'shared', 'usermessages.proto'),
os.path.join(sdk['path'], 'common', 'network_connection.proto'),
os.path.join(sdk['path'], 'common', 'networkbasetypes.proto'),
]

for sdk_target in MMSPlugin.sdk_targets:
sdk = sdk_target.sdk
cxx = sdk_target.cxx

CXXINCLUDES = [
os.path.join(builder.sourcePath, 'src'),
os.path.join(builder.sourcePath, 'hl2sdk-cs2'),
os.path.join(builder.sourcePath, 'hl2sdk-cs2', 'public', 'entity2'),
os.path.join(builder.sourcePath, 'hl2sdk-cs2', 'game', 'server'),
os.path.join(builder.sourcePath, 'vendor', 'funchook', 'include'),
]

PROTOS = [
os.path.join(sdk['path'], 'game', 'shared', 'usermessages.proto'),
os.path.join(sdk['path'], 'common', 'network_connection.proto'),
os.path.join(sdk['path'], 'common', 'networkbasetypes.proto'),
]

# Main binary
binary = MMSPlugin.HL2Library(builder, cxx, MMSPlugin.plugin_name, sdk)

Expand Down

0 comments on commit 9ea6433

Please sign in to comment.