summaryrefslogtreecommitdiff
path: root/tools/autowaf.py
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2014-01-10 17:11:10 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2014-01-10 17:11:10 -0500
commit658bb3ccd43658de18fbd43cd91a8e66650e27a7 (patch)
tree6a64705a20919b8d53b73601d0c3b4f4df6f5b15 /tools/autowaf.py
parent3020b224fa2d6e1b6b8a576e8e8e211e0585f2a2 (diff)
parentb1231696caa7d08c80055ca59b18f4b634dc47cf (diff)
finished merge of cairocanvas with windows and windows+cc branches
Diffstat (limited to 'tools/autowaf.py')
-rw-r--r--tools/autowaf.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/autowaf.py b/tools/autowaf.py
index 87e19d5aea..e97c555362 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