summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-01-19 13:32:30 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-01-19 13:32:30 +0200
commit627991f892f431988c6a683b1305aee5510920dd (patch)
treeabb7f8e670cce67b96d930c73f6d548b126429a6 /build
Basic "Hello World" C++ library with build2
Diffstat (limited to 'build')
-rw-r--r--build/.gitignore1
-rw-r--r--build/bootstrap.build9
-rw-r--r--build/export.build6
-rw-r--r--build/root.build10
4 files changed, 26 insertions, 0 deletions
diff --git a/build/.gitignore b/build/.gitignore
new file mode 100644
index 0000000..225c27f
--- /dev/null
+++ b/build/.gitignore
@@ -0,0 +1 @@
+config.build
diff --git a/build/bootstrap.build b/build/bootstrap.build
new file mode 100644
index 0000000..ba26f3b
--- /dev/null
+++ b/build/bootstrap.build
@@ -0,0 +1,9 @@
+project = libhello
+version = 1.0.0
+
+using config
+using dist
+using test
+using install
+
+dist.package = $project-$version
diff --git a/build/export.build b/build/export.build
new file mode 100644
index 0000000..1eb73b7
--- /dev/null
+++ b/build/export.build
@@ -0,0 +1,6 @@
+$out_root/:
+{
+ include hello/
+}
+
+export $out_root/hello/lib{hello}
diff --git a/build/root.build b/build/root.build
new file mode 100644
index 0000000..ebe16d5
--- /dev/null
+++ b/build/root.build
@@ -0,0 +1,10 @@
+using cxx
+
+hxx{*}: extension =
+cxx{*}: extension = cxx
+
+cxx.std = 11
+
+# Don't install tests.
+#
+tests/: install = false