diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2023-09-11 15:40:02 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2023-09-11 15:40:02 +0300 |
commit | 7a9ad23a9ec80a37308ab75c23c67da57287dd80 (patch) | |
tree | 4d6f8e9e73cb609e407b218afc2dad762b42a3b3 /libxerces-c/build/root.build | |
parent | e58c68bd23bdc01bd0e4d999d2da4dc0e20a68a2 (diff) |
Release version 3.2.4+1v3.2.4+1
Add support for config.libxerces_c.transcoder_icu variable
Update .gitignore file
Diffstat (limited to 'libxerces-c/build/root.build')
-rw-r--r-- | libxerces-c/build/root.build | 26 |
1 files changed, 19 insertions, 7 deletions
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" +} |