This repository was archived by the owner on Jan 26, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11.test :
22 image : registry.gitlab.gnome.org/gnome/libxml2
33 variables :
4- BASE_CONFIG : " --with-legacy "
4+ BASE_CONFIG : " --with-http --with-lzma --with-zlib "
55 before_script :
66 - rm -rf libxml2-build
77 - mkdir libxml2-build
@@ -72,7 +72,7 @@ clang:msan:
7272 tags :
7373 - win32-ps
7474 variables :
75- BASE_CONFIG : " --with-legacy "
75+ BASE_CONFIG : " --with-http --with-lzma --with-zlib "
7676 # Disabled for now, see #658
7777 CONFIG : " --without-python"
7878 CHERE_INVOKING : " yes"
Original file line number Diff line number Diff line change @@ -27,10 +27,12 @@ option(BUILD_SHARED_LIBS "Build shared libraries" ON)
2727option (LIBXML2_WITH_CATALOG "Add the Catalog support" ON )
2828option (LIBXML2_WITH_DEBUG "Add the debugging module" ON )
2929option (LIBXML2_WITH_HTML "Add the HTML support" ON )
30+ option (LIBXML2_WITH_HTTP "Add the HTTP support" OFF )
3031option (LIBXML2_WITH_ICONV "Add ICONV support" ON )
3132option (LIBXML2_WITH_ICU "Add ICU support" OFF )
3233option (LIBXML2_WITH_ISO8859X "Add ISO8859X support if no iconv" ON )
3334option (LIBXML2_WITH_LEGACY "Add deprecated APIs for compatibility" OFF )
35+ option (LIBXML2_WITH_LZMA "Use liblzma" OFF )
3436option (LIBXML2_WITH_MODULES "Add the dynamic modules support" ON )
3537option (LIBXML2_WITH_OUTPUT "Add the serialization support" ON )
3638option (LIBXML2_WITH_PATTERN "Add the xmlPattern selection interface" ON )
@@ -47,12 +49,6 @@ option(LIBXML2_WITH_VALID "Add the DTD validation support" ON)
4749option (LIBXML2_WITH_XINCLUDE "Add the XInclude support" ON )
4850option (LIBXML2_WITH_XPATH "Add the XPATH support" ON )
4951
50- cmake_dependent_option (
51- LIBXML2_WITH_HTTP "Add the HTTP support" OFF
52- "NOT LIBXML2_WITH_LEGACY" ON )
53- cmake_dependent_option (
54- LIBXML2_WITH_LZMA "Use liblzma" OFF
55- "NOT LIBXML2_WITH_LEGACY" ON )
5652cmake_dependent_option (
5753 LIBXML2_WITH_ZLIB "Use libz" OFF
5854 "NOT LIBXML2_WITH_LEGACY" ON )
Original file line number Diff line number Diff line change 137137dnl Legacy defaults
138138dnl
139139if test "$with_legacy" = "yes"; then
140- if test "$with_http" = ""; then
141- with_http=yes
142- fi
143- if test "$with_lzma" = ""; then
144- with_lzma=yes
145- fi
146140 if test "$with_zlib" = ""; then
147141 with_zlib=yes
148142 fi
Original file line number Diff line number Diff line change @@ -82,8 +82,10 @@ add_project_arguments(global_args, language: 'c')
8282# options
8383
8484# disabled by default
85+ want_http = get_option (' http' ).enabled()
8586want_icu = get_option (' icu' ).enabled()
8687want_legacy = get_option (' legacy' ).enabled()
88+ want_lzma = get_option (' lzma' ).enabled()
8789want_thread_alloc = get_option (' thread-alloc' ).enabled()
8890want_tls = get_option (' tls' ).enabled()
8991
@@ -126,12 +128,6 @@ want_xinclude = want_minimum ? feature.enabled() : feature.allowed()
126128
127129# default depends on legacy option
128130
129- feature = get_option (' http' )
130- want_http = want_legacy ? feature.allowed() : feature.enabled()
131-
132- feature = get_option (' lzma' )
133- want_lzma = want_legacy ? feature.allowed() : feature.enabled()
134-
135131feature = get_option (' zlib' )
136132want_zlib = want_legacy ? feature.allowed() : feature.enabled()
137133
You can’t perform that action at this time.
0 commit comments