summaryrefslogtreecommitdiff
path: root/hello0
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-06-19 18:26:34 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-06-19 18:26:34 +0300
commit60b5be3c72aaa4df1936b62ed4704b3d5abd2247 (patch)
treededf4c56e6209bb58671a1f0b2a2cc10f4f7d31d /hello0
parent86f4323dcc2b0145f6ff661bcf572ea2038af3d0 (diff)
Move project into intermediate sub-directory
Diffstat (limited to 'hello0')
-rw-r--r--hello0/.gitignore16
-rw-r--r--hello0/README0
-rw-r--r--hello0/build/.gitignore1
-rw-r--r--hello0/build/bootstrap.build7
-rw-r--r--hello0/build/root.build9
-rw-r--r--hello0/buildfile4
-rw-r--r--hello0/hello.cxx14
-rw-r--r--hello0/manifest11
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-