aboutsummaryrefslogtreecommitdiff
path: root/tests/pkg/1/build2.org/common/libhello-1.0.0+1/hello
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-04-14 17:59:24 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2016-05-04 20:47:45 +0300
commitb13332c991ce2695626eaca367dd8208b174c9ca (patch)
tree809dc321b47d5ef9c72935637f94bf5b84ed640d /tests/pkg/1/build2.org/common/libhello-1.0.0+1/hello
parentc9831f760a83e36a3a2ac84b1bd3f573e47ef195 (diff)
Add support for repository authentication
Diffstat (limited to 'tests/pkg/1/build2.org/common/libhello-1.0.0+1/hello')
-rw-r--r--tests/pkg/1/build2.org/common/libhello-1.0.0+1/hello/buildfile8
-rw-r--r--tests/pkg/1/build2.org/common/libhello-1.0.0+1/hello/hello11
-rw-r--r--tests/pkg/1/build2.org/common/libhello-1.0.0+1/hello/hello.cxx16
3 files changed, 35 insertions, 0 deletions
diff --git a/tests/pkg/1/build2.org/common/libhello-1.0.0+1/hello/buildfile b/tests/pkg/1/build2.org/common/libhello-1.0.0+1/hello/buildfile
new file mode 100644
index 0000000..4903a33
--- /dev/null
+++ b/tests/pkg/1/build2.org/common/libhello-1.0.0+1/hello/buildfile
@@ -0,0 +1,8 @@
+lib{hello}: {hxx cxx}{hello}
+
+cxx.poptions += -I$src_root
+lib{hello}: cxx.export.poptions = -I$src_root
+
+# Install into the hello/ subdirectory of, say, /usr/include/.
+#
+install.include = $install.include/hello
diff --git a/tests/pkg/1/build2.org/common/libhello-1.0.0+1/hello/hello b/tests/pkg/1/build2.org/common/libhello-1.0.0+1/hello/hello
new file mode 100644
index 0000000..4f85114
--- /dev/null
+++ b/tests/pkg/1/build2.org/common/libhello-1.0.0+1/hello/hello
@@ -0,0 +1,11 @@
+// file: hello/hello -*- C++ -*-
+
+#pragma once
+
+#include <string>
+
+namespace hello
+{
+ void
+ say (const std::string& name);
+}
diff --git a/tests/pkg/1/build2.org/common/libhello-1.0.0+1/hello/hello.cxx b/tests/pkg/1/build2.org/common/libhello-1.0.0+1/hello/hello.cxx
new file mode 100644
index 0000000..65d0aa7
--- /dev/null
+++ b/tests/pkg/1/build2.org/common/libhello-1.0.0+1/hello/hello.cxx
@@ -0,0 +1,16 @@
+// file: hello/hello.cxx -*- C++ -*-
+
+#include <hello/hello>
+
+#include <iostream>
+
+using namespace std;
+
+namespace hello
+{
+ void
+ say (const string& n)
+ {
+ cout << "Hello, " << n << '!' << endl;
+ }
+}