Modernize Sample Extensions's AMBuildScript (#2107)

* Modernize Build Scripts

* Fix: Missing dot at extension file name.

Reported by @FortyTwoFortyTwo

* Clean Up: Removed unused variable

* Copying No Longer Needed

Copying the HL2SDK manifest is no longer needed.
Requires latest AMBuild.

* Allow Using Manifests From Project Folder

Check if the manifest already exists in the project folder. If not, then search in the path specified by --hl2sdk-manifest-path.

* Requested Changes by Kenzzer

* Fix Differences Between SDK/No SDK
This commit is contained in:
caxanga334
2024-10-25 18:58:31 +02:00
committed by GitHub
parent 8acb60947c
commit 600f493e69
9 changed files with 388 additions and 370 deletions
+9 -1
View File
@@ -13,6 +13,11 @@ folder_list = [
#'addons/sourcemod/configs',
]
if 'x86_64' in Extension.target_archs:
folder_list.extend([
'addons/sourcemod/extensions/x64',
])
# Create the distribution folder hierarchy.
folder_map = {}
for folder in folder_list:
@@ -49,4 +54,7 @@ def CopyFiles(src, dest, files):
# Copy binaries.
for cxx_task in Extension.extensions:
builder.AddCopy(cxx_task.binary, folder_map['addons/sourcemod/extensions'])
if cxx_task.target.arch == 'x86_64':
builder.AddCopy(cxx_task.binary, folder_map['addons/sourcemod/extensions/x64'])
else:
builder.AddCopy(cxx_task.binary, folder_map['addons/sourcemod/extensions'])