aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/libxml
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.com>2022-12-15 19:25:15 +0300
committerthegeorg <thegeorg@yandex-team.com>2022-12-15 19:25:15 +0300
commit0c31d97afd7858af5f8f858c8addf91655ca9ccc (patch)
tree4d8a246db168f7beaafcd06d486c034115c2123d /contrib/libs/libxml
parentd1d5f5e00df0dd6efc00880dd8283477fc643aaf (diff)
downloadydb-0c31d97afd7858af5f8f858c8addf91655ca9ccc.tar.gz
Sync linux-headers instead of using system ones
Diffstat (limited to 'contrib/libs/libxml')
-rw-r--r--contrib/libs/libxml/CMakeLists.darwin.txt79
-rw-r--r--contrib/libs/libxml/CMakeLists.linux-aarch64.txt80
-rw-r--r--contrib/libs/libxml/CMakeLists.linux.txt80
-rw-r--r--contrib/libs/libxml/CMakeLists.txt78
4 files changed, 246 insertions, 71 deletions
diff --git a/contrib/libs/libxml/CMakeLists.darwin.txt b/contrib/libs/libxml/CMakeLists.darwin.txt
new file mode 100644
index 0000000000..cebe9de336
--- /dev/null
+++ b/contrib/libs/libxml/CMakeLists.darwin.txt
@@ -0,0 +1,79 @@
+
+# This file was gererated by the build system used internally in the Yandex monorepo.
+# Only simple modifications are allowed (adding source-files to targets, adding simple properties
+# like target_include_directories). These modifications will be ported to original
+# ya.make files by maintainers. Any complex modifications which can't be ported back to the
+# original buildsystem will not be accepted.
+
+
+find_package(Iconv REQUIRED)
+find_package(ZLIB REQUIRED)
+
+add_library(contrib-libs-libxml)
+target_compile_options(contrib-libs-libxml PUBLIC
+ -DLIBXML_STATIC
+)
+target_compile_options(contrib-libs-libxml PRIVATE
+ -DHAVE_CONFIG_H
+ -Wno-everything
+)
+target_include_directories(contrib-libs-libxml PUBLIC
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/include
+)
+target_include_directories(contrib-libs-libxml PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml
+)
+target_link_libraries(contrib-libs-libxml PUBLIC
+ contrib-libs-cxxsupp
+ yutil
+ Iconv::Iconv
+ ZLIB::ZLIB
+ library-cpp-charset
+)
+target_sources(contrib-libs-libxml PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/HTMLparser.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/HTMLtree.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/SAX.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/SAX2.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/buf.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/c14n.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/catalog.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/chvalid.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/debugXML.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/dict.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/encoding.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/entities.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/error.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/globals.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/hash.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/legacy.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/list.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/nanoftp.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/nanohttp.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/parser.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/parserInternals.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/pattern.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/relaxng.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/schematron.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/threads.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/tree.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/uri.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/valid.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xinclude.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xlink.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlIO.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlmemory.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlreader.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlregexp.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlsave.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlschemas.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlschemastypes.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlstring.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlunicode.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlwriter.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xpath.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xpointer.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xzlib.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/yencoding.cpp
+)
diff --git a/contrib/libs/libxml/CMakeLists.linux-aarch64.txt b/contrib/libs/libxml/CMakeLists.linux-aarch64.txt
new file mode 100644
index 0000000000..8d1f7ee7bf
--- /dev/null
+++ b/contrib/libs/libxml/CMakeLists.linux-aarch64.txt
@@ -0,0 +1,80 @@
+
+# This file was gererated by the build system used internally in the Yandex monorepo.
+# Only simple modifications are allowed (adding source-files to targets, adding simple properties
+# like target_include_directories). These modifications will be ported to original
+# ya.make files by maintainers. Any complex modifications which can't be ported back to the
+# original buildsystem will not be accepted.
+
+
+find_package(Iconv REQUIRED)
+find_package(ZLIB REQUIRED)
+
+add_library(contrib-libs-libxml)
+target_compile_options(contrib-libs-libxml PUBLIC
+ -DLIBXML_STATIC
+)
+target_compile_options(contrib-libs-libxml PRIVATE
+ -DHAVE_CONFIG_H
+ -Wno-everything
+)
+target_include_directories(contrib-libs-libxml PUBLIC
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/include
+)
+target_include_directories(contrib-libs-libxml PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml
+)
+target_link_libraries(contrib-libs-libxml PUBLIC
+ contrib-libs-linux-headers
+ contrib-libs-cxxsupp
+ yutil
+ Iconv::Iconv
+ ZLIB::ZLIB
+ library-cpp-charset
+)
+target_sources(contrib-libs-libxml PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/HTMLparser.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/HTMLtree.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/SAX.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/SAX2.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/buf.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/c14n.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/catalog.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/chvalid.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/debugXML.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/dict.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/encoding.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/entities.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/error.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/globals.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/hash.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/legacy.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/list.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/nanoftp.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/nanohttp.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/parser.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/parserInternals.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/pattern.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/relaxng.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/schematron.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/threads.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/tree.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/uri.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/valid.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xinclude.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xlink.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlIO.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlmemory.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlreader.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlregexp.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlsave.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlschemas.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlschemastypes.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlstring.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlunicode.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlwriter.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xpath.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xpointer.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xzlib.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/yencoding.cpp
+)
diff --git a/contrib/libs/libxml/CMakeLists.linux.txt b/contrib/libs/libxml/CMakeLists.linux.txt
new file mode 100644
index 0000000000..8d1f7ee7bf
--- /dev/null
+++ b/contrib/libs/libxml/CMakeLists.linux.txt
@@ -0,0 +1,80 @@
+
+# This file was gererated by the build system used internally in the Yandex monorepo.
+# Only simple modifications are allowed (adding source-files to targets, adding simple properties
+# like target_include_directories). These modifications will be ported to original
+# ya.make files by maintainers. Any complex modifications which can't be ported back to the
+# original buildsystem will not be accepted.
+
+
+find_package(Iconv REQUIRED)
+find_package(ZLIB REQUIRED)
+
+add_library(contrib-libs-libxml)
+target_compile_options(contrib-libs-libxml PUBLIC
+ -DLIBXML_STATIC
+)
+target_compile_options(contrib-libs-libxml PRIVATE
+ -DHAVE_CONFIG_H
+ -Wno-everything
+)
+target_include_directories(contrib-libs-libxml PUBLIC
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/include
+)
+target_include_directories(contrib-libs-libxml PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml
+)
+target_link_libraries(contrib-libs-libxml PUBLIC
+ contrib-libs-linux-headers
+ contrib-libs-cxxsupp
+ yutil
+ Iconv::Iconv
+ ZLIB::ZLIB
+ library-cpp-charset
+)
+target_sources(contrib-libs-libxml PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/HTMLparser.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/HTMLtree.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/SAX.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/SAX2.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/buf.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/c14n.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/catalog.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/chvalid.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/debugXML.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/dict.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/encoding.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/entities.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/error.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/globals.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/hash.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/legacy.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/list.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/nanoftp.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/nanohttp.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/parser.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/parserInternals.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/pattern.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/relaxng.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/schematron.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/threads.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/tree.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/uri.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/valid.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xinclude.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xlink.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlIO.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlmemory.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlmodule.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlreader.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlregexp.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlsave.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlschemas.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlschemastypes.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlstring.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlunicode.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlwriter.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xpath.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xpointer.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xzlib.c
+ ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/yencoding.cpp
+)
diff --git a/contrib/libs/libxml/CMakeLists.txt b/contrib/libs/libxml/CMakeLists.txt
index cebe9de336..3e0811fb22 100644
--- a/contrib/libs/libxml/CMakeLists.txt
+++ b/contrib/libs/libxml/CMakeLists.txt
@@ -6,74 +6,10 @@
# original buildsystem will not be accepted.
-find_package(Iconv REQUIRED)
-find_package(ZLIB REQUIRED)
-
-add_library(contrib-libs-libxml)
-target_compile_options(contrib-libs-libxml PUBLIC
- -DLIBXML_STATIC
-)
-target_compile_options(contrib-libs-libxml PRIVATE
- -DHAVE_CONFIG_H
- -Wno-everything
-)
-target_include_directories(contrib-libs-libxml PUBLIC
- ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/include
-)
-target_include_directories(contrib-libs-libxml PRIVATE
- ${CMAKE_SOURCE_DIR}/contrib/libs/libxml
-)
-target_link_libraries(contrib-libs-libxml PUBLIC
- contrib-libs-cxxsupp
- yutil
- Iconv::Iconv
- ZLIB::ZLIB
- library-cpp-charset
-)
-target_sources(contrib-libs-libxml PRIVATE
- ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/HTMLparser.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/HTMLtree.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/SAX.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/SAX2.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/buf.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/c14n.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/catalog.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/chvalid.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/debugXML.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/dict.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/encoding.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/entities.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/error.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/globals.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/hash.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/legacy.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/list.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/nanoftp.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/nanohttp.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/parser.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/parserInternals.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/pattern.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/relaxng.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/schematron.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/threads.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/tree.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/uri.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/valid.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xinclude.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xlink.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlIO.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlmemory.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlmodule.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlreader.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlregexp.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlsave.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlschemas.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlschemastypes.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlstring.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlunicode.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xmlwriter.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xpath.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xpointer.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/xzlib.c
- ${CMAKE_SOURCE_DIR}/contrib/libs/libxml/yencoding.cpp
-)
+if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID)
+ include(CMakeLists.linux-aarch64.txt)
+elseif (APPLE)
+ include(CMakeLists.darwin.txt)
+elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID)
+ include(CMakeLists.linux.txt)
+endif()