aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/c-ares/ya.make
blob: ca62886c313ccaf93e7cf201ee67208828b67b76 (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
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
# Generated by devtools/yamaker from nixpkgs 21.11.

LIBRARY()

OWNER(
    max42
    g:cpp-contrib
)

VERSION(1.17.2)

ORIGINAL_SOURCE(https://c-ares.haxx.se/download/c-ares-1.17.2.tar.gz)

OPENSOURCE_EXPORT_REPLACEMENT(
    CMAKE
    c-ares
    CMAKE_TARGET
    c-ares::c-ares
    CONAN
    c-ares/1.17.2
)

LICENSE(
    BSD-3-Clause AND
    ISC AND
    MIT AND
    NTP
)

LICENSE_TEXTS(.yandex_meta/licenses.list.txt)

PEERDIR(
    contrib/libs/libc_compat
)

ADDINCL(
    contrib/libs/c-ares/include
    contrib/libs/c-ares/src/lib
)

NO_COMPILER_WARNINGS()

CFLAGS(
    -DCARES_BUILDING_LIBRARY
    -DCARES_SYMBOL_HIDING
    -DHAVE_CONFIG_H
)

IF (NOT DLL_FOR)
    CFLAGS(
        -DCARES_STATICLIB
    )
ENDIF()

IF (ARCH_ARM7)
    CFLAGS(
        GLOBAL -D__SIZEOF_LONG__=4
    )
ENDIF()

SRCS(
    src/lib/ares__close_sockets.c
    src/lib/ares__get_hostent.c
    src/lib/ares__parse_into_addrinfo.c
    src/lib/ares__read_line.c
    src/lib/ares__readaddrinfo.c
    src/lib/ares__sortaddrinfo.c
    src/lib/ares__timeval.c
    src/lib/ares_android.c
    src/lib/ares_cancel.c
    src/lib/ares_create_query.c
    src/lib/ares_data.c
    src/lib/ares_destroy.c
    src/lib/ares_expand_name.c
    src/lib/ares_expand_string.c
    src/lib/ares_fds.c
    src/lib/ares_free_hostent.c
    src/lib/ares_free_string.c
    src/lib/ares_freeaddrinfo.c
    src/lib/ares_getaddrinfo.c
    src/lib/ares_getenv.c
    src/lib/ares_gethostbyaddr.c
    src/lib/ares_gethostbyname.c
    src/lib/ares_getnameinfo.c
    src/lib/ares_getsock.c
    src/lib/ares_init.c
    src/lib/ares_library_init.c
    src/lib/ares_llist.c
    src/lib/ares_mkquery.c
    src/lib/ares_nowarn.c
    src/lib/ares_options.c
    src/lib/ares_parse_a_reply.c
    src/lib/ares_parse_aaaa_reply.c
    src/lib/ares_parse_caa_reply.c
    src/lib/ares_parse_mx_reply.c
    src/lib/ares_parse_naptr_reply.c
    src/lib/ares_parse_ns_reply.c
    src/lib/ares_parse_ptr_reply.c
    src/lib/ares_parse_soa_reply.c
    src/lib/ares_parse_srv_reply.c
    src/lib/ares_parse_txt_reply.c
    src/lib/ares_platform.c
    src/lib/ares_process.c
    src/lib/ares_query.c
    src/lib/ares_search.c
    src/lib/ares_send.c
    src/lib/ares_strcasecmp.c
    src/lib/ares_strdup.c
    src/lib/ares_strerror.c
    src/lib/ares_strsplit.c
    src/lib/ares_timeout.c
    src/lib/ares_version.c
    src/lib/ares_writev.c
    src/lib/atomic.cpp
    src/lib/bitncmp.c
    src/lib/inet_net_pton.c
    src/lib/inet_ntop.c
    src/lib/windows_port.c
    src/tools/ares_getopt.c
)

IF (NOT EXPORT_CMAKE)
    CHECK_CONFIG_H(src/lib/ares_setup.h)
ENDIF()

END()

RECURSE(
    acountry
    adig
    ahost
    test
)