Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6f0c5c022a | ||
|
|
d8935c7961 |
+15
-10
@@ -5,21 +5,26 @@ projectName = 'sendsnapshotfixer'
|
|||||||
|
|
||||||
project = builder.LibraryProject(projectName)
|
project = builder.LibraryProject(projectName)
|
||||||
project.sources += [
|
project.sources += [
|
||||||
os.path.join(Extension.ext_root, 'src', 'extension.cpp'),
|
os.path.join(Extension.ext_root, 'src', 'extension.cpp'),
|
||||||
os.path.join(Extension.sm_root, 'public', 'smsdk_ext.cpp')
|
os.path.join(Extension.sm_root, 'public', 'smsdk_ext.cpp')
|
||||||
]
|
]
|
||||||
|
|
||||||
for sdk_name in Extension.sdks:
|
for sdk_name in Extension.sdks:
|
||||||
sdk = Extension.sdks[sdk_name]
|
sdk = Extension.sdks[sdk_name]
|
||||||
if sdk['name'] in ['mock']:
|
if sdk['name'] in ['mock']:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
for cxx in builder.targets:
|
for cxx in builder.targets:
|
||||||
if not cxx.target.arch in sdk['platforms'][cxx.target.platform]:
|
if not cxx.target.arch in sdk['platforms'][cxx.target.platform]:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
binary = Extension.HL2ExtConfig(project, builder, cxx, projectName + '.ext.' + sdk['extension'], sdk)
|
binary = Extension.HL2ExtConfig(project, builder, cxx, projectName + '.ext.' + sdk['extension'], sdk)
|
||||||
|
|
||||||
Extension.AddCDetour(binary)
|
Extension.AddCDetour(binary)
|
||||||
|
|
||||||
|
# Silence fatal errors on unrecognized Clang warning flags from CDetour
|
||||||
|
if cxx.family in ['gcc', 'clang']:
|
||||||
|
binary.compiler.cflags += ['-Wno-unknown-warning-option']
|
||||||
|
binary.compiler.cxxflags += ['-Wno-unknown-warning-option']
|
||||||
|
|
||||||
Extension.extensions += builder.Add(project)
|
Extension.extensions += builder.Add(project)
|
||||||
|
|||||||
Reference in New Issue
Block a user