-
Notifications
You must be signed in to change notification settings - Fork 3
/
README
35 lines (27 loc) · 1.16 KB
/
README
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
########################################################################
## ohWafHelpers
########################################################################
This collection of Python modules is for optional use by projects
that employ Waf as their build system. It contains common classes
and functions in an effort to minimise source code duplication.
Any project wishing to use this functionality needs to declare
a dependency on ohWafHelpers and resolve it by running the "go fetch"
utility, e.g. in projectdata/dependencies.json:
{ "name": "ohWafHelpers",
"type": "openhome",
"platform-specific": false,
"version": "0.0.17",
"archive-filename": "${name}-${version}.tar.gz"
}
The project needs to add the following Python snipppet near the top
of its top-level wscript file:
# Python system libraries, e.g.
import glob
# Waf libraries, e.g.
import waflib
# --8<----
import os.path, sys
sys.path[0:0] = [os.path.join('dependencies', 'AnyPlatform', 'ohWafHelpers')]
# ---->8--
# functionality factored out into ohWafHelper, e.g.
from filetasks import gather_files, build_tree, copy_task