From 60b5be3c72aaa4df1936b62ed4704b3d5abd2247 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 19 Jun 2017 18:26:34 +0300 Subject: Move project into intermediate sub-directory --- hello0/.gitignore | 16 ++++++++++++++++ hello0/README | 0 hello0/build/.gitignore | 1 + hello0/build/bootstrap.build | 7 +++++++ hello0/build/root.build | 9 +++++++++ hello0/buildfile | 4 ++++ hello0/hello.cxx | 14 ++++++++++++++ hello0/manifest | 11 +++++++++++ 8 files changed, 62 insertions(+) create mode 100644 hello0/.gitignore create mode 100644 hello0/README create mode 100644 hello0/build/.gitignore create mode 100644 hello0/build/bootstrap.build create mode 100644 hello0/build/root.build create mode 100644 hello0/buildfile create mode 100644 hello0/hello.cxx create mode 100644 hello0/manifest (limited to 'hello0') diff --git a/hello0/.gitignore b/hello0/.gitignore new file mode 100644 index 0000000..878cf3c --- /dev/null +++ b/hello0/.gitignore @@ -0,0 +1,16 @@ +# Compiler/linker output. +# +*.d +*.ii +*.o +*.obj +*.so +*.dll +*.a +*.lib +*.exp +*.exe +*.exe.dlls/ +*.exe.manifest + +hello diff --git a/hello0/README b/hello0/README new file mode 100644 index 0000000..e69de29 diff --git a/hello0/build/.gitignore b/hello0/build/.gitignore new file mode 100644 index 0000000..225c27f --- /dev/null +++ b/hello0/build/.gitignore @@ -0,0 +1 @@ +config.build diff --git a/hello0/build/bootstrap.build b/hello0/build/bootstrap.build new file mode 100644 index 0000000..4135f57 --- /dev/null +++ b/hello0/build/bootstrap.build @@ -0,0 +1,7 @@ +project = hello0 + +using version +using config +using dist +using test +using install diff --git a/hello0/build/root.build b/hello0/build/root.build new file mode 100644 index 0000000..7c65dab --- /dev/null +++ b/hello0/build/root.build @@ -0,0 +1,9 @@ +cxx.std = 11 + +using cxx + +cxx{*}: extension = cxx + +# Specify the test target for cross-testing. +# +test.target = $cxx.target diff --git a/hello0/buildfile b/hello0/buildfile new file mode 100644 index 0000000..6bdabe2 --- /dev/null +++ b/hello0/buildfile @@ -0,0 +1,4 @@ +./: exe{hello} doc{README} file{manifest} + +exe{hello}: cxx{hello} +exe{hello}: test.arguments = World diff --git a/hello0/hello.cxx b/hello0/hello.cxx new file mode 100644 index 0000000..fad8a40 --- /dev/null +++ b/hello0/hello.cxx @@ -0,0 +1,14 @@ +#include + +using namespace std; + +int main (int argc, char* argv[]) +{ + if (argc != 2) + { + cerr << "usage: " << argv[0] << " " << endl; + return 1; + } + + cout << "Hello, " << argv[1] << "!" << endl; +} diff --git a/hello0/manifest b/hello0/manifest new file mode 100644 index 0000000..f40b09e --- /dev/null +++ b/hello0/manifest @@ -0,0 +1,11 @@ +: 1 +name: hello0 +version: 1.0.0 +summary: Zero-dependencies "Hello World" program +license: public-domain +url: http://example.org/hello0 +email: hello0@example.org +build-email: builds@build2.org +requires: c++11 +depends: * build2 >= 0.5.0- +depends: * bpkg >= 0.5.0- -- cgit v1.1