Uh oh!
There was an error while loading. Please reload this page.
forked from cuihenggang/geeps
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSConstruct
More file actions
Latest commit
24 lines (18 loc) · 850 Bytes
/
Copy pathSConstruct
File metadata and controls
24 lines (18 loc) · 850 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
# Copyright (C) 2013 by Carnegie Mellon University.
importos
env=DefaultEnvironment()
env['build_debug'] =ARGUMENTS.get('debug', '0')
build_variants=COMMAND_LINE_TARGETS
iflen(build_variants) ==0:
build_variants= ['build']
# Make a phony target to time stamp the last build success
defPhonyTarget(target, source, action):
env.Append(BUILDERS= { 'phony' : Builder(action=action) })
AlwaysBuild(env.phony(target=target, source=source))
defwrite_build_info(target, source, env):
build_options='scons build=%s'%env['build_debug']
os.system('echo %s > build/last-build-info'%build_options)
os.system('date >> build/last-build-info')
if'build'inbuild_variants:
builds=SConscript('SConscript', variant_dir='build', duplicate=1)
PhonyTarget('build/write-build-info', builds, write_build_info)