ref: 2d64a24e5bbe1f921a76d5c57421e37ece6745bb
parent: 6b84d815b7333e98b3b23ac0b80b9bd40648b93b
author: Paul Brossier <piem@piem.org>
date: Wed Dec 12 20:21:24 EST 2018
[waf] avoid warnings about build dir traversal
--- a/wscript
+++ b/wscript
@@ -555,9 +555,10 @@
+ bld.path.find_dir('src').ant_glob('**/*.h'),
target = bld.path.find_or_declare('api/index.html'),
cwd = bld.path.find_dir('doc'))
+ # evaluate nodes lazily to prevent build directory traversal warnings
bld.install_files('${DATAROOTDIR}/doc/libaubio-doc/api',
- bld.path.find_or_declare('api').ant_glob('**/*'),
- cwd=bld.path.find_or_declare('api'),
+ bld.path.find_or_declare('api').ant_glob('**/*',
+ generator=True), cwd=bld.path.find_or_declare('api'),
relative_trick=True)
def sphinx(bld):
@@ -579,9 +580,10 @@
cwd = bld.path.find_dir('doc'),
source = bld.path.find_dir('doc').ant_glob('*.rst'),
target = bld.path.find_or_declare('manual/index.html'))
+ # evaluate nodes lazily to prevent build directory traversal warnings
bld.install_files('${DATAROOTDIR}/doc/libaubio-doc/manual',
- bld.path.find_or_declare('manual').ant_glob('**/*'),
- cwd=bld.path.find_or_declare('manual'),
+ bld.path.find_or_declare('manual').ant_glob('**/*',
+ generator=True), cwd=bld.path.find_or_declare('manual'),
relative_trick=True)
# register the previous rules as build rules