diff options
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']) |