node/deps/cares/BUILD.gn

127 строки
2.9 KiB
Plaintext

config("cares_config") {
include_dirs = [ "include" ]
}
static_library("cares") {
defines = [ "CARES_STATICLIB" ]
include_dirs = [
"include",
"src",
]
public_configs = [ ":cares_config" ]
libs = []
cflags_c = [
"-Wno-logical-not-parentheses",
"-Wno-sign-compare",
]
sources = [
"include/ares.h",
"include/ares_rules.h",
"include/ares_version.h",
"include/nameser.h",
"src/ares__close_sockets.c",
"src/ares__get_hostent.c",
"src/ares__read_line.c",
"src/ares__timeval.c",
"src/ares_android.c",
"src/ares_cancel.c",
"src/ares_create_query.c",
"src/ares_data.c",
"src/ares_data.h",
"src/ares_destroy.c",
"src/ares_dns.h",
"src/ares_expand_name.c",
"src/ares_expand_string.c",
"src/ares_fds.c",
"src/ares_free_hostent.c",
"src/ares_free_string.c",
"src/ares_getenv.h",
"src/ares_gethostbyaddr.c",
"src/ares_gethostbyname.c",
"src/ares_getnameinfo.c",
"src/ares_getopt.c",
"src/ares_getopt.h",
"src/ares_getsock.c",
"src/ares_inet_net_pton.h",
"src/ares_init.c",
"src/ares_ipv6.h",
"src/ares_library_init.c",
"src/ares_library_init.h",
"src/ares_llist.c",
"src/ares_llist.h",
"src/ares_mkquery.c",
"src/ares_nowarn.c",
"src/ares_nowarn.h",
"src/ares_options.c",
"src/ares_parse_a_reply.c",
"src/ares_parse_aaaa_reply.c",
"src/ares_parse_mx_reply.c",
"src/ares_parse_naptr_reply.c",
"src/ares_parse_ns_reply.c",
"src/ares_parse_ptr_reply.c",
"src/ares_parse_soa_reply.c",
"src/ares_parse_srv_reply.c",
"src/ares_parse_txt_reply.c",
"src/ares_platform.h",
"src/ares_private.h",
"src/ares_process.c",
"src/ares_query.c",
"src/ares_search.c",
"src/ares_send.c",
"src/ares_setup.h",
"src/ares_strcasecmp.c",
"src/ares_strcasecmp.h",
"src/ares_strdup.c",
"src/ares_strdup.h",
"src/ares_strerror.c",
"src/ares_strsplit.c",
"src/ares_timeout.c",
"src/ares_version.c",
"src/ares_writev.c",
"src/ares_writev.h",
"src/bitncmp.c",
"src/bitncmp.h",
"src/inet_net_pton.c",
"src/inet_ntop.c",
"src/setup_once.h",
]
if (!is_win) {
defines += [
"_DARWIN_USE_64_BIT_INODE=1",
"_LARGEFILE_SOURCE",
"_FILE_OFFSET_BITS=64",
"_GNU_SOURCE",
]
}
if (is_win) {
defines += [ "CARES_PULL_WS2TCPIP_H=1" ]
include_dirs += [ "config/win32" ]
sources += [
"src/ares_getenv.c",
"src/ares_iphlpapi.h",
"src/ares_platform.c",
"src/config-win32.h",
"src/windows_port.c",
]
libs += [
"ws2_32.lib",
"iphlpapi.lib",
]
} else {
defines += [ "HAVE_CONFIG_H" ]
}
if (is_linux) {
include_dirs += [ "config/linux" ]
sources += [ "config/linux/ares_config.h" ]
}
if (is_mac) {
include_dirs += [ "config/darwin" ]
sources += [ "config/darwin/ares_config.h" ]
}
}