1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 BUG_COMPONENT = ("Core", "Networking: DNS")
13 "nsIDNSAdditionalInfo.idl",
14 "nsIDNSByTypeRecord.idl",
18 "nsIEffectiveTLDService.idl",
20 "nsINativeDNSResolverOverride.idl",
21 "nsITRRSkipReason.idl",
25 XPIDL_MODULE = "necko_dns"
27 EXTRA_JS_MODULES["netwerk-dns"] += [
28 "PublicSuffixList.sys.mjs",
31 XPCSHELL_TESTS_MANIFESTS += ["tests/unit/xpcshell.toml"]
34 "nsEffectiveTLDService.h",
37 EXPORTS.mozilla.net += [
48 "IDNBlocklistUtils.h",
49 "NativeDNSResolverOverrideChild.h",
50 "NativeDNSResolverOverrideParent.h",
58 "GetAddrInfo.cpp", # Undefines UNICODE
59 "nsEffectiveTLDService.cpp", # Excluded from UNIFIED_SOURCES due to special build flags.
62 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "windows":
63 SOURCES += ["PlatformDNSWin.cpp"]
64 elif CONFIG["OS_TARGET"] == "Linux" or CONFIG["MOZ_WIDGET_TOOLKIT"] == "cocoa":
65 SOURCES += ["PlatformDNSUnix.cpp"]
67 elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "android":
68 SOURCES += ["PlatformDNSAndroid.cpp"]
70 DEFINES["MOZ_NO_HTTPS_IMPL"] = 1
73 "ChildDNSService.cpp",
75 "DNSAdditionalInfo.cpp",
76 "DNSListenerProxy.cpp",
78 "DNSRequestChild.cpp",
79 "DNSRequestParent.cpp",
82 "HostRecordQueue.cpp",
84 "IDNBlocklistUtils.cpp",
85 "NativeDNSResolverOverrideChild.cpp",
86 "NativeDNSResolverOverrideParent.cpp",
95 "TRRServiceChild.cpp",
96 "TRRServiceParent.cpp",
101 "PDNSRequestParams.ipdlh",
102 "PNativeDNSResolverOverride.ipdl",
106 include("/ipc/chromium/chromium-config.mozbuild")
108 FINAL_LIBRARY = "xul"
111 "etld_data.inc", script="prepare_tlds.py", inputs=["effective_tld_names.dat"]
114 # need to include etld_data.inc
118 "/netwerk/protocol/http",