diff options
Diffstat (limited to 'build')
-rw-r--r-- | build/export.build | 34 |
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 + } } |