aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/libxml/CMakeLists.linux.txt
blob: a52097d48c97f3d1069ec5dc41ab64aeac00c183 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# This file was generated 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
)