summaryrefslogtreecommitdiff
path: root/libxerces-c/build/root.build
diff options
context:
space:
mode:
Diffstat (limited to 'libxerces-c/build/root.build')
-rw-r--r--libxerces-c/build/root.build19
1 files changed, 19 insertions, 0 deletions
diff --git a/libxerces-c/build/root.build b/libxerces-c/build/root.build
index 92eb1cb..d61764c 100644
--- a/libxerces-c/build/root.build
+++ b/libxerces-c/build/root.build
@@ -24,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"
+}