From 9693eae0d4fddb148bd5fd663a7a2e802d3e4666 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 28 Jul 2017 14:32:38 +0200 Subject: Use utility library to arrange unit testing --- build2/buildfile | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'build2/buildfile') diff --git a/build2/buildfile b/build2/buildfile index fc0632c..7514984 100644 --- a/build2/buildfile +++ b/build2/buildfile @@ -4,19 +4,19 @@ import libs = libbutl%lib{butl} -exe{b}: {hxx ixx txx cxx}{** -b-options -version -dummy} \ - {hxx ixx cxx}{b-options} {hxx}{version} \ - liba{b} $libs +exe{b}: cxx{b} libu{b} + +libu{b}: {hxx ixx txx cxx}{** -b -b-options -version} \ + {hxx ixx cxx}{b-options} {hxx}{version} \ + $libs + +cxx.poptions =+ "-I$out_root" "-I$src_root" +libu{b}: cxx.export.poptions = "-I$out_root" "-I$src_root" +libu{b}: cxx.export.libs = $libs hxx{version}: in{version} $src_root/file{manifest} hxx{version}: dist = true -# Fake utility library (without it code generation does not work). -# -liba{b}: {cxx}{dummy} -liba{b}: cxx.export.poptions = "-I$out_root" "-I$src_root" -liba{b}: install = false - # Pass our compiler target to be used as build2 host. # obj{b context}: cxx.poptions += -DBUILD2_HOST_TRIPLET=\"$cxx.target\" -- cgit v1.1