summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* cmake: Fix va_copy detectionLuca Niccoli2023-04-301-2/+2
| | | | | | | va_copy is defined by the standard as a macro, so check_function_exists will not detect it; check_symbol_exists will. Fixes #528.
* cmake: Link with --undefined-versionNick Wellnhofer2023-04-291-2/+7
|
* cmake: Link against `dl` and `dld` only when `LIBXML2_WITH_MODULES` is enabledAlexander Kutelev2023-02-241-7/+9
|
* tests: Enable "runsuite" testNick Wellnhofer2022-12-081-0/+1
| | | | | | | | | | | | | | This enables some tests with testcases in - test/xsdtest - test/relaxng/OASIS/spectest.xml - test/relaxng/testsuite.xml The XML Schema Test Suite will also be run it was downloaded, see xstc/Makefile.am. Gitlab CI should be updated to fetch these files. There are 10 expected errors in the XSD test suite. This seems to be the case since at least version 2.9.0 from 2012.
* cmake: Build static library with -DLIBXML_STATICNick Wellnhofer2022-10-181-1/+1
| | | | | | Fix scope of target_compile_definitions command. Fixes #425.
* cmake: Set SOVERSIONNick Wellnhofer2022-09-201-0/+1
| | | | Fixes #410.
* python: Create .pyd on WindowsNick Wellnhofer2022-09-061-0/+3
|
* build: Remove check for broken ss_familyNick Wellnhofer2022-09-061-5/+0
| | | | This only seemed to affect ancient AIX systems.
* http: Simplify IPv6 checksNick Wellnhofer2022-09-051-1/+0
| | | | | This should also enable IPv6 support on Windows. Untested and mostly useless anyway, since we don't support HTTPS.
* cmake: Fix Python installationNick Wellnhofer2022-09-041-1/+3
| | | | Don't install into ${Python_SITEARCH} for now.
* cmake: Don't check for Python 2Nick Wellnhofer2022-09-041-8/+1
|
* Remove arg cast configure checksNick Wellnhofer2022-09-041-18/+0
| | | | We can simply cast to non-const char * unconditionally.
* Remove HAVE_WIN32_THREADS configuration flagNick Wellnhofer2022-09-041-6/+1
| | | | Check for LIBXML_THREAD_ENABLED and _WIN32 instead.
* cmake: Enable GCC compiler warningsNick Wellnhofer2022-09-021-2/+7
|
* Move automata test to runtest.cNick Wellnhofer2022-09-021-1/+0
|
* Use AM_CFLAGS and AM_LDFLAGS consistentlyNick Wellnhofer2022-09-021-2/+2
|
* Remove unused code in nanohttp.cNick Wellnhofer2022-09-021-2/+0
| | | | This was hidden behind an undocumented flag RES_USE_INET6.
* Stop including sys/types.hNick Wellnhofer2022-09-021-7/+2
|
* Remove "runtime debugging"Nick Wellnhofer2022-09-021-2/+1
| | | | This doesn't seem useful as configuration option.
* cmake: Disable version script on macOSNick Wellnhofer2022-08-231-1/+1
| | | | Fixes #400
* cmake: Install libxml.m4 on UNIX-like platformsDaniel E2022-07-141-0/+4
| | | | Install libxml.m4 to follow GNU Autotools more closely
* cmake: Use symbol versioning on UNIX-like platformsDaniel E2022-07-141-0/+6
| | | | Use symbol versioning to follow GNU Autotools more closely
* Add configuration flag for XPointer locations supportNick Wellnhofer2022-04-211-1/+2
| | | | | | | | | | | | | | | | | | | | | Add a new configuration flag that controls whether the outdated support for XPointer locations (ranges and points) is enabled. --with-xptr-locs # Autotools LIBXML2_WITH_XPTR_LOCS # CMake The latest spec for what it essentially an XPath extension seems to be this working draft from 2002: https://www.w3.org/TR/xptr-xpointer/ The xpointer() scheme is listed as "being reviewed" in the XPointer registry since at least 2006. libxml2 seems to be the only modern software that tries to implement this spec, but the code has many bugs and quality issues. The flag defaults to "off" and support for this extensions has to be requested explicitly. The relevant API functions are deprecated.
* Remove remaining definitions of STDC_HEADERSNick Wellnhofer2022-04-201-1/+0
| | | | Sync with Autotools build.
* cmake: Run all tests when threads are disabledNick Wellnhofer2022-04-201-17/+13
|
* cmake: Fix build with thread supportNick Wellnhofer2022-04-201-4/+6
| | | | | | Move configure_file(config.h) below pthreads check. Fix regression caused by commit f5659a1.
* cmake: Disable FTP and legacy modules by defaultNick Wellnhofer2022-04-131-2/+2
| | | | Sync with Autotools build.
* cmake: Fix build without thread supportNick Wellnhofer2022-04-131-1/+2
| | | | | | Only check for pthread.h if threads are enabled. Fixes #367.
* cmake: Install documentation in CMAKE_INSTALL_DOCDIRNick Wellnhofer2022-04-081-1/+1
| | | | Sync with recent Autotools change.
* cmake: Remove more unnecessary files installed in docs dir Daniel E2022-04-081-3/+3
| | | | | Sync with commit 95766541622b3a66c929e2e272b0252750d0174d Don't install man pages in docs directory, these are already installed in the correct path and while at it sort list
* CMakeLists.txt: Fix LIBXML_VERSION_NUMBERNick Wellnhofer2022-04-071-3/+6
| | | | | | Also fix LIBXML_VERSION and remove LIBXML_VERSION_STRING. Fixes #365.
* cmake: Remove non needed files in docs dirDaniel E2022-04-041-1/+7
| | | | Don't install files that are used to generate the documentation
* Move regexp tests to runtestNick Wellnhofer2022-04-041-1/+0
|
* Remove major parts of old test suiteNick Wellnhofer2022-04-041-8/+0
| | | | | | | | | | | | | | | | | | | Remove all the parts of the old test suite which are covered by runtest.c for quite some time. The following test programs are removed: - testC14N - testHTML - testReader - testRelax - testSAX - testSchemas - testURI - testXPath This also removes a few results of unimportant tests only run by the old test suite.
* Remove outdated xml2Conf.shNick Wellnhofer2022-04-031-2/+0
|
* Consolidate man pagesNick Wellnhofer2022-04-031-1/+1
| | | | Move xml2-config.1 into doc directory. Remove outdated libxml.3.
* Add WIN32_EXTRA_LIBADD to XML_PRIVATE_LIBSNick Wellnhofer2022-04-031-1/+1
|
* cmake: Adjust paths for UNIX or UNIX-like target systemsDaniel Engberg2022-04-031-2/+8
| | | | Sync paths with GNU Autotools
* Detect libm using libtool's macrosDavid Seifert2022-03-301-2/+2
|
* Respect `--sysconfdir` in source filesDavid Seifert2022-03-301-0/+4
| | | | | | | | * Prefix installations need to point to a non-root `etc` - Gentoo Prefix has been patching this for over 10 years: https://bugs.gentoo.org/317891 - MacPorts has to manually replace paths after patching: https://github.com/macports/macports-ports/blob/cc3bb736e906abe73b014da02a89ae2b70ef6295/textproc/libxml2/Portfile#L46
* Remove DOCBparserNick Wellnhofer2022-03-041-7/+1
| | | | | | | This code has been broken and deprecated since version 2.6.0, released in 2003. Because of a bug in commit 961b535c, DOCBparser.c was never compiled since 2012. I couldn't find a Debian package using any of its symbols, so it seems safe to remove this module.
* Remove ICONV_CONST testNick Wellnhofer2022-03-041-17/+0
| | | | We can simply cast the offending pointer to (void *).
* Don't check for standard C89 library functionsNick Wellnhofer2022-03-021-13/+0
| | | | | | | | | | | | | | | | | | | Don't check for - fprintf - localtime - printf - rand - sprintf - srand - sscanf - strftime - time - vfprintf - vsprintf If the C99 functions snprintf and vsnprintf are missing, Trio is enabled.
* Don't check for standard C89 headersNick Wellnhofer2022-03-021-12/+0
| | | | | | | | | | | | | | | | | | | | Don't check for - ctype.h - errno.h - float.h - limits.h - math.h - signal.h - stdarg.h - stdlib.h - string.h - time.h Stop including non-standard headers - malloc.h - strings.h
* Remove xmlwin32version.hNick Wellnhofer2022-02-161-5/+0
| | | | | | | This file was undocumented and never used anywhere. Maybe users were supposed to rename this file to xmlversion.h manually. These days, both CMake and win32/configure.js generate xmlversion.h from xmlversion.h.in, just like the Autotools build.
* Redirect links to xmlsoft.orgNick Wellnhofer2022-02-131-1/+1
| | | | Documentation and releases are now available on gitlab.gnome.org.
* configure: remove unused checks for functionsBen Boeckel2022-01-161-3/+0
| | | | | | | Nothing uses the results from these checks, so remove the checks. There are some "uses" in order to suppress macro shadowing in MSVC's implementation of `isinf` and `isnan` as macros, but those are hard-coded and do not require checks to manage.
* configure: remove unused checks for librariesBen Boeckel2022-01-161-2/+0
| | | | | These libraries are queried for, but no code cares about the results, so remove the checks.
* cmake: remove unused checksBen Boeckel2022-01-161-4/+0
| | | | | Even the configured `config.h` did not forward the results of these checks.
* configure: remove unused checks for headersBen Boeckel2022-01-161-6/+0
| | | | | These headers are checked for at configure time, but the code never cares about the results of these checks, so skip them.