Update AMBuilder
This commit is contained in:
@@ -6,13 +6,17 @@ projectName = 'socket'
|
|||||||
# smsdk_ext.cpp will be automatically added later
|
# smsdk_ext.cpp will be automatically added later
|
||||||
sourceFiles = [
|
sourceFiles = [
|
||||||
'Extension.cpp',
|
'Extension.cpp',
|
||||||
|
'Callback.cpp',
|
||||||
|
'CallbackHandler.cpp',
|
||||||
|
'Socket.cpp',
|
||||||
|
'SocketHandler.cpp',
|
||||||
]
|
]
|
||||||
|
|
||||||
###############
|
###############
|
||||||
# Make sure to edit PackageScript, which copies your files to their appropriate locations
|
# Make sure to edit PackageScript, which copies your files to their appropriate locations
|
||||||
# Simple extensions do not need to modify past this point.
|
# Simple extensions do not need to modify past this point.
|
||||||
|
|
||||||
project = Extension.HL2Project(builder, projectName + '.ext')
|
project = Extension.Library(builder, projectName + '.ext')
|
||||||
|
|
||||||
if os.path.isfile(os.path.join(builder.currentSourcePath, 'sdk', 'smsdk_ext.cpp')):
|
if os.path.isfile(os.path.join(builder.currentSourcePath, 'sdk', 'smsdk_ext.cpp')):
|
||||||
# Use the copy included in the project
|
# Use the copy included in the project
|
||||||
@@ -23,9 +27,4 @@ else:
|
|||||||
|
|
||||||
project.sources += sourceFiles
|
project.sources += sourceFiles
|
||||||
|
|
||||||
for sdk_name in Extension.sdks:
|
Extension.extensions = [builder.Add(project)]
|
||||||
sdk = Extension.sdks[sdk_name]
|
|
||||||
|
|
||||||
binary = Extension.HL2Config(project, projectName + '.ext.' + sdk.ext, sdk)
|
|
||||||
|
|
||||||
Extension.extensions = builder.Add(project)
|
|
||||||
|
|||||||
Reference in New Issue
Block a user