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)