forked from bloomberg/bde
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wscript
35 lines (24 loc) · 920 Bytes
/
wscript
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.
import os
import sys
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')
if os.path.isdir(os.path.join(libdir, 'bdebuild')):
return libdir
ctx.fatal('BDE waf customizations can not be found. '
'Make sure that you are running the waf executable located in '
'bde-oss-tools/bin.')
def options(ctx):
ctx.load('bdebuild.waf.wscript', tooldir=_get_tools_path(ctx))
def configure(ctx):
ctx.load('bdebuild.waf.wscript', tooldir=_get_tools_path(ctx))
def build(ctx):
ctx.load('bdebuild.waf.wscript', tooldir=_get_tools_path(ctx))