mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-03-27 18:50:07 +03:00
build: Don't make --with-legacy enable HTTP and LZMA
The --with-legacy option only enables --with-zlib for now.
This commit is contained in:
parent
ee026e160d
commit
884c899696
@ -1,7 +1,7 @@
|
||||
.test:
|
||||
image: registry.gitlab.gnome.org/gnome/libxml2
|
||||
variables:
|
||||
BASE_CONFIG: "--with-legacy"
|
||||
BASE_CONFIG: "--with-http --with-lzma --with-zlib"
|
||||
before_script:
|
||||
- rm -rf libxml2-build
|
||||
- mkdir libxml2-build
|
||||
@ -72,7 +72,7 @@ clang:msan:
|
||||
tags:
|
||||
- win32-ps
|
||||
variables:
|
||||
BASE_CONFIG: "--with-legacy"
|
||||
BASE_CONFIG: "--with-http --with-lzma --with-zlib"
|
||||
# Disabled for now, see #658
|
||||
CONFIG: "--without-python"
|
||||
CHERE_INVOKING: "yes"
|
||||
|
@ -27,10 +27,12 @@ option(BUILD_SHARED_LIBS "Build shared libraries" ON)
|
||||
option(LIBXML2_WITH_CATALOG "Add the Catalog support" ON)
|
||||
option(LIBXML2_WITH_DEBUG "Add the debugging module" ON)
|
||||
option(LIBXML2_WITH_HTML "Add the HTML support" ON)
|
||||
option(LIBXML2_WITH_HTTP "Add the HTTP support" OFF)
|
||||
option(LIBXML2_WITH_ICONV "Add ICONV support" ON)
|
||||
option(LIBXML2_WITH_ICU "Add ICU support" OFF)
|
||||
option(LIBXML2_WITH_ISO8859X "Add ISO8859X support if no iconv" ON)
|
||||
option(LIBXML2_WITH_LEGACY "Add deprecated APIs for compatibility" OFF)
|
||||
option(LIBXML2_WITH_LZMA "Use liblzma" OFF)
|
||||
option(LIBXML2_WITH_MODULES "Add the dynamic modules support" ON)
|
||||
option(LIBXML2_WITH_OUTPUT "Add the serialization support" ON)
|
||||
option(LIBXML2_WITH_PATTERN "Add the xmlPattern selection interface" ON)
|
||||
@ -47,12 +49,6 @@ option(LIBXML2_WITH_VALID "Add the DTD validation support" ON)
|
||||
option(LIBXML2_WITH_XINCLUDE "Add the XInclude support" ON)
|
||||
option(LIBXML2_WITH_XPATH "Add the XPATH support" ON)
|
||||
|
||||
cmake_dependent_option(
|
||||
LIBXML2_WITH_HTTP "Add the HTTP support" OFF
|
||||
"NOT LIBXML2_WITH_LEGACY" ON)
|
||||
cmake_dependent_option(
|
||||
LIBXML2_WITH_LZMA "Use liblzma" OFF
|
||||
"NOT LIBXML2_WITH_LEGACY" ON)
|
||||
cmake_dependent_option(
|
||||
LIBXML2_WITH_ZLIB "Use libz" OFF
|
||||
"NOT LIBXML2_WITH_LEGACY" ON)
|
||||
|
@ -137,12 +137,6 @@ dnl
|
||||
dnl Legacy defaults
|
||||
dnl
|
||||
if test "$with_legacy" = "yes"; then
|
||||
if test "$with_http" = ""; then
|
||||
with_http=yes
|
||||
fi
|
||||
if test "$with_lzma" = ""; then
|
||||
with_lzma=yes
|
||||
fi
|
||||
if test "$with_zlib" = ""; then
|
||||
with_zlib=yes
|
||||
fi
|
||||
|
@ -82,8 +82,10 @@ add_project_arguments(global_args, language: 'c')
|
||||
# options
|
||||
|
||||
# disabled by default
|
||||
want_http = get_option('http').enabled()
|
||||
want_icu = get_option('icu').enabled()
|
||||
want_legacy = get_option('legacy').enabled()
|
||||
want_lzma = get_option('lzma').enabled()
|
||||
want_thread_alloc = get_option('thread-alloc').enabled()
|
||||
want_tls = get_option('tls').enabled()
|
||||
|
||||
@ -126,12 +128,6 @@ want_xinclude = want_minimum ? feature.enabled() : feature.allowed()
|
||||
|
||||
# default depends on legacy option
|
||||
|
||||
feature = get_option('http')
|
||||
want_http = want_legacy ? feature.allowed() : feature.enabled()
|
||||
|
||||
feature = get_option('lzma')
|
||||
want_lzma = want_legacy ? feature.allowed() : feature.enabled()
|
||||
|
||||
feature = get_option('zlib')
|
||||
want_zlib = want_legacy ? feature.allowed() : feature.enabled()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user