2016-07-14 19:16:42 +03:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 01:20:01 +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/.
|
|
|
|
|
|
|
|
TEST_DIRS += ['tests']
|
2013-03-12 21:17:46 +04:00
|
|
|
|
|
|
|
XPIDL_SOURCES += [
|
|
|
|
'nsCExternalHandlerService.idl',
|
|
|
|
'nsIContentDispatchChooser.idl',
|
|
|
|
'nsIExternalHelperAppService.idl',
|
|
|
|
'nsIExternalProtocolService.idl',
|
|
|
|
'nsIExternalSharingAppService.idl',
|
|
|
|
'nsIExternalURLHandlerService.idl',
|
|
|
|
'nsIHandlerService.idl',
|
|
|
|
'nsIHelperAppLauncherDialog.idl',
|
|
|
|
]
|
|
|
|
|
2013-11-19 06:47:43 +04:00
|
|
|
XPIDL_MODULE = 'exthandler'
|
2013-03-19 22:47:00 +04:00
|
|
|
|
2014-02-11 02:57:01 +04:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
|
2013-04-16 23:24:43 +04:00
|
|
|
osdir = 'win'
|
2014-02-18 17:49:12 +04:00
|
|
|
LOCAL_INCLUDES += ['win']
|
2013-04-16 23:24:43 +04:00
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
2016-07-28 07:12:39 +03:00
|
|
|
osdir = 'mac'
|
2017-04-18 10:56:09 +03:00
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] in ('android', 'uikit'):
|
2015-09-23 18:00:35 +03:00
|
|
|
osdir = CONFIG['MOZ_WIDGET_TOOLKIT']
|
2013-04-16 23:24:43 +04:00
|
|
|
else:
|
|
|
|
osdir = 'unix'
|
|
|
|
|
|
|
|
EXPORTS += [
|
2013-05-03 20:54:45 +04:00
|
|
|
osdir + '/nsOSHelperAppService.h'
|
|
|
|
]
|
|
|
|
|
|
|
|
EXPORTS += [
|
2015-08-26 02:42:21 +03:00
|
|
|
'ContentHandlerService.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'nsExternalHelperAppService.h',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
|
2013-10-24 03:05:43 +04:00
|
|
|
EXPORTS += [ '%s/%s' % (osdir, f) for f in [
|
|
|
|
'nsExternalSharingAppService.h',
|
|
|
|
'nsExternalURLHandlerService.h',
|
|
|
|
]]
|
2013-04-16 23:24:43 +04:00
|
|
|
|
|
|
|
EXPORTS.mozilla.dom += [
|
|
|
|
'ExternalHelperAppChild.h',
|
|
|
|
'ExternalHelperAppParent.h',
|
|
|
|
]
|
|
|
|
|
2013-11-19 11:50:59 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2015-08-26 02:42:21 +03:00
|
|
|
'ContentHandlerService.cpp',
|
2014-10-07 03:32:50 +04:00
|
|
|
'ExternalHelperAppChild.cpp',
|
2014-10-09 00:19:14 +04:00
|
|
|
'ExternalHelperAppParent.cpp',
|
2015-08-26 02:42:21 +03:00
|
|
|
'HandlerServiceParent.cpp',
|
2014-10-07 03:32:50 +04:00
|
|
|
'nsExternalHelperAppService.cpp',
|
|
|
|
'nsExternalProtocolHandler.cpp',
|
2014-10-09 00:19:14 +04:00
|
|
|
'nsLocalHandlerApp.cpp',
|
|
|
|
'nsMIMEInfoImpl.cpp',
|
2014-10-07 03:32:50 +04:00
|
|
|
]
|
|
|
|
|
2013-04-24 01:54:15 +04:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
2013-11-19 11:50:59 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-10-25 02:58:17 +04:00
|
|
|
'mac/nsLocalHandlerAppMac.mm',
|
|
|
|
'mac/nsMIMEInfoMac.mm',
|
|
|
|
'mac/nsOSHelperAppService.mm',
|
2013-09-06 10:40:41 +04:00
|
|
|
]
|
2015-09-23 18:00:35 +03:00
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'uikit':
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'uikit/nsLocalHandlerAppUIKit.mm',
|
|
|
|
'uikit/nsMIMEInfoUIKit.mm',
|
|
|
|
'uikit/nsOSHelperAppService.mm',
|
|
|
|
]
|
2013-04-24 01:54:15 +04:00
|
|
|
else:
|
2014-10-09 00:19:14 +04:00
|
|
|
# These files can't be built in unified mode because they redefine LOG.
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-10-03 11:10:00 +04:00
|
|
|
osdir + '/nsOSHelperAppService.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
2017-12-08 00:09:15 +03:00
|
|
|
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
|
2016-05-11 10:00:01 +03:00
|
|
|
CXXFLAGS += ['-Wno-error=shadow']
|
2013-04-24 01:54:15 +04:00
|
|
|
|
2016-03-16 07:47:26 +03:00
|
|
|
if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
|
2013-11-19 11:50:59 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-10-03 11:10:00 +04:00
|
|
|
'unix/nsGNOMERegistry.cpp',
|
|
|
|
'unix/nsMIMEInfoUnix.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
|
2013-11-19 11:50:59 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-10-03 11:10:00 +04:00
|
|
|
'android/nsAndroidHandlerApp.cpp',
|
|
|
|
'android/nsExternalSharingAppService.cpp',
|
|
|
|
'android/nsExternalURLHandlerService.cpp',
|
2013-10-24 03:00:23 +04:00
|
|
|
'android/nsMIMEInfoAndroid.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
|
2014-10-09 00:19:14 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-10-03 11:10:00 +04:00
|
|
|
'win/nsMIMEInfoWin.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_ENABLE_DBUS']:
|
2013-11-19 11:50:59 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsDBusHandlerApp.cpp',
|
|
|
|
]
|
2017-11-02 01:24:38 +03:00
|
|
|
EXPORTS.mozilla += [
|
|
|
|
'DBusHelpers.h',
|
|
|
|
]
|
2013-04-24 01:54:15 +04:00
|
|
|
|
2013-06-12 00:38:22 +04:00
|
|
|
EXTRA_COMPONENTS += [
|
2018-03-15 16:44:00 +03:00
|
|
|
'HandlerService.js',
|
|
|
|
'HandlerService.manifest',
|
2013-06-12 00:38:22 +04:00
|
|
|
'nsWebHandlerApp.js',
|
|
|
|
'nsWebHandlerApp.manifest',
|
|
|
|
]
|
|
|
|
|
2013-07-01 17:56:28 +04:00
|
|
|
IPDL_SOURCES += [
|
|
|
|
'PExternalHelperApp.ipdl',
|
2015-08-26 02:42:21 +03:00
|
|
|
'PHandlerService.ipdl',
|
2013-07-01 17:56:28 +04:00
|
|
|
]
|
2013-08-22 10:55:59 +04:00
|
|
|
|
2013-10-02 21:17:55 +04:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2013-11-19 06:47:14 +04:00
|
|
|
FINAL_LIBRARY = 'xul'
|
2014-02-16 00:24:59 +04:00
|
|
|
|
|
|
|
LOCAL_INCLUDES += [
|
2017-11-03 15:23:25 +03:00
|
|
|
'/docshell/base',
|
2014-02-16 00:24:59 +04:00
|
|
|
'/dom/base',
|
|
|
|
'/dom/ipc',
|
2015-01-20 11:58:00 +03:00
|
|
|
'/netwerk/base',
|
2014-02-16 00:24:59 +04:00
|
|
|
'/netwerk/protocol/http',
|
|
|
|
]
|
|
|
|
|
2014-07-24 19:55:33 +04:00
|
|
|
if CONFIG['MOZ_ENABLE_DBUS']:
|
|
|
|
CXXFLAGS += CONFIG['TK_CFLAGS']
|
|
|
|
CXXFLAGS += CONFIG['MOZ_DBUS_CFLAGS']
|
|
|
|
|
2018-01-10 12:04:59 +03:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gtk3':
|
2014-07-24 19:55:33 +04:00
|
|
|
CXXFLAGS += CONFIG['TK_CFLAGS']
|
|
|
|
CXXFLAGS += CONFIG['MOZ_DBUS_GLIB_CFLAGS']
|