forked from xray-group/mstruct
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSConscript.mstruct.version
More file actions
Latest commit
26 lines (17 loc) · 720 Bytes
/
Copy pathSConscript.mstruct.version
File metadata and controls
26 lines (17 loc) · 720 Bytes
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
importos
importstring
Import('env')
defconfig_h_build(target, source, env):
config_h_defines=env.Dictionary()
fora_target, a_sourceinzip(target, source):
withopen(str(a_target), "w") asconfig_h:
withopen(str(a_source), "r") asconfig_h_in:
config_h.write(config_h_in.read() %config_h_defines)
# Targets --------------------------------------------------------------------
chpp=File('./MStruct/config.h')
# If config.h does not exists, build it
ifnotos.path.isfile(str(chpp.srcnode())):
env.Command('MStruct/config.h', 'MStruct/config.h.in', config_h_build)
env['libmstruct_includes'] += [chpp]
env['binmstruct_includes'] += [chpp]
# vim: ft=python