forked from google-deepmind/lab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
libxml.BUILD
113 lines (112 loc) · 2.62 KB
/
libxml.BUILD
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
genrule(
name = "gen_configure",
srcs = [
"Makefile.in",
"config.guess",
"config.h.in",
"config.sub",
"configure",
"entities.c",
"install-sh",
"libxml-2.0.pc.in",
"libxml-2.0-uninstalled.pc.in",
"libxml2-config.cmake.in",
"libxml.spec.in",
"ltmain.sh",
"missing",
"xml2-config.in",
"doc/Makefile.in",
"doc/devhelp/Makefile.in",
"doc/examples/Makefile.in",
"example/Makefile.in",
"include/Makefile.in",
"include/libxml/Makefile.in",
"include/libxml/xmlversion.h.in",
"python/Makefile.in",
"python/setup.py.in",
"python/tests/Makefile.in",
"xstc/Makefile.in",
],
outs = [
"config.h",
"include/libxml/xmlversion.h",
],
cmd = "./$(location configure) --silent --without-lzma " +
"&& cp --verbose -- config.h $(location config.h) " +
"&& cp --verbose -- include/libxml/xmlversion.h $(location include/libxml/xmlversion.h)",
)
cc_library(
name = "libxml",
srcs = [
"HTMLparser.c",
"HTMLtree.c",
"SAX.c",
"SAX2.c",
"buf.c",
"c14n.c",
"catalog.c",
"chvalid.c",
"debugXML.c",
"dict.c",
"encoding.c",
"entities.c",
"error.c",
"globals.c",
"hash.c",
"legacy.c",
"list.c",
"nanoftp.c",
"nanohttp.c",
"parser.c",
"parserInternals.c",
"pattern.c",
"relaxng.c",
"schematron.c",
"threads.c",
"tree.c",
"uri.c",
"valid.c",
"xinclude.c",
"xlink.c",
"xmlIO.c",
"xmlmemory.c",
"xmlmodule.c",
"xmlreader.c",
"xmlregexp.c",
"xmlsave.c",
"xmlschemas.c",
"xmlschemastypes.c",
"xmlstring.c",
"xmlunicode.c",
"xmlwriter.c",
"xpath.c",
"xpointer.c",
"xzlib.c",
],
hdrs = [
"config.h",
"include/libxml/xmlversion.h",
] + glob(
[
"*.h",
"include/libxml/*.h",
],
exclude = [
# Exclude the pre-made version that ships with the tarball,
# use the genrule output from ./configure instead.
"include/libxml/xmlversion.h",
],
),
copts = [
"-D_REENTRANT",
"-DHAVE_CONFIG_H",
"-w",
],
includes = [
".",
"include",
],
linkopts = ["-pthread"],
textual_hdrs = ["trionan.c"],
visibility = ["//visibility:public"],
)