Bug 1794427 - Origin Controls reflect implicit access through content scripts r=willd...
[gecko.git] / netwerk / dns / moz.build
blob3538707f7e574f1361624f5e7a5836ceea01a6e3
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/.
7 with Files("**"):
8     BUG_COMPONENT = ("Core", "Networking: DNS")
10 DIRS += ["tests"]
12 XPIDL_SOURCES += [
13     "nsIDNSAdditionalInfo.idl",
14     "nsIDNSByTypeRecord.idl",
15     "nsIDNSListener.idl",
16     "nsIDNSRecord.idl",
17     "nsIDNSService.idl",
18     "nsIEffectiveTLDService.idl",
19     "nsIIDNService.idl",
20     "nsINativeDNSResolverOverride.idl",
21     "nsPIDNSService.idl",
24 XPIDL_MODULE = "necko_dns"
26 EXTRA_JS_MODULES["netwerk-dns"] += [
27     "PublicSuffixList.jsm",
30 XPCSHELL_TESTS_MANIFESTS += ["tests/unit/xpcshell.ini"]
32 EXPORTS += [
33     "nsEffectiveTLDService.h",
36 EXPORTS.mozilla.net += [
37     "ChildDNSService.h",
38     "DNS.h",
39     "DNSByTypeRecord.h",
40     "DNSListenerProxy.h",
41     "DNSPacket.h",
42     "DNSRequestBase.h",
43     "DNSRequestChild.h",
44     "DNSRequestParent.h",
45     "DNSServiceBase.h",
46     "HTTPSSVC.h",
47     "IDNBlocklistUtils.h",
48     "NativeDNSResolverOverrideChild.h",
49     "NativeDNSResolverOverrideParent.h",
50     "TRRService.h",
51     "TRRServiceBase.h",
52     "TRRServiceChild.h",
53     "TRRServiceParent.h",
56 SOURCES += [
57     "GetAddrInfo.cpp",  # Undefines UNICODE
58     "nsEffectiveTLDService.cpp",  # Excluded from UNIFIED_SOURCES due to special build flags.
61 UNIFIED_SOURCES += [
62     "ChildDNSService.cpp",
63     "DNS.cpp",
64     "DNSAdditionalInfo.cpp",
65     "DNSListenerProxy.cpp",
66     "DNSPacket.cpp",
67     "DNSRequestChild.cpp",
68     "DNSRequestParent.cpp",
69     "DNSServiceBase.cpp",
70     "DNSUtils.cpp",
71     "HostRecordQueue.cpp",
72     "HTTPSSVC.cpp",
73     "IDNBlocklistUtils.cpp",
74     "NativeDNSResolverOverrideChild.cpp",
75     "NativeDNSResolverOverrideParent.cpp",
76     "nsDNSService2.cpp",
77     "nsHostRecord.cpp",
78     "nsHostResolver.cpp",
79     "nsIDNService.cpp",
80     "ODoH.cpp",
81     "ODoHService.cpp",
82     "punycode.c",
83     "TRR.cpp",
84     "TRRQuery.cpp",
85     "TRRService.cpp",
86     "TRRServiceBase.cpp",
87     "TRRServiceChild.cpp",
88     "TRRServiceParent.cpp",
91 IPDL_SOURCES = [
92     "PDNSRequest.ipdl",
93     "PDNSRequestParams.ipdlh",
94     "PNativeDNSResolverOverride.ipdl",
95     "PTRRService.ipdl",
98 include("/ipc/chromium/chromium-config.mozbuild")
100 FINAL_LIBRARY = "xul"
102 GeneratedFile(
103     "etld_data.inc", script="prepare_tlds.py", inputs=["effective_tld_names.dat"]
106 # need to include etld_data.inc
107 LOCAL_INCLUDES += [
108     "/netwerk/base",
109     "/netwerk/ipc",
110     "/netwerk/protocol/http",
113 USE_LIBS += ["icu"]