summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-08-30 20:43:20 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2016-08-30 23:09:54 +0300
commit5769aaa5ccfca2cfa25bf898c2dd113b1504c1d6 (patch)
treee49ee79c62db12a20d618a2a75a5d8aee830b207
parent398bea3c765b031540bd17841c71825dcb7b62c7 (diff)
Build infrastructure update
-rw-r--r--.gitignore14
-rw-r--r--build/.gitignore1
-rw-r--r--build/bootstrap.build13
-rw-r--r--build/root.build4
-rw-r--r--buildfile4
-rw-r--r--hello.cxx (renamed from hello.cpp)0
-rw-r--r--manifest2
7 files changed, 32 insertions, 6 deletions
diff --git a/.gitignore b/.gitignore
index faeba53..2a1dc8f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,7 +1,15 @@
+# Compiler/linker output.
+#
+*.d
*.o
*.obj
-*.d
+*.so
+*.dll
+*.a
+*.lib
+*.exp
+*.exe
+*.exe.dlls/
+*.exe.manifest
hello
-hello.exe
-
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
index bb0cfe1..284ccd0 100644
--- a/build/bootstrap.build
+++ b/build/bootstrap.build
@@ -1,6 +1,17 @@
project = hello0
+using build@0.4.0-a1
+
+version = 1.0.0
+
+revision = 0
+
+dist.package = $project-$version
+
+if ($revision != 0)
+ dist.package += +$revision
+
using config
+using dist
using test
using install
-
diff --git a/build/root.build b/build/root.build
index 99d62c0..54a5851 100644
--- a/build/root.build
+++ b/build/root.build
@@ -1,3 +1,5 @@
+cxx.std = 11
+
using cxx
-cxx{*}: extension = cpp
+cxx{*}: extension = cxx
diff --git a/buildfile b/buildfile
index 3d0db76..d85744d 100644
--- a/buildfile
+++ b/buildfile
@@ -1,2 +1,4 @@
-exe{hello}: cxx{hello} doc{README}
+exe{hello}: cxx{hello}
exe{hello}: test.arguments = World
+
+./: exe{hello} doc{README} file{manifest}
diff --git a/hello.cpp b/hello.cxx
index fad8a40..fad8a40 100644
--- a/hello.cpp
+++ b/hello.cxx
diff --git a/manifest b/manifest
index 40b6a86..720f406 100644
--- a/manifest
+++ b/manifest
@@ -5,3 +5,5 @@ summary: Zero-dependencies "Hello World" program
license: public-domain
url: http://example.org/hello0
email: hello0@example.org
+requires: c++11
+requires: build2 >= 0.4.0