From 627991f892f431988c6a683b1305aee5510920dd Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 19 Jan 2016 13:32:30 +0200 Subject: Basic "Hello World" C++ library with build2 --- build/.gitignore | 1 + build/bootstrap.build | 9 +++++++++ build/export.build | 6 ++++++ build/root.build | 10 ++++++++++ 4 files changed, 26 insertions(+) create mode 100644 build/.gitignore create mode 100644 build/bootstrap.build create mode 100644 build/export.build create mode 100644 build/root.build (limited to 'build') 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 -- cgit v1.1