aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/buildfile
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-07-08 14:55:35 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-07-24 13:53:25 +0200
commit83bb02cada0b894d9134cc5489999e0f0fe8bd7c (patch)
tree1dedff27ce2b7d54bd6b0875c9125f4dafde2e80 /libbuild2/buildfile
parent1ba934bb973c234b68751ee5866365c14da4e795 (diff)
Move in build system module to separate library
Diffstat (limited to 'libbuild2/buildfile')
-rw-r--r--libbuild2/buildfile26
1 files changed, 17 insertions, 9 deletions
diff --git a/libbuild2/buildfile b/libbuild2/buildfile
index f23f023..edabfc3 100644
--- a/libbuild2/buildfile
+++ b/libbuild2/buildfile
@@ -2,17 +2,21 @@
# copyright : Copyright (c) 2014-2019 Code Synthesis Ltd
# license : MIT; see accompanying LICENSE file
+./: lib{build2} in/
+
import int_libs = libbutl%lib{butl}
-# The config, test, install, and dist are "core modules" that come bundled
-# with libbuild2. Note that the core can still function without them or with
-# their alternative implementations.
+lib{build2}: libul{build2}: {hxx ixx txx cxx}{* -config -version -*.test...} \
+ {hxx}{config version}
+
+# These are "core modules" that come bundled with libbuild2 (see also unit
+# tests loop below). Note that the build system core can still function
+# without them or with their alternative implementations.
#
-./: lib{build2}: libul{build2}: {hxx ixx txx cxx}{** -config \
- -version \
- -**.test...} \
- {hxx}{config version} \
- $int_libs
+for m: config dist install test
+ libul{build2}: $m/{hxx ixx txx cxx}{** -**.test...}
+
+libul{build2}: $int_libs
# Include the generated config and version headers into the distribution (so
# that we don't pick up installed ones) and don't remove them when cleaning in
@@ -35,7 +39,11 @@ exe{*.test}:
install = false
}
-for t: cxx{**.test...}
+for t: cxx{ *.test...} \
+ config/cxx{**.test...} \
+ dist/cxx{**.test...} \
+ install/cxx{**.test...} \
+ test/cxx{**.test...}
{
d = $directory($t)
n = $name($t)...