Backed out 3 changesets (bug 1901078, bug 1749048) for causing interface related...
[gecko.git] / netwerk / dns / moz.build
blob1bb0430f01aa3d8f489cf013233cd23d7ef5e239
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     "nsITRRSkipReason.idl",
22     "nsPIDNSService.idl",
25 XPIDL_MODULE = "necko_dns"
27 EXTRA_JS_MODULES["netwerk-dns"] += [
28     "PublicSuffixList.sys.mjs",
31 XPCSHELL_TESTS_MANIFESTS += ["tests/unit/xpcshell.toml"]
33 EXPORTS += [
34     "nsEffectiveTLDService.h",
37 EXPORTS.mozilla.net += [
38     "ChildDNSService.h",
39     "DNS.h",
40     "DNSByTypeRecord.h",
41     "DNSListenerProxy.h",
42     "DNSPacket.h",
43     "DNSRequestBase.h",
44     "DNSRequestChild.h",
45     "DNSRequestParent.h",
46     "DNSServiceBase.h",
47     "HTTPSSVC.h",
48     "IDNBlocklistUtils.h",
49     "NativeDNSResolverOverrideChild.h",
50     "NativeDNSResolverOverrideParent.h",
51     "TRRService.h",
52     "TRRServiceBase.h",
53     "TRRServiceChild.h",
54     "TRRServiceParent.h",
57 SOURCES += [
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"]
66     OS_LIBS += ["resolv"]
67 elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "android":
68     SOURCES += ["PlatformDNSAndroid.cpp"]
69 else:
70     DEFINES["MOZ_NO_HTTPS_IMPL"] = 1
72 UNIFIED_SOURCES += [
73     "ChildDNSService.cpp",
74     "DNS.cpp",
75     "DNSAdditionalInfo.cpp",
76     "DNSListenerProxy.cpp",
77     "DNSPacket.cpp",
78     "DNSRequestChild.cpp",
79     "DNSRequestParent.cpp",
80     "DNSServiceBase.cpp",
81     "DNSUtils.cpp",
82     "HostRecordQueue.cpp",
83     "HTTPSSVC.cpp",
84     "IDNBlocklistUtils.cpp",
85     "NativeDNSResolverOverrideChild.cpp",
86     "NativeDNSResolverOverrideParent.cpp",
87     "nsDNSService2.cpp",
88     "nsHostRecord.cpp",
89     "nsHostResolver.cpp",
90     "nsIDNService.cpp",
91     "TRR.cpp",
92     "TRRQuery.cpp",
93     "TRRService.cpp",
94     "TRRServiceBase.cpp",
95     "TRRServiceChild.cpp",
96     "TRRServiceParent.cpp",
99 IPDL_SOURCES = [
100     "PDNSRequest.ipdl",
101     "PDNSRequestParams.ipdlh",
102     "PNativeDNSResolverOverride.ipdl",
103     "PTRRService.ipdl",
106 include("/ipc/chromium/chromium-config.mozbuild")
108 FINAL_LIBRARY = "xul"
110 GeneratedFile(
111     "etld_data.inc", script="prepare_tlds.py", inputs=["effective_tld_names.dat"]
114 # need to include etld_data.inc
115 LOCAL_INCLUDES += [
116     "/netwerk/base",
117     "/netwerk/ipc",
118     "/netwerk/protocol/http",
121 USE_LIBS += ["icu"]