aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2024-05-06 08:45:22 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2024-05-06 09:41:51 +0200
commit2e21b218db0e979d56b7b6027854a86ad7ffc96b (patch)
treef0ebc7c223be1dd88f47cb3399e82659cda09ade /build
parenta54213a4ff48ecfa8fa3b416d12b1282158746dc (diff)
Add libbutl-pkg-config source subdirectory
This is an additional (to libbutl) utility library which contains the source code of libpkg-config configured and tuned for our needs.
Diffstat (limited to 'build')
-rw-r--r--build/export.build34
1 files changed, 24 insertions, 10 deletions
diff --git a/build/export.build b/build/export.build
index 5f921cb..e7dfa5b 100644
--- a/build/export.build
+++ b/build/export.build
@@ -1,21 +1,35 @@
# file : build/export.build
# license : MIT; see accompanying LICENSE file
-if ($name($import.target) == 'butl-odb')
+switch $name($import.target)
{
- $out_root/
+ case 'butl-odb'
{
- include libbutl-odb/
+ $out_root/
+ {
+ include libbutl-odb/
+ }
+
+ export $out_root/libbutl-odb/$import.target
}
- export $out_root/libbutl-odb/$import.target
-}
-else
-{
- $out_root/
+ case 'butl-pkg-config'
{
- include libbutl/
+ $out_root/
+ {
+ include libbutl-pkg-config/
+ }
+
+ export $out_root/libbutl-pkg-config/$import.target
}
- export $out_root/libbutl/$import.target
+ default
+ {
+ $out_root/
+ {
+ include libbutl/
+ }
+
+ export $out_root/libbutl/$import.target
+ }
}