2013-04-01 22:36:59 +04:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; 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/.
|
|
|
|
|
2015-05-21 06:06:00 +03:00
|
|
|
DIRS += [
|
|
|
|
'mdns',
|
|
|
|
]
|
|
|
|
|
2013-03-12 21:17:46 +04:00
|
|
|
XPIDL_SOURCES += [
|
|
|
|
'nsIDNSListener.idl',
|
|
|
|
'nsIDNSRecord.idl',
|
|
|
|
'nsIDNSService.idl',
|
|
|
|
'nsIEffectiveTLDService.idl',
|
|
|
|
'nsIIDNService.idl',
|
|
|
|
'nsPIDNSService.idl',
|
|
|
|
]
|
|
|
|
|
2013-03-12 09:00:00 +04:00
|
|
|
XPIDL_MODULE = 'necko_dns'
|
|
|
|
|
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',
|
2013-12-11 23:03:51 +04:00
|
|
|
'DNSListenerProxy.h',
|
|
|
|
'DNSRequestChild.h',
|
|
|
|
'DNSRequestParent.h',
|
|
|
|
'PDNSParams.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
]
|
|
|
|
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-11-22 19:35:18 +04:00
|
|
|
'nsEffectiveTLDService.cpp', # Excluded from UNIFIED_SOURCES due to special build flags.
|
2014-10-09 00:19:14 +04:00
|
|
|
'nsHostResolver.cpp', # Redefines LOG
|
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',
|
|
|
|
'DNSRequestChild.cpp',
|
|
|
|
'DNSRequestParent.cpp',
|
2014-10-09 00:19:14 +04:00
|
|
|
'GetAddrInfo.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsDNSService2.cpp',
|
|
|
|
'nsIDNService.cpp',
|
2013-11-22 19:35:18 +04:00
|
|
|
'punycode.c',
|
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',
|
|
|
|
]
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
GENERATED_FILES = [
|
|
|
|
'etld_data.inc',
|
|
|
|
]
|
2014-12-16 23:15:14 +03:00
|
|
|
etld_data = GENERATED_FILES['etld_data.inc']
|
|
|
|
etld_data.script = 'prepare_tlds.py'
|
|
|
|
etld_data.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',
|
2013-11-28 18:25:39 +04:00
|
|
|
]
|
2015-02-19 08:14:00 +03:00
|
|
|
|
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk' and CONFIG['ANDROID_VERSION'] > '19':
|
2015-11-04 08:28:42 +03:00
|
|
|
LOCAL_INCLUDES += ['%' + '%s/bionic/libc/dns/include' % CONFIG['ANDROID_SOURCE']]
|
2015-10-28 17:05:15 +03:00
|
|
|
|
|
|
|
if CONFIG['ENABLE_INTL_API']:
|
|
|
|
DEFINES['IDNA2008'] = True
|
|
|
|
CXXFLAGS += CONFIG['MOZ_ICU_CFLAGS']
|
|
|
|
CFLAGS += CONFIG['MOZ_ICU_CFLAGS']
|
2015-12-02 12:40:50 +03:00
|
|
|
LOCAL_INCLUDES += CONFIG['MOZ_ICU_INCLUDES']
|
2015-10-28 17:05:15 +03:00
|
|
|
USE_LIBS += ['icu']
|
|
|
|
else:
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'nameprep.c',
|
|
|
|
]
|