aboutsummaryrefslogtreecommitdiff
path: root/common/changelog/buildfile
diff options
context:
space:
mode:
Diffstat (limited to 'common/changelog/buildfile')
-rw-r--r--common/changelog/buildfile30
1 files changed, 30 insertions, 0 deletions
diff --git a/common/changelog/buildfile b/common/changelog/buildfile
new file mode 100644
index 0000000..04e0685
--- /dev/null
+++ b/common/changelog/buildfile
@@ -0,0 +1,30 @@
+# file : common/changelog/buildfile
+# license : GNU GPL v2; see accompanying LICENSE file
+
+import libodb = libodb%lib{odb}
+
+./: file{odb.options} xml{*} testscript
+
+# Introduce the metadata library target to make sure the libodb library is
+# resolved for the below ad hoc recipe.
+#
+libue{test-meta}: $libodb
+
+file{odb.options}: libue{test-meta}
+{{
+ pops = $cxx.lib_poptions($<[0])
+ depdb hash $pops
+
+ f = $path($>[0])
+ rm -f $f
+
+ for o: $pops
+ echo $o >+$f
+ end
+}}
+
+# Testscript's run-time prerequisites.
+#
+testscript@./: test = $odb
+
+./: $odb: clean = false