2016-07-14 19:16:42 +03:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 00:47:23 +04:00
|
|
|
# vim: set filetype=python:
|
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
2017-02-02 14:33:47 +03:00
|
|
|
with Files("**"):
|
|
|
|
BUG_COMPONENT = ("Core", "Networking: DNS")
|
|
|
|
|
2015-05-21 06:06:00 +03:00
|
|
|
DIRS += ["mdns", "tests"]
|
|
|
|
|
2013-03-12 21:17:46 +04:00
|
|
|
XPIDL_SOURCES += [
|
2018-09-22 23:54:11 +03:00
|
|
|
"nsIDNSByTypeRecord.idl",
|
2013-03-12 21:17:46 +04:00
|
|
|
"nsIDNSListener.idl",
|
|
|
|
"nsIDNSRecord.idl",
|
2020-08-12 11:25:14 +03:00
|
|
|
"nsIDNSResolverInfo.idl",
|
2013-03-12 21:17:46 +04:00
|
|
|
"nsIDNSService.idl",
|
|
|
|
"nsIEffectiveTLDService.idl",
|
|
|
|
"nsIIDNService.idl",
|
2020-03-02 22:44:37 +03:00
|
|
|
"nsINativeDNSResolverOverride.idl",
|
2013-03-12 21:17:46 +04:00
|
|
|
"nsPIDNSService.idl",
|
|
|
|
]
|
|
|
|
|
2013-03-12 09:00:00 +04:00
|
|
|
XPIDL_MODULE = "necko_dns"
|
|
|
|
|
2019-08-22 17:09:42 +03:00
|
|
|
EXTRA_JS_MODULES["netwerk-dns"] += [
|
|
|
|
"PublicSuffixList.jsm",
|
|
|
|
]
|
|
|
|
|
|
|
|
XPCSHELL_TESTS_MANIFESTS += ["tests/unit/xpcshell.ini"]
|
|
|
|
|
2019-02-04 21:43:43 +03:00
|
|
|
EXPORTS += [
|
|
|
|
"nsEffectiveTLDService.h",
|
|
|
|
]
|
|
|
|
|
2013-04-16 23:24:43 +04:00
|
|
|
EXPORTS.mozilla.net += [
|
2013-12-11 23:03:51 +04:00
|
|
|
"ChildDNSService.h",
|
2013-04-16 23:24:43 +04:00
|
|
|
"DNS.h",
|
2020-05-04 22:56:51 +03:00
|
|
|
"DNSByTypeRecord.h",
|
2013-12-11 23:03:51 +04:00
|
|
|
"DNSListenerProxy.h",
|
2020-04-14 12:14:41 +03:00
|
|
|
"DNSRequestBase.h",
|
2013-12-11 23:03:51 +04:00
|
|
|
"DNSRequestChild.h",
|
|
|
|
"DNSRequestParent.h",
|
2020-05-04 22:56:51 +03:00
|
|
|
"HTTPSSVC.h",
|
2018-11-24 15:04:34 +03:00
|
|
|
"IDNBlocklistUtils.h",
|
2020-06-05 16:27:35 +03:00
|
|
|
"NativeDNSResolverOverrideChild.h",
|
|
|
|
"NativeDNSResolverOverrideParent.h",
|
2018-02-01 12:20:49 +03:00
|
|
|
"TRRService.h",
|
2020-05-18 23:18:15 +03:00
|
|
|
"TRRServiceBase.h",
|
2020-05-18 23:18:03 +03:00
|
|
|
"TRRServiceChild.h",
|
|
|
|
"TRRServiceParent.h",
|
2013-04-16 23:24:43 +04:00
|
|
|
]
|
|
|
|
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2020-10-30 17:17:53 +03:00
|
|
|
"GetAddrInfo.cpp", # Undefines UNICODE
|
2013-11-22 19:35:18 +04:00
|
|
|
"nsEffectiveTLDService.cpp", # Excluded from UNIFIED_SOURCES due to special build flags.
|
2013-05-25 04:21:14 +04:00
|
|
|
]
|
2013-04-24 01:54:15 +04:00
|
|
|
|
2013-11-22 19:35:18 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-12-11 23:03:51 +04:00
|
|
|
"ChildDNSService.cpp",
|
2013-04-24 01:54:15 +04:00
|
|
|
"DNS.cpp",
|
2013-12-11 23:03:51 +04:00
|
|
|
"DNSListenerProxy.cpp",
|
2020-11-19 17:06:15 +03:00
|
|
|
"DNSPacket.cpp",
|
2013-12-11 23:03:51 +04:00
|
|
|
"DNSRequestChild.cpp",
|
|
|
|
"DNSRequestParent.cpp",
|
2020-08-12 11:25:14 +03:00
|
|
|
"DNSResolverInfo.cpp",
|
2021-03-19 11:29:14 +03:00
|
|
|
"DNSUtils.cpp",
|
2020-05-04 22:56:51 +03:00
|
|
|
"HTTPSSVC.cpp",
|
2018-11-24 15:04:34 +03:00
|
|
|
"IDNBlocklistUtils.cpp",
|
2020-06-05 16:27:35 +03:00
|
|
|
"NativeDNSResolverOverrideChild.cpp",
|
|
|
|
"NativeDNSResolverOverrideParent.cpp",
|
2013-04-24 01:54:15 +04:00
|
|
|
"nsDNSService2.cpp",
|
2021-06-16 11:14:10 +03:00
|
|
|
"nsHostRecord.cpp",
|
|
|
|
"nsHostResolver.cpp",
|
2013-04-24 01:54:15 +04:00
|
|
|
"nsIDNService.cpp",
|
2021-01-26 17:19:09 +03:00
|
|
|
"ODoH.cpp",
|
|
|
|
"ODoHService.cpp",
|
2013-11-22 19:35:18 +04:00
|
|
|
"punycode.c",
|
2018-02-01 12:20:49 +03:00
|
|
|
"TRR.cpp",
|
2020-11-03 13:41:51 +03:00
|
|
|
"TRRQuery.cpp",
|
2018-02-01 12:20:49 +03:00
|
|
|
"TRRService.cpp",
|
2020-05-18 23:18:15 +03:00
|
|
|
"TRRServiceBase.cpp",
|
2020-05-18 23:18:03 +03:00
|
|
|
"TRRServiceChild.cpp",
|
|
|
|
"TRRServiceParent.cpp",
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
2013-06-17 23:21:01 +04:00
|
|
|
|
2013-12-11 23:03:51 +04:00
|
|
|
IPDL_SOURCES = [
|
|
|
|
"PDNSRequest.ipdl",
|
|
|
|
"PDNSRequestParams.ipdlh",
|
2020-06-05 16:27:35 +03:00
|
|
|
"PNativeDNSResolverOverride.ipdl",
|
2020-05-18 23:18:03 +03:00
|
|
|
"PTRRService.ipdl",
|
2013-12-11 23:03:51 +04:00
|
|
|
]
|
|
|
|
|
|
|
|
include("/ipc/chromium/chromium-config.mozbuild")
|
|
|
|
|
2014-07-23 03:37:51 +04:00
|
|
|
FINAL_LIBRARY = "xul"
|
2013-11-22 03:16:18 +04:00
|
|
|
|
2019-10-08 00:15:19 +03:00
|
|
|
GeneratedFile(
|
|
|
|
"etld_data.inc", script="prepare_tlds.py", inputs=["effective_tld_names.dat"]
|
|
|
|
)
|
2013-11-28 18:25:39 +04:00
|
|
|
|
|
|
|
# need to include etld_data.inc
|
|
|
|
LOCAL_INCLUDES += [
|
2015-01-16 13:11:06 +03:00
|
|
|
"/netwerk/base",
|
2020-03-04 19:11:16 +03:00
|
|
|
"/netwerk/protocol/http",
|
2013-11-28 18:25:39 +04:00
|
|
|
]
|
2015-02-19 08:14:00 +03:00
|
|
|
|
2017-09-22 21:25:50 +03:00
|
|
|
USE_LIBS += ["icu"]
|
2016-03-17 00:04:34 +03:00
|
|
|
|
2017-12-08 00:09:15 +03:00
|
|
|
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
2016-05-11 10:00:01 +03:00
|
|
|
CXXFLAGS += ["-Wno-error=shadow"]
|