Update build scripts
This commit is contained in:
+10
-8
@@ -8,10 +8,14 @@ builder.SetBuildFolder('package')
|
||||
# Add any folders you need to this list
|
||||
folder_list = [
|
||||
'addons/sourcemod/extensions',
|
||||
'addons/sourcemod/include',
|
||||
'addons/sourcemod/gamedata',
|
||||
]
|
||||
|
||||
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:
|
||||
@@ -27,16 +31,14 @@ def CopyFiles(src, dest, files):
|
||||
source_path = os.path.join(builder.sourcePath, src, source_file)
|
||||
builder.AddCopy(source_path, dest_entry)
|
||||
|
||||
# Include files
|
||||
CopyFiles('include', 'addons/sourcemod/include',
|
||||
[ 'PhysHooks.inc', ]
|
||||
)
|
||||
|
||||
# GameData files
|
||||
# Gamedata
|
||||
CopyFiles('gamedata', 'addons/sourcemod/gamedata',
|
||||
[ 'PhysHooks.games.txt' ]
|
||||
)
|
||||
|
||||
# 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'])
|
||||
|
||||
Reference in New Issue
Block a user