2016-07-14 16:16:42 +00:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 20:47:23 +00: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 11:33:47 +00:00
|
|
|
with Files('**'):
|
|
|
|
BUG_COMPONENT = ('Core', 'Networking: DNS')
|
|
|
|
|
2015-05-21 03:06:00 +00:00
|
|
|
DIRS += [
|
|
|
|
'mdns',
|
2019-08-22 14:09:42 +00:00
|
|
|
'tests'
|
2015-05-21 03:06:00 +00:00
|
|
|
]
|
|
|
|
|
2013-03-12 17:17:46 +00:00
|
|
|
XPIDL_SOURCES += [
|
2018-09-22 20:54:11 +00:00
|
|
|
'nsIDNSByTypeRecord.idl',
|
2013-03-12 17:17:46 +00:00
|
|
|
'nsIDNSListener.idl',
|
|
|
|
'nsIDNSRecord.idl',
|
|
|
|
'nsIDNSService.idl',
|
|
|
|
'nsIEffectiveTLDService.idl',
|
|
|
|
'nsIIDNService.idl',
|
2020-03-02 19:44:37 +00:00
|
|
|
'nsINativeDNSResolverOverride.idl',
|
2013-03-12 17:17:46 +00:00
|
|
|
'nsPIDNSService.idl',
|
|
|
|
]
|
|
|
|
|
2013-03-12 05:00:00 +00:00
|
|
|
XPIDL_MODULE = 'necko_dns'
|
|
|
|
|
2019-08-22 14:09:42 +00:00
|
|
|
EXTRA_JS_MODULES['netwerk-dns'] += [
|
|
|
|
'PublicSuffixList.jsm',
|
|
|
|
]
|
|
|
|
|
|
|
|
XPCSHELL_TESTS_MANIFESTS += ['tests/unit/xpcshell.ini']
|
|
|
|
|
2019-02-04 18:43:43 +00:00
|
|
|
EXPORTS += [
|
|
|
|
'nsEffectiveTLDService.h',
|
|
|
|
]
|
|
|
|
|
2013-04-16 19:24:43 +00:00
|
|
|
EXPORTS.mozilla.net += [
|
2013-12-11 19:03:51 +00:00
|
|
|
'ChildDNSService.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
'DNS.h',
|
2020-05-04 19:56:51 +00:00
|
|
|
'DNSByTypeRecord.h',
|
2013-12-11 19:03:51 +00:00
|
|
|
'DNSListenerProxy.h',
|
2020-04-14 09:14:41 +00:00
|
|
|
'DNSRequestBase.h',
|
2013-12-11 19:03:51 +00:00
|
|
|
'DNSRequestChild.h',
|
|
|
|
'DNSRequestParent.h',
|
2020-05-04 19:56:51 +00:00
|
|
|
'HTTPSSVC.h',
|
2018-11-24 12:04:34 +00:00
|
|
|
'IDNBlocklistUtils.h',
|
2020-06-05 13:27:35 +00:00
|
|
|
'NativeDNSResolverOverrideChild.h',
|
|
|
|
'NativeDNSResolverOverrideParent.h',
|
2018-02-01 09:20:49 +00:00
|
|
|
'TRRService.h',
|
2020-05-18 20:18:15 +00:00
|
|
|
'TRRServiceBase.h',
|
2020-05-18 20:18:03 +00:00
|
|
|
'TRRServiceChild.h',
|
|
|
|
'TRRServiceParent.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
]
|
|
|
|
|
2013-10-24 23:23:05 +00:00
|
|
|
SOURCES += [
|
2013-11-22 15:35:18 +00:00
|
|
|
'nsEffectiveTLDService.cpp', # Excluded from UNIFIED_SOURCES due to special build flags.
|
2014-10-08 20:19:14 +00:00
|
|
|
'nsHostResolver.cpp', # Redefines LOG
|
2013-05-25 00:21:14 +00:00
|
|
|
]
|
2013-04-23 21:54:15 +00:00
|
|
|
|
2013-11-22 15:35:18 +00:00
|
|
|
UNIFIED_SOURCES += [
|
2013-12-11 19:03:51 +00:00
|
|
|
'ChildDNSService.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
'DNS.cpp',
|
2013-12-11 19:03:51 +00:00
|
|
|
'DNSListenerProxy.cpp',
|
|
|
|
'DNSRequestChild.cpp',
|
|
|
|
'DNSRequestParent.cpp',
|
2014-10-08 20:19:14 +00:00
|
|
|
'GetAddrInfo.cpp',
|
2020-05-04 19:56:51 +00:00
|
|
|
'HTTPSSVC.cpp',
|
2018-11-24 12:04:34 +00:00
|
|
|
'IDNBlocklistUtils.cpp',
|
2020-06-05 13:27:35 +00:00
|
|
|
'NativeDNSResolverOverrideChild.cpp',
|
|
|
|
'NativeDNSResolverOverrideParent.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
'nsDNSService2.cpp',
|
|
|
|
'nsIDNService.cpp',
|
2013-11-22 15:35:18 +00:00
|
|
|
'punycode.c',
|
2018-02-01 09:20:49 +00:00
|
|
|
'TRR.cpp',
|
|
|
|
'TRRService.cpp',
|
2020-05-18 20:18:15 +00:00
|
|
|
'TRRServiceBase.cpp',
|
2020-05-18 20:18:03 +00:00
|
|
|
'TRRServiceChild.cpp',
|
|
|
|
'TRRServiceParent.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
]
|
2013-06-17 19:21:01 +00:00
|
|
|
|
2013-12-11 19:03:51 +00:00
|
|
|
IPDL_SOURCES = [
|
|
|
|
'PDNSRequest.ipdl',
|
|
|
|
'PDNSRequestParams.ipdlh',
|
2020-06-05 13:27:35 +00:00
|
|
|
'PNativeDNSResolverOverride.ipdl',
|
2020-05-18 20:18:03 +00:00
|
|
|
'PTRRService.ipdl',
|
2013-12-11 19:03:51 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2014-07-22 23:37:51 +00:00
|
|
|
FINAL_LIBRARY = 'xul'
|
2013-11-21 23:16:18 +00:00
|
|
|
|
2019-10-07 21:15:19 +00:00
|
|
|
GeneratedFile('etld_data.inc', script='prepare_tlds.py',
|
|
|
|
inputs=['effective_tld_names.dat'])
|
2013-11-28 14:25:39 +00:00
|
|
|
|
|
|
|
# need to include etld_data.inc
|
|
|
|
LOCAL_INCLUDES += [
|
2015-01-16 10:11:06 +00:00
|
|
|
'/netwerk/base',
|
2020-03-04 16:11:16 +00:00
|
|
|
'/netwerk/protocol/http',
|
2013-11-28 14:25:39 +00:00
|
|
|
]
|
2015-02-19 05:14:00 +00:00
|
|
|
|
2017-09-22 18:25:50 +00:00
|
|
|
USE_LIBS += ['icu']
|
2016-03-16 21:04:34 +00:00
|
|
|
|
2017-12-07 21:09:15 +00:00
|
|
|
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
|
2016-05-11 07:00:01 +00:00
|
|
|
CXXFLAGS += ['-Wno-error=shadow']
|