From d7ed5335b90175300349669fd102c4d44b05c381 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 29 Jul 2020 23:11:56 +0300 Subject: Add implementation --- libexpat/build/.gitignore | 3 +++ libexpat/build/bootstrap.build | 27 +++++++++++++++++++++++++++ libexpat/build/export.build | 9 +++++++++ libexpat/build/root.build | 13 +++++++++++++ 4 files changed, 52 insertions(+) create mode 100644 libexpat/build/.gitignore create mode 100644 libexpat/build/bootstrap.build create mode 100644 libexpat/build/export.build create mode 100644 libexpat/build/root.build (limited to 'libexpat/build') diff --git a/libexpat/build/.gitignore b/libexpat/build/.gitignore new file mode 100644 index 0000000..4a730a3 --- /dev/null +++ b/libexpat/build/.gitignore @@ -0,0 +1,3 @@ +config.build +root/ +bootstrap/ diff --git a/libexpat/build/bootstrap.build b/libexpat/build/bootstrap.build new file mode 100644 index 0000000..eb0c50f --- /dev/null +++ b/libexpat/build/bootstrap.build @@ -0,0 +1,27 @@ +# file : build/bootstrap.build +# license : MIT; see accompanying COPYING file + +project = libexpat + +using version +using config +using dist +using test +using install + +# The Expat version has the .. form and follows the +# semver semantics, according to the documentation in expat/lib/expat.h. +# +# The ABI version doesn't correlate with the release version and is assigned +# via the libtool's -version-info :: option +# (LIBCURRENT, LIBREVISION, and LIBAGE in expat/configure.ac). As it follows +# from the comment in expat/configure.ac, the major version (current - age) is +# incremented for backwards-incompatible ABI changes. +# +if ($version.major == 2 && $version.minor == 2 && $version.patch == 9) +{ + abi_version_major = 1 + abi_version = "$abi_version_major.6.11" # .. +} +else + fail 'increment the ABI version?' diff --git a/libexpat/build/export.build b/libexpat/build/export.build new file mode 100644 index 0000000..f1302a1 --- /dev/null +++ b/libexpat/build/export.build @@ -0,0 +1,9 @@ +# file : build/export.build +# license : MIT; see accompanying COPYING file + +$out_root/ +{ + include libexpat/ +} + +export $out_root/libexpat/lib{expat} diff --git a/libexpat/build/root.build b/libexpat/build/root.build new file mode 100644 index 0000000..070d5ec --- /dev/null +++ b/libexpat/build/root.build @@ -0,0 +1,13 @@ +# file : build/root.build +# license : MIT; see accompanying COPYING file + +using c + +h{*}: extension = h +c{*}: extension = c + +if ($c.target.system == 'win32-msvc') + c.poptions += -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS + +if ($c.class == 'msvc') + c.coptions += /wd4251 /wd4275 /wd4800 -- cgit v1.1