blob: 48096aa0551fd9aa5b6032f4d28a556e2b1df9e1 [file] [log] [blame]
Yuchen Zeng4c702ed2017-01-23 10:30:10 -08001cc_library(
2 name = "ares",
3 srcs = [
4 "cares/ares__close_sockets.c",
5 "cares/ares__get_hostent.c",
6 "cares/ares__read_line.c",
7 "cares/ares__timeval.c",
8 "cares/ares_cancel.c",
9 "cares/ares_create_query.c",
10 "cares/ares_data.c",
11 "cares/ares_destroy.c",
12 "cares/ares_expand_name.c",
13 "cares/ares_expand_string.c",
14 "cares/ares_fds.c",
15 "cares/ares_free_hostent.c",
16 "cares/ares_free_string.c",
17 "cares/ares_getenv.c",
18 "cares/ares_gethostbyaddr.c",
19 "cares/ares_gethostbyname.c",
20 "cares/ares_getnameinfo.c",
21 "cares/ares_getopt.c",
22 "cares/ares_getsock.c",
23 "cares/ares_init.c",
24 "cares/ares_library_init.c",
25 "cares/ares_llist.c",
26 "cares/ares_mkquery.c",
27 "cares/ares_nowarn.c",
28 "cares/ares_options.c",
29 "cares/ares_parse_a_reply.c",
30 "cares/ares_parse_aaaa_reply.c",
31 "cares/ares_parse_mx_reply.c",
32 "cares/ares_parse_naptr_reply.c",
33 "cares/ares_parse_ns_reply.c",
34 "cares/ares_parse_ptr_reply.c",
35 "cares/ares_parse_soa_reply.c",
36 "cares/ares_parse_srv_reply.c",
37 "cares/ares_parse_txt_reply.c",
38 "cares/ares_platform.c",
39 "cares/ares_process.c",
40 "cares/ares_query.c",
41 "cares/ares_search.c",
42 "cares/ares_send.c",
43 "cares/ares_strcasecmp.c",
44 "cares/ares_strdup.c",
45 "cares/ares_strerror.c",
46 "cares/ares_timeout.c",
47 "cares/ares_version.c",
48 "cares/ares_writev.c",
49 "cares/bitncmp.c",
50 "cares/inet_net_pton.c",
51 "cares/inet_ntop.c",
52 "cares/windows_port.c",
53 ],
54 hdrs = [
55 "ares_build.h",
56 "config_linux/ares_config.h",
57 "cares/ares.h",
58 "cares/ares_data.h",
59 "cares/ares_dns.h",
60 "cares/ares_getenv.h",
61 "cares/ares_getopt.h",
62 "cares/ares_inet_net_pton.h",
63 "cares/ares_iphlpapi.h",
64 "cares/ares_ipv6.h",
65 "cares/ares_library_init.h",
66 "cares/ares_llist.h",
67 "cares/ares_nowarn.h",
68 "cares/ares_platform.h",
69 "cares/ares_private.h",
70 "cares/ares_rules.h",
71 "cares/ares_setup.h",
72 "cares/ares_strcasecmp.h",
73 "cares/ares_strdup.h",
74 "cares/ares_version.h",
75 "cares/bitncmp.h",
76 "cares/config-win32.h",
77 "cares/setup_once.h",
78 ],
79 includes = [
80 ".",
81 "config_linux",
82 "cares",
83 ],
84 linkstatic = 1,
85 visibility = [
86 "//visibility:public",
87 ],
88 copts = [
89 "-D_GNU_SOURCE",
90 "-D_HAS_EXCEPTIONS=0",
91 "-DNOMINMAX",
92 "-DHAVE_CONFIG_H",
93 ],
94)