diff options
author | yuuko <yuuko@partyvan.io> | 2024-08-25 14:26:48 -0700 |
---|---|---|
committer | yuuko <yuuko@partyvan.io> | 2024-08-25 14:37:35 -0700 |
commit | 2b2802fc59798480872b9e03b5c2187394c6fbc6 (patch) | |
tree | de16f41d1e99647e27f33e7982908f4ecac8efce /PackageScript | |
parent | a5b0ca64d425610ba3a6c51d1ccfe3983ab09dd1 (diff) |
treewide: nuke vendoring, make -> ambuild
“GOODBYE DIRT” -derek bum
Diffstat (limited to 'PackageScript')
-rw-r--r-- | PackageScript | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/PackageScript b/PackageScript new file mode 100644 index 0000000..c12b276 --- /dev/null +++ b/PackageScript @@ -0,0 +1,19 @@ +import os + +builder.SetBuildFolder('package') + +dir_map = {dir: builder.AddFolder(os.path.normpath(dir)) for dir in [ + 'addons/sourcemod/extensions', + 'addons/sourcemod/scripting', + 'addons/sourcemod/scripting/include', +]} + +def CopyFile(src, dst): + builder.AddCopy(os.path.join(builder.sourcePath, src), dir_map[dst]) + +CopyFile('pawn/scripting/curl_self_test.sp', 'addons/sourcemod/scripting') +CopyFile('pawn/scripting/include/cURL.inc', 'addons/sourcemod/scripting/include') +CopyFile('pawn/scripting/include/cURL_header.inc', 'addons/sourcemod/scripting/include') + +for cxx_task in Extension.extensions: + builder.AddCopy(cxx_task.binary, dir_map['addons/sourcemod/extensions']) |