summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Nagy <tnagy2pow10@gmail.com>2015-02-26 23:32:47 +0100
committerThomas Nagy <tnagy2pow10@gmail.com>2015-02-26 23:32:47 +0100
commitf09def456d08db51052f9148197a8830a61fdeca (patch)
tree856855fd34893fe93651aa598e17189ae4eea11d
parent5818dc4ed5a0bcdc3d2d4fdc5007b6fe94044aca (diff)
Copy files without 'cp' in the build so that it works on Windows
-rw-r--r--rtems_waf/waf.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/rtems_waf/waf.py b/rtems_waf/waf.py
index 9f8a1112db..a116eb6fe5 100644
--- a/rtems_waf/waf.py
+++ b/rtems_waf/waf.py
@@ -101,12 +101,13 @@ def rtems_program(ctx, target_name, source, **kwarg):
@conf
def copy(ctx, source, target, name):
- ctx(
- rule='cp ${SRC} ${TGT}', # XXX: Make something that works on windows.
- source=source,
- target=target,
- name=name
- )
+ ctx(
+ features = 'subst',
+ source = source,
+ target = target,
+ is_copy = True,
+ name = name,
+ )
@conf
def copy_or_subst(ctx, source, target, name):