-
Notifications
You must be signed in to change notification settings - Fork 11
/
ExtensionBuilder
39 lines (33 loc) · 991 Bytes
/
ExtensionBuilder
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# vim: set ts=2 sw=2 tw=99 noet ft=python:
import os
for i in CSSDM.sdkInfo:
if i != 'css' and i != 'csgo':
continue
sdk = CSSDM.sdkInfo[i]
if AMBuild.target['platform'] not in sdk['platform']:
continue
compiler = CSSDM.DefaultHL2Compiler('.', i)
compiler['CXXINCLUDES'].append(os.path.join(AMBuild.sourceFolder, 'sdk'))
name = 'cssdm.ext.' + sdk['ext']
extension = AMBuild.AddJob(name)
binary = Cpp.LibraryBuilder(name, AMBuild, extension, compiler)
CSSDM.PreSetupHL2Job(extension, binary, i)
smsdk_ext = os.path.join(CSSDM.smSourcePath, 'public', 'smsdk_ext.cpp')
binary.AddSourceFiles('.', [
'cssdm_callbacks.cpp',
'cssdm_config.cpp',
'cssdm_ctrl.cpp',
'cssdm_detours.cpp',
'cssdm_events.cpp',
'cssdm_ffa.cpp',
'cssdm_main.cpp',
'cssdm_players.cpp',
'cssdm_utils.cpp',
'cssdm_weapons.cpp',
smsdk_ext,
'CDetour/detours.cpp',
'asm/asm.c'
])
CSSDM.PostSetupHL2Job(extension, binary, i)
CSSDM.AutoVersion('.', binary)
binary.SendToJob()