summaryrefslogtreecommitdiff
path: root/cli/buildfile
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-04-08 14:51:57 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-04-27 11:38:53 +0300
commit720c5a33b6a49cf328fdd7611f49153cf8f60247 (patch)
tree9725f3d1f42ec90fde84520f49647edea013ce5e /cli/buildfile
parent3183f3bb927a90783ae0aeaf190a0919377aabe4 (diff)
Separate tests and examples into individual packages
Also make cli module to be explicitly enabled via the config.cli configuration variable.
Diffstat (limited to 'cli/buildfile')
-rw-r--r--cli/buildfile55
1 files changed, 5 insertions, 50 deletions
diff --git a/cli/buildfile b/cli/buildfile
index d6723d0..832328a 100644
--- a/cli/buildfile
+++ b/cli/buildfile
@@ -1,54 +1,9 @@
-# file : cli/buildfile
+# file : buildfile
# license : MIT; see accompanying LICENSE file
-import libs = libcutl%lib{cutl}
+./: {*/ -build/} doc{INSTALL LICENSE NEWS README} manifest
-exe{cli}: cxx{cli} libue{cli}
-{
- # Target metadata, see also --build2-metadata in cli.cxx.
- #
- cli.version = $version.project_id
- cli.checksum = $version
-}
-
-libue{cli}: {hxx ixx txx cxx}{** -cli -version -options} \
- {hxx}{version} {hxx ixx cxx}{options} \
- $libs
-
-hxx{version}: in{version} $src_root/manifest
-
-# Build options.
-#
-# Pass the copyright notice extracted from the LICENSE file.
-#
-copyright = $process.run_regex(cat $src_root/LICENSE, \
- 'Copyright \(c\) (.+)\.', \
- '\1')
-
-obj{cli}: cxx.poptions += -DCLI_COPYRIGHT=\"$copyright\"
-
-# Generated options parser.
+# Don't install unit tests or the INSTALL file.
#
-if $cli.configured
-{
- cli.cxx{options}: cli{options}
-
- cli.options += --include-with-brackets --include-prefix cli \
---guard-prefix CLI --generate-file-scanner --generate-specifier \
---generate-modifier --reserved-name stdout
-
- cli.cxx{*}:
- {
- # Include the generated cli files into the distribution and don't remove
- # them when cleaning in src (so that clean results in a state identical to
- # distributed).
- #
- dist = true
- clean = ($src_root != $out_root)
-
- # We keep the generated code in the repository so copy it back to src
- # in case of a forwarded configuration.
- #
- backlink = overwrite
- }
-}
+unit-tests/: install = false
+doc{INSTALL}@./: install = false