diff options
author | thegeorg <thegeorg@yandex-team.com> | 2022-12-15 19:25:15 +0300 |
---|---|---|
committer | thegeorg <thegeorg@yandex-team.com> | 2022-12-15 19:25:15 +0300 |
commit | 0c31d97afd7858af5f8f858c8addf91655ca9ccc (patch) | |
tree | 4d8a246db168f7beaafcd06d486c034115c2123d /contrib/libs/libxml/CMakeLists.txt | |
parent | d1d5f5e00df0dd6efc00880dd8283477fc643aaf (diff) | |
download | ydb-0c31d97afd7858af5f8f858c8addf91655ca9ccc.tar.gz |
Sync linux-headers instead of using system ones
Diffstat (limited to 'contrib/libs/libxml/CMakeLists.txt')
-rw-r--r-- | contrib/libs/libxml/CMakeLists.txt | 78 |
1 files changed, 7 insertions, 71 deletions
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() |