From 7a9ad23a9ec80a37308ab75c23c67da57287dd80 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 11 Sep 2023 15:40:02 +0300 Subject: Release version 3.2.4+1 Add support for config.libxerces_c.transcoder_icu variable Update .gitignore file --- libxerces-c/build/root.build | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) (limited to 'libxerces-c/build') diff --git a/libxerces-c/build/root.build b/libxerces-c/build/root.build index 85934ec..d61764c 100644 --- a/libxerces-c/build/root.build +++ b/libxerces-c/build/root.build @@ -1,13 +1,6 @@ # file : build/root.build # license : Apache License 2.0; see accompanying LICENSE file -# Enable network support so that the parser can download remote resources -# (schemas, DTDs, etc). -# -# If enabled, then the libcurl library is used to access network resources. -# -config [bool] config.libxerces_c.network ?= false - # We rely on C99 in macro deductions (see xercesc/config.h and # xercesc/util/Xerces_autoconf_config.hpp for details). # @@ -31,3 +24,22 @@ if ($c.target.system == 'win32-msvc') if ($c.class == 'msvc') cc.coptions += /wd4251 /wd4275 /wd4800 + +# Enable network support so that the parser can download remote resources +# (schemas, DTDs, etc). +# +# If enabled, then the libcurl library is used to access network resources. +# +config [bool] config.libxerces_c.network ?= false + +# We use ICU everywhere except on Mac OS and Windows where we by default +# use native transcoders (but can still be forced to use ICU instead). +# +config [bool] config.libxerces_c.transcoder_icu ?= \ + ($cxx.target.class != 'macos' && $cxx.target.class != 'windows') + +if! $config.libxerces_c.transcoder_icu +{ + assert ($cxx.target.class == 'macos' || $cxx.target.class == 'windows') \ + "only ICU transcoder is supported on $cxx.target.class" +} -- cgit v1.1