forked from bloomberg/bde
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwscript
More file actions
Latest commit
35 lines (24 loc) · 920 Bytes
/
Copy pathwscript
File metadata and controls
35 lines (24 loc) · 920 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
27
28
29
30
31
32
33
34
35
#!/usr/bin/env python
# encoding: utf-8
# Copy this file to the root directory of a BDE-style source repo to enable
# building it using the waf-based build tool.
importos
importsys
top='.'
out='build'
min_bde_tools_version="1.1"
def_get_tools_path(ctx):
waf_path=sys.argv[0]
libdir=os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(
waf_path))), 'lib', 'python')
ifos.path.isdir(os.path.join(libdir, 'bdebuild')):
returnlibdir
ctx.fatal('BDE waf customizations can not be found. '
'Make sure that you are running the waf executable located in '
'bde-oss-tools/bin.')
defoptions(ctx):
ctx.load('bdebuild.waf.wscript', tooldir=_get_tools_path(ctx))
defconfigure(ctx):
ctx.load('bdebuild.waf.wscript', tooldir=_get_tools_path(ctx))
defbuild(ctx):
ctx.load('bdebuild.waf.wscript', tooldir=_get_tools_path(ctx))