summaryrefslogtreecommitdiff
path: root/examples/build
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-11-17 01:35:29 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2016-11-22 18:52:21 +0300
commitd52c1fb406b1cef82c5f5a28fc1804d7d99a49d8 (patch)
tree89236d3dcdf6245c75d761fde09040d9d2a56480 /examples/build
parentbe3dc4cee63da92cfa1fa44a0bf90ab11ec7aaca (diff)
Add support for build2 for tests and examples
Diffstat (limited to 'examples/build')
-rw-r--r--examples/build/.gitignore1
-rw-r--r--examples/build/bootstrap.build9
-rw-r--r--examples/build/root.build27
3 files changed, 37 insertions, 0 deletions
diff --git a/examples/build/.gitignore b/examples/build/.gitignore
new file mode 100644
index 0000000..225c27f
--- /dev/null
+++ b/examples/build/.gitignore
@@ -0,0 +1 @@
+config.build
diff --git a/examples/build/bootstrap.build b/examples/build/bootstrap.build
new file mode 100644
index 0000000..c67bb12
--- /dev/null
+++ b/examples/build/bootstrap.build
@@ -0,0 +1,9 @@
+# file : examples/build/bootstrap.build
+# copyright : Copyright (c) 2009-2013 Code Synthesis Tools CC
+# 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
new file mode 100644
index 0000000..8c33a1c
--- /dev/null
+++ b/examples/build/root.build
@@ -0,0 +1,27 @@
+# file : examples/build/root.build
+# copyright : Copyright (c) 2009-2013 Code Synthesis Tools CC
+# license : MIT; see accompanying LICENSE file
+
+cxx.std = 11
+
+using cxx
+
+hxx{*}: extension = hxx
+ixx{*}: extension = ixx
+txx{*}: extension = txx
+cxx{*}: extension = cxx
+
+# 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