-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwscript
More file actions
53 lines (45 loc) · 1.49 KB
/
wscript
File metadata and controls
53 lines (45 loc) · 1.49 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/usr/bin/env python3
# encoding: utf-8
# 2023 Harald Klimach <harald.klimach@dlr.de>
APPNAME = 'ateles'
top = '.'
out = 'build'
def options(opt):
'''Building options provided by Ateles.
Remember, all options can be displayed with waf --help.'''
opt.recurse('bin')
opt.recurse('aotus')
opt.recurse('tem')
opt.recurse('atl')
def configure(conf):
'''Project configuration'''
import os
conf.recurse('aotus', 'subconf')
conf.recurse('bin', 'preconfigure')
# Use default.coco as coco settings file by default
if not conf.options.coco_set:
conf.options.coco_set = 'default.coco'
conf.recurse('tem')
conf.recurse('polynomials')
conf.recurse('atl')
conf.recurse('bin', 'postconfigure')
def build(bld):
'''Build the Ateles project'''
from revision_module import fill_revision_string
bld.recurse('bin')
fill_revision_string(bld, subdir='atl')
if not (bld.cmd == 'docu' and bld.env.fordonline):
bld.recurse('aotus')
bld.recurse('tem')
else:
bld.load('coco')
bld(rule='cp ${SRC} ${TGT}',
source = bld.path.find_node(['tem', 'source', 'arrayMacros.inc']),
target = bld.path.find_or_declare('arrayMacros.inc'))
bld.recurse('polynomials')
bld.recurse('atl')
#clean build directory and coco completely to create the build from scratch
def cleanall(ctx):
from waflib import Options
Options.commands = ['distclean'] + Options.commands
ctx.exec_command('rm coco')