diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-12-19 12:55:52 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-12-19 12:55:52 -0500 |
commit | 94993816cc5da618d3bab4fa9eb145db575ba1b1 (patch) | |
tree | 41a74679e7667e8b5c563e174f4f4d82dc30df6c /tools | |
parent | 298768fb73107f1aae3f75c1fc3307e7bc1aeab2 (diff) |
move portable copyfile function into tools/autowaf.py and use it in both gtk2_ardour and taglib
Diffstat (limited to 'tools')
-rw-r--r-- | tools/autowaf.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/autowaf.py b/tools/autowaf.py index 46c563519f..7d4da7b061 100644 --- a/tools/autowaf.py +++ b/tools/autowaf.py @@ -10,6 +10,7 @@ import glob import os import subprocess import sys +import shutil from waflib import Configure, Context, Logs, Node, Options, Task, Utils from waflib.TaskGen import feature, before, after @@ -91,6 +92,12 @@ def set_options(opt, debug_by_default=False): help="LV2 bundles [Default: LIBDIR/lv2]") g_step = 1 +def copyfile (task): + # a cross-platform utility for copying files as part of tasks + src = task.inputs[0].abspath() + tgt = task.outputs[0].abspath() + shutil.copy2 (src, tgt) + def check_header(conf, lang, name, define='', mandatory=True): "Check for a header" includes = '' # search default system include paths |