f.close()
return color_scheme
-def copyfile (task):
- src = task.inputs[0].abspath()
- tgt = task.outputs[0].abspath()
- shutil.copy2 (src, tgt)
-
def build(bld):
VERSION = "%s.%s" % (bld.env['MAJOR'], bld.env['MINOR'])
obj.install_path = None
set_subst_dict(obj, light_rc_subst_dict)
- obj = bld(rule = copyfile)
+ obj = bld(rule = autowaf.copyfile)
obj.source = [ 'ardour3_widget_list.rc' ]
obj.target = 'ardour3_widgets.rc'
obj.install_path = None
for h in headers:
tgt = bld.path.get_bld().make_node (os.path.join ('taglib', os.path.basename (h)))
if not os.path.exists (tgt.bldpath()):
- bld (rule = "cp ${SRC} ${TGT}",
+ bld (rule = autowaf.copyfile,
source = bld.path.make_node (os.path.join ('taglib', h)),
target = tgt)
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
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