23 lines
571 B
Python
23 lines
571 B
Python
# vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
|
|
import os, sys
|
|
|
|
projectname = 'connect'
|
|
|
|
project = builder.LibraryProject(projectname + '.ext')
|
|
project.sources = [
|
|
'extension.cpp',
|
|
'asm/asm.c',
|
|
'CDetour/detours.cpp',
|
|
'sdk/smsdk_ext.cpp'
|
|
]
|
|
|
|
for sdk_name in Extension.sdks:
|
|
sdk = Extension.sdks[sdk_name]
|
|
|
|
for cxx in builder.targets:
|
|
if not cxx.target.arch in sdk.platformSpec[cxx.target.platform]:
|
|
continue
|
|
|
|
binary = Extension.HL2ExtConfig(project, builder, cxx, projectname + '.ext.' + sdk.ext, sdk)
|
|
|
|
Extension.extensions = builder.Add(project) |