diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2020-12-18 18:48:46 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2021-01-13 22:32:43 +0300 |
commit | 2615896faa646e5830abf2c269150e1165c66515 (patch) | |
tree | 7d95978ec0a83094c9462ed4e1f59d42f4ff8ddb /libxsd/libxsd/buildfile | |
parent | 7420f85ea19b0562ffdd8123442f32bc8bac1267 (diff) |
Switch to build2
Diffstat (limited to 'libxsd/libxsd/buildfile')
-rw-r--r-- | libxsd/libxsd/buildfile | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/libxsd/libxsd/buildfile b/libxsd/libxsd/buildfile new file mode 100644 index 0000000..1549f19 --- /dev/null +++ b/libxsd/libxsd/buildfile @@ -0,0 +1,38 @@ +# file : libxsd/buildfile +# license : GNU GPL v2 + exceptions; see accompanying LICENSE file + +import int_libs = libxerces-c%lib{xerces-c} +import int_libs += libexpat%lib{expat} + +lib{xsd}: cxx/{hxx ixx txx}{** -version} cxx/{hxx}{version} $int_libs + +# Include the generated version header into the distribution (so that we don't +# pick up an installed one) and don't remove it when cleaning in src (so that +# clean results in a state identical to distributed). +# +cxx/ +{ + hxx{version}: in{version} $src_root/manifest + hxx{version}: + { + dist = true + clean = ($src_root != $out_root) + } +} + +# Export options. +# +lib{xsd}: +{ + cxx.export.poptions = "-I$out_root" "-I$src_root" + cxx.export.libs = $int_libs +} + +# Install into the libxsd/ subdirectory of, say, /usr/include/ recreating +# subdirectories. +# +{hxx ixx txx}{*}: +{ + install = include/libxsd/ + install.subdirs = true +} |