2019-06-10 18:50:46 +00:00
|
|
|
set(LIBXML2_SOURCE_DIR ${ClickHouse_SOURCE_DIR}/contrib/libxml2)
|
|
|
|
set(LIBXML2_BINARY_DIR ${ClickHouse_BINARY_DIR}/contrib/libxml2)
|
2018-12-05 13:24:45 +00:00
|
|
|
|
|
|
|
set(SRCS
|
2019-04-26 15:37:22 +00:00
|
|
|
${LIBXML2_SOURCE_DIR}/SAX.c
|
2018-12-05 13:24:45 +00:00
|
|
|
${LIBXML2_SOURCE_DIR}/entities.c
|
|
|
|
${LIBXML2_SOURCE_DIR}/encoding.c
|
|
|
|
${LIBXML2_SOURCE_DIR}/error.c
|
2019-04-26 15:37:22 +00:00
|
|
|
${LIBXML2_SOURCE_DIR}/parserInternals.c
|
|
|
|
${LIBXML2_SOURCE_DIR}/parser.c
|
|
|
|
${LIBXML2_SOURCE_DIR}/tree.c
|
|
|
|
${LIBXML2_SOURCE_DIR}/hash.c
|
|
|
|
${LIBXML2_SOURCE_DIR}/list.c
|
|
|
|
${LIBXML2_SOURCE_DIR}/xmlIO.c
|
|
|
|
${LIBXML2_SOURCE_DIR}/xmlmemory.c
|
|
|
|
${LIBXML2_SOURCE_DIR}/uri.c
|
|
|
|
${LIBXML2_SOURCE_DIR}/valid.c
|
|
|
|
${LIBXML2_SOURCE_DIR}/xlink.c
|
|
|
|
${LIBXML2_SOURCE_DIR}/HTMLparser.c
|
|
|
|
${LIBXML2_SOURCE_DIR}/HTMLtree.c
|
2018-12-05 13:24:45 +00:00
|
|
|
${LIBXML2_SOURCE_DIR}/debugXML.c
|
2019-04-26 15:37:22 +00:00
|
|
|
${LIBXML2_SOURCE_DIR}/xpath.c
|
2018-12-05 13:24:45 +00:00
|
|
|
${LIBXML2_SOURCE_DIR}/xpointer.c
|
2019-04-26 15:37:22 +00:00
|
|
|
${LIBXML2_SOURCE_DIR}/xinclude.c
|
|
|
|
${LIBXML2_SOURCE_DIR}/nanohttp.c
|
|
|
|
${LIBXML2_SOURCE_DIR}/nanoftp.c
|
2018-12-05 13:24:45 +00:00
|
|
|
${LIBXML2_SOURCE_DIR}/DOCBparser.c
|
2019-04-26 15:37:22 +00:00
|
|
|
${LIBXML2_SOURCE_DIR}/catalog.c
|
|
|
|
${LIBXML2_SOURCE_DIR}/globals.c
|
|
|
|
${LIBXML2_SOURCE_DIR}/threads.c
|
2018-12-05 13:24:45 +00:00
|
|
|
${LIBXML2_SOURCE_DIR}/c14n.c
|
|
|
|
${LIBXML2_SOURCE_DIR}/xmlstring.c
|
2019-04-26 15:37:22 +00:00
|
|
|
${LIBXML2_SOURCE_DIR}/buf.c
|
|
|
|
${LIBXML2_SOURCE_DIR}/xmlregexp.c
|
|
|
|
${LIBXML2_SOURCE_DIR}/xmlschemas.c
|
|
|
|
${LIBXML2_SOURCE_DIR}/xmlschemastypes.c
|
|
|
|
${LIBXML2_SOURCE_DIR}/xmlunicode.c
|
|
|
|
${LIBXML2_SOURCE_DIR}/triostr.c
|
|
|
|
#${LIBXML2_SOURCE_DIR}/trio.c
|
|
|
|
${LIBXML2_SOURCE_DIR}/xmlreader.c
|
|
|
|
${LIBXML2_SOURCE_DIR}/relaxng.c
|
2018-12-05 13:24:45 +00:00
|
|
|
${LIBXML2_SOURCE_DIR}/dict.c
|
2019-04-26 15:37:22 +00:00
|
|
|
${LIBXML2_SOURCE_DIR}/SAX2.c
|
|
|
|
${LIBXML2_SOURCE_DIR}/xmlwriter.c
|
|
|
|
${LIBXML2_SOURCE_DIR}/legacy.c
|
2018-12-05 13:24:45 +00:00
|
|
|
${LIBXML2_SOURCE_DIR}/chvalid.c
|
2019-04-26 15:37:22 +00:00
|
|
|
${LIBXML2_SOURCE_DIR}/pattern.c
|
2018-12-05 13:24:45 +00:00
|
|
|
${LIBXML2_SOURCE_DIR}/xmlsave.c
|
|
|
|
${LIBXML2_SOURCE_DIR}/xmlmodule.c
|
|
|
|
${LIBXML2_SOURCE_DIR}/schematron.c
|
2019-04-26 15:37:22 +00:00
|
|
|
${LIBXML2_SOURCE_DIR}/xzlib.c
|
2018-12-05 13:24:45 +00:00
|
|
|
)
|
2019-04-24 09:06:28 +00:00
|
|
|
add_library(libxml2 ${SRCS})
|
2018-12-05 13:24:45 +00:00
|
|
|
|
2020-02-28 10:54:23 +00:00
|
|
|
target_link_libraries(libxml2 PRIVATE ${ZLIB_LIBRARIES})
|
2019-08-04 00:19:03 +00:00
|
|
|
if(M_LIBRARY)
|
|
|
|
target_link_libraries(libxml2 PRIVATE ${M_LIBRARY})
|
|
|
|
endif()
|
2018-12-05 13:24:45 +00:00
|
|
|
|
2018-12-08 01:41:00 +00:00
|
|
|
target_include_directories(libxml2 PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/linux_x86_64/include)
|
2018-12-05 13:24:45 +00:00
|
|
|
target_include_directories(libxml2 PUBLIC ${LIBXML2_SOURCE_DIR}/include)
|
2020-02-28 00:07:42 +00:00
|
|
|
target_include_directories(libxml2 SYSTEM BEFORE PRIVATE ${ZLIB_INCLUDE_DIR})
|