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.
This commit is contained in:
Ilya Tumaykin 2016-05-29 20:33:30 +03:00 committed by wm4
parent 240ba92bed
commit b1dd3beda9
1 changed files with 6 additions and 5 deletions

View File

@ -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')