aboutsummaryrefslogtreecommitdiff
path: root/tests/repository/1/common/libhello-1.0.0+1/hello
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-01-30 20:26:28 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-01-30 20:26:28 +0200
commitaf00f71ee83a06fa8bb0066b01e2565619b298ae (patch)
tree131d5e8afa6b794226d12ee215a367f3fdbb3287 /tests/repository/1/common/libhello-1.0.0+1/hello
parentae695f5fb60cee707cda75708bd17f9d82ad0388 (diff)
Update to use new libhello
Diffstat (limited to 'tests/repository/1/common/libhello-1.0.0+1/hello')
-rw-r--r--tests/repository/1/common/libhello-1.0.0+1/hello/buildfile8
-rw-r--r--tests/repository/1/common/libhello-1.0.0+1/hello/hello11
-rw-r--r--tests/repository/1/common/libhello-1.0.0+1/hello/hello.cxx16
3 files changed, 35 insertions, 0 deletions
diff --git a/tests/repository/1/common/libhello-1.0.0+1/hello/buildfile b/tests/repository/1/common/libhello-1.0.0+1/hello/buildfile
new file mode 100644
index 0000000..4903a33
--- /dev/null
+++ b/tests/repository/1/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/repository/1/common/libhello-1.0.0+1/hello/hello b/tests/repository/1/common/libhello-1.0.0+1/hello/hello
new file mode 100644
index 0000000..4f85114
--- /dev/null
+++ b/tests/repository/1/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/repository/1/common/libhello-1.0.0+1/hello/hello.cxx b/tests/repository/1/common/libhello-1.0.0+1/hello/hello.cxx
new file mode 100644
index 0000000..65d0aa7
--- /dev/null
+++ b/tests/repository/1/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;
+ }
+}