sm-ext-sourcetvmanager/AMBuilder

36 lines
1.0 KiB
Plaintext
Raw Normal View History

# vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
import os, sys
projectName = 'sourcetvmanager'
# smsdk_ext.cpp will be automatically added later
sourceFiles = [
'extension.cpp',
'natives.cpp',
'forwards.cpp'
]
###############
# Make sure to edit PackageScript, which copies your files to their appropriate locations
# Simple extensions do not need to modify past this point.
project = Extension.HL2Project(builder, projectName + '.ext')
if os.path.isfile(os.path.join(builder.currentSourcePath, 'sdk', 'smsdk_ext.cpp')):
# Use the copy included in the project
project.sources += [os.path.join('sdk', 'smsdk_ext.cpp')]
else:
# Use the copy included with SM 1.6 and newer
project.sources += [os.path.join(Extension.sm_root, 'public', 'smsdk_ext.cpp')]
project.sources += sourceFiles
2016-02-29 14:55:23 +01:00
for sdk_name in ['css', 'csgo']:
if sdk_name not in Extension.sdks:
continue
sdk = Extension.sdks[sdk_name]
binary = Extension.HL2Config(project, projectName + '.ext.' + sdk.ext, sdk)
Extension.extensions = builder.Add(project)