aboutsummaryrefslogtreecommitdiff
path: root/tests/repository/1/common/libhello-1.0.0/hello
diff options
context:
space:
mode:
Diffstat (limited to 'tests/repository/1/common/libhello-1.0.0/hello')
-rw-r--r--tests/repository/1/common/libhello-1.0.0/hello/buildfile8
-rw-r--r--tests/repository/1/common/libhello-1.0.0/hello/hello12
-rw-r--r--tests/repository/1/common/libhello-1.0.0/hello/hello.cxx16
3 files changed, 36 insertions, 0 deletions
diff --git a/tests/repository/1/common/libhello-1.0.0/hello/buildfile b/tests/repository/1/common/libhello-1.0.0/hello/buildfile
new file mode 100644
index 0000000..cef703d
--- /dev/null
+++ b/tests/repository/1/common/libhello-1.0.0/hello/buildfile
@@ -0,0 +1,8 @@
+lib{hello}: cxx{hello} hxx{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/hello/hello b/tests/repository/1/common/libhello-1.0.0/hello/hello
new file mode 100644
index 0000000..64c84b8
--- /dev/null
+++ b/tests/repository/1/common/libhello-1.0.0/hello/hello
@@ -0,0 +1,12 @@
+// file: hello/hello -*- C++ -*-
+
+#ifndef HELLO_HELLO
+#define HELLO_HELLO
+
+namespace hello
+{
+ void
+ say (const char* name);
+}
+
+#endif // HELLO_HELLO
diff --git a/tests/repository/1/common/libhello-1.0.0/hello/hello.cxx b/tests/repository/1/common/libhello-1.0.0/hello/hello.cxx
new file mode 100644
index 0000000..bba6649
--- /dev/null
+++ b/tests/repository/1/common/libhello-1.0.0/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 char* n)
+ {
+ cout << "Hello, " << n << '!' << endl;
+ }
+}