From 9ea64333569065f11e67c46f42d1d2109ec3012f Mon Sep 17 00:00:00 2001 From: "zer0.k" Date: Mon, 18 Dec 2023 15:59:54 +0700 Subject: [PATCH] Fix build script --- AMBuilder | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/AMBuilder b/AMBuilder index 6b2f71c1b..4cc4ccd32 100644 --- a/AMBuilder +++ b/AMBuilder @@ -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)