summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIlya Tumaykin <itumaykin@gmail.com>2016-05-29 20:33:30 +0300
committerwm4 <wm4@nowhere>2016-05-29 20:02:47 +0200
commitb1dd3beda9991a02b63c032faefcd4d9331f5f7c (patch)
treeb314f4138cc78c9b0a103992d5c0d2cdb4d1c62a
parent240ba92bed4e1bf083d8bae49c04a211ae848a91 (diff)
downloadmpv-b1dd3beda9991a02b63c032faefcd4d9331f5f7c.tar.bz2
mpv-b1dd3beda9991a02b63c032faefcd4d9331f5f7c.tar.xz
build: don't install tests, only build them
Considering tests are usually executed right after a successful build, there's no reason to keep them around for later.
-rw-r--r--wscript_build.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/wscript_build.py b/wscript_build.py
index 3e3ec0be6f..d4f07fbaa6 100644
--- a/wscript_build.py
+++ b/wscript_build.py
@@ -483,11 +483,12 @@ def build(ctx):
if ctx.dependency_satisfied('test'):
for test in ctx.path.ant_glob("test/*.c"):
ctx(
- target = os.path.splitext(test.srcpath())[0],
- source = test.srcpath(),
- use = ctx.dependencies_use() + ['objects'],
- includes = _all_includes(ctx),
- features = "c cprogram",
+ target = os.path.splitext(test.srcpath())[0],
+ source = test.srcpath(),
+ use = ctx.dependencies_use() + ['objects'],
+ includes = _all_includes(ctx),
+ features = "c cprogram",
+ install_path = None,
)
build_shared = ctx.dependency_satisfied('libmpv-shared')