summaryrefslogtreecommitdiff
path: root/odb/buildfile
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-06-11 11:36:07 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-06-11 15:57:30 +0300
commit1ca3ce471906f08d23f9163cdb8da884175ed331 (patch)
treea273bc264e6ee982b6d8d6cb31b85568d462b348 /odb/buildfile
parentad26234a4313096a018bdbe162cff4d6440ba484 (diff)
Add metadata
Diffstat (limited to 'odb/buildfile')
-rw-r--r--odb/buildfile10
1 files changed, 10 insertions, 0 deletions
diff --git a/odb/buildfile b/odb/buildfile
index 8c8d458..8e931ad 100644
--- a/odb/buildfile
+++ b/odb/buildfile
@@ -65,6 +65,16 @@ exe{odb}: cxx{odb}
exe{odb}: libus{odb}: bin.whole = false
exe{odb}: plugin{odb}: include = adhoc
+# Target metadata, see also --build2-metadata in odb.cxx.
+#
+exe{odb}:
+{
+ export.metadata = 1 odb
+ odb.name = [string] odb
+ odb.version = $version
+ odb.checksum = $version
+}
+
plugin{odb}: libus{odb}
switch $cxx.target.system