summaryrefslogtreecommitdiff
path: root/examples/build
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 /examples/build
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 'examples/build')
-rw-r--r--examples/build/.gitignore3
-rw-r--r--examples/build/bootstrap.build8
-rw-r--r--examples/build/root.build36
3 files changed, 0 insertions, 47 deletions
diff --git a/examples/build/.gitignore b/examples/build/.gitignore
deleted file mode 100644
index 4a730a3..0000000
--- a/examples/build/.gitignore
+++ /dev/null
@@ -1,3 +0,0 @@
-config.build
-root/
-bootstrap/
diff --git a/examples/build/bootstrap.build b/examples/build/bootstrap.build
deleted file mode 100644
index 78d91f7..0000000
--- a/examples/build/bootstrap.build
+++ /dev/null
@@ -1,8 +0,0 @@
-# file : examples/build/bootstrap.build
-# license : MIT; see accompanying LICENSE file
-
-project = # Unnamed subproject.
-
-using config
-using dist
-using test
diff --git a/examples/build/root.build b/examples/build/root.build
deleted file mode 100644
index 5f08770..0000000
--- a/examples/build/root.build
+++ /dev/null
@@ -1,36 +0,0 @@
-# file : examples/build/root.build
-# license : MIT; see accompanying LICENSE file
-
-cxx.std = latest
-
-using cxx
-
-hxx{*}: extension = hxx
-ixx{*}: extension = ixx
-txx{*}: extension = txx
-cxx{*}: extension = cxx
-
-if ($cxx.target.system == 'win32-msvc')
- cxx.poptions += -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS
-
-if ($cxx.class == 'msvc')
- cxx.coptions += /wd4251 /wd4275 /wd4800
-
-# Load cli module. It must be available from the system or from the base
-# project. Generating files with cli is a part of the examples, so distributing
-# pre-generated files would be meaningless.
-#
-# @@ How to initialize the module to use a base project cli executable by
-# default (if present and not configured to use another one)? Should it be
-# assignment like 'config.cli = $out_root/../cli/cli' prior 'using config'
-# in bootstrap.build, but what if it doesn't exist?
-#
-using cli
-
-# Every exe{} in this subproject is by default a test.
-#
-exe{*}: test = true
-
-# Specify the test target for cross-testing.
-#
-test.target = $cxx.target