diff options
Diffstat (limited to 'hello0')
-rw-r--r-- | hello0/.gitignore | 16 | ||||
-rw-r--r-- | hello0/README | 0 | ||||
-rw-r--r-- | hello0/build/.gitignore | 1 | ||||
-rw-r--r-- | hello0/build/bootstrap.build | 7 | ||||
-rw-r--r-- | hello0/build/root.build | 9 | ||||
-rw-r--r-- | hello0/buildfile | 4 | ||||
-rw-r--r-- | hello0/hello.cxx | 14 | ||||
-rw-r--r-- | hello0/manifest | 11 |
8 files changed, 62 insertions, 0 deletions
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 --- /dev/null +++ b/hello0/README 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 <iostream> + +using namespace std; + +int main (int argc, char* argv[]) +{ + if (argc != 2) + { + cerr << "usage: " << argv[0] << " <name>" << 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- |