: 1
name: libxsd
version: 4.2.0
project: xsd
type: lib,binless
language: c++
summary: XML Schema to C++ data binding compiler runtime library
license: other: GPL-2.0-only with Xerces-C++ linking exception and FLOSS exception
topics: C++, XML, XML Schema, XML parser
description-file: README.md
package-description-file: PACKAGE-README.md
changes-file: NEWS
url: https://www.codesynthesis.com/products/xsd/
doc-url: https://www.codesynthesis.com/products/xsd/
src-url: https://git.codesynthesis.com/cgit/xsd/xsd/
email: xsd-users@codesynthesis.com ; Mailing list
build-warning-email: builds@codesynthesis.com
depends: * build2 >= 0.16.0
depends: * bpkg >= 0.16.0
tests: libxsd-tests == $

# Binary distribution packages. Overall notes:
#
# - While the library itself doesn't depend on either libxerces-c of libexpat
#   directly, the tests do and it makes sense to use the system versions where
#   available. Similarly, we pass optimization options where appropriate.
#
# - Build as C++11 for maximum compatibility (this is a C++11 codebase).
#
# - For archives adjust metadata since this is a binless library.
#
# - We disable warning emails for configurations that build Xerces-C++.

bindist-debian-builds: bindist
bindist-debian-build-include: linux_debian*-**
bindist-debian-build-include: linux_ubuntu*-**
bindist-debian-build-exclude: **
bindist-debian-build-config:
\
+bpkg.bindist.debian:
+bbot.bindist.upload:
b.create:config.cxx.std=c++11
?sys:libxerces-c
?sys:libexpat
\

# Note that there is no Xerces-C++ package in RHEL (only in EPEL) so we
# have a separate configuration for RHEL.
#
bindist-fedora-builds: bindist
bindist-fedora-build-include: linux_fedora*-**
bindist-fedora-build-exclude: **
bindist-fedora-build-config:
\
+bpkg.bindist.fedora:
+bbot.bindist.upload:
b.create:config.cxx.std=c++11
?sys:libxerces-c
?sys:libexpat
\

bindist-rhel-builds: bindist
bindist-rhel-build-include: linux_rhel*-**
bindist-rhel-build-exclude: **
bindist-rhel-build-config:
\
+bpkg.bindist.fedora:
+bbot.bindist.upload:
b.create:config.cxx.std=c++11
?sys:libexpat
\
#bindist-rhel-build-error-email: builds@codesynthesis.com

bindist-windows-builds: bindist
bindist-windows-build-include: windows*-**
bindist-windows-build-exclude: **
bindist-windows-build-config:
\
+bpkg.bindist.archive:
+bbot.bindist.upload:
bpkg.bindist.archive:--archive-build-meta=windows
bpkg.bindist.archive:config.install.relocatable=true
b.create:config.cc.coptions="/W2 /O2"
b.create:config.cxx.std=c++11
\
#bindist-windows-build-error-email: builds@codesynthesis.com

bindist-macos-builds: bindist
bindist-macos-build-include: macos*-**
bindist-macos-build-exclude: **
bindist-macos-build-config:
\
+bpkg.bindist.archive:
+bbot.bindist.upload:
bpkg.bindist.archive:--archive-build-meta=macos
bpkg.bindist.archive:config.install.relocatable=true
b.create:config.cc.coptions="-Wall -O3"
b.create:config.cxx.std=c++11
\
#bindist-macos-build-error-email: builds@codesynthesis.com

# Generic linux package (built using oldest Debian we support).
#
bindist-linux-builds: bindist
bindist-linux-build-include: linux_debian_11-gcc_10.2-bindist
bindist-linux-build-exclude: **
bindist-linux-build-config:
\
+bpkg.bindist.archive:
+bbot.bindist.upload:
bpkg.bindist.archive:--archive-build-meta=linux
bpkg.bindist.archive:config.install.relocatable=true
b.create:config.cxx.std=c++11
?sys:libxerces-c
?sys:libexpat
\
