diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-01-21 11:08:37 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-01-21 11:08:37 +0200 |
commit | eb649ff736e101e49afacb31d580741851375e69 (patch) | |
tree | c615d4aa2323c6581cff9bd17fae2204b7ed6dae /build |
Basic "Hello World" C++ program with build2
Diffstat (limited to 'build')
-rw-r--r-- | build/.gitignore | 1 | ||||
-rw-r--r-- | build/bootstrap.build | 15 | ||||
-rw-r--r-- | build/root.build | 5 |
3 files changed, 21 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..20e3dbe --- /dev/null +++ b/build/bootstrap.build @@ -0,0 +1,15 @@ +project = hello +version = 1.0.0 +revision = 0 + +using config +using dist +using test +using install + +dist.package = $project-$version + +if ($revision != 0) +{ + dist.package += +$revision +} diff --git a/build/root.build b/build/root.build new file mode 100644 index 0000000..7b1aac4 --- /dev/null +++ b/build/root.build @@ -0,0 +1,5 @@ +using cxx + +cxx{*}: extension = cxx + +cxx.std = 11 |