diff options
author | David Robillard <d@drobilla.net> | 2019-04-14 18:03:16 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-04-14 18:24:08 +0200 |
commit | 7887266eaf79f020dae2dd0126dbf732e167a751 (patch) | |
tree | 3a22565bc33f5b15c191d8585bc84599836c33f7 /waflib/extras/buildcopy.py | |
parent | ee834a83860e614d565f5bb38cdfb8681ffa5f16 (diff) | |
parent | 4806680e7b17a83c14ea2b64c8ab6277a8b380b1 (diff) | |
download | pugl-7887266eaf79f020dae2dd0126dbf732e167a751.tar.gz pugl-7887266eaf79f020dae2dd0126dbf732e167a751.tar.bz2 pugl-7887266eaf79f020dae2dd0126dbf732e167a751.zip |
Update autowaf
Diffstat (limited to 'waflib/extras/buildcopy.py')
-rw-r--r-- | waflib/extras/buildcopy.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/waflib/extras/buildcopy.py b/waflib/extras/buildcopy.py index a6d9ac8..eaff7e6 100644 --- a/waflib/extras/buildcopy.py +++ b/waflib/extras/buildcopy.py @@ -22,7 +22,7 @@ Examples:: """ import os, shutil -from waflib import Errors, Task, TaskGen, Utils, Node +from waflib import Errors, Task, TaskGen, Utils, Node, Logs @TaskGen.before_method('process_source') @TaskGen.feature('buildcopy') @@ -58,10 +58,13 @@ def make_buildcopy(self): raise Errors.WafError('buildcopy: File not found in src: %s'%os.path.join(*lst)) nodes = [ to_src_nodes(n) for n in getattr(self, 'buildcopy_source', getattr(self, 'source', [])) ] + if not nodes: + Logs.warn('buildcopy: No source files provided to buildcopy in %s (set `buildcopy_source` or `source`)', + self) + return node_pairs = [(n, n.get_bld()) for n in nodes] self.create_task('buildcopy', [n[0] for n in node_pairs], [n[1] for n in node_pairs], node_pairs=node_pairs) - class buildcopy(Task.Task): """ Copy for each pair `n` in `node_pairs`: n[0] -> n[1]. |