2013-04-01 22:36:59 +04:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; 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':
|
|
|
|
osdir = 'win'
|
2015-09-23 18:00:35 +03:00
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] in ('android', 'gonk', 'uikit'):
|
|
|
|
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
|
|
|
]
|
|
|
|
|
2013-06-10 16:36:26 +04:00
|
|
|
if CONFIG['MOZ_ENABLE_GTK']:
|
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'] == 'qt':
|
2014-11-20 09:02:51 +03:00
|
|
|
SOURCES += [
|
|
|
|
'unix/nsMIMEInfoQt.cpp',
|
|
|
|
]
|
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'] == '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',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_ENABLE_CONTENTACTION']:
|
2013-11-19 11:50:59 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsContentHandlerApp.cpp',
|
|
|
|
]
|
2013-07-01 17:56:28 +04:00
|
|
|
|
2013-06-12 00:38:22 +04:00
|
|
|
EXTRA_COMPONENTS += [
|
|
|
|
'nsHandlerService.js',
|
|
|
|
'nsHandlerService.manifest',
|
|
|
|
'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 += [
|
|
|
|
'/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']
|
|
|
|
|
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('qt', 'gtk2', 'gtk3'):
|
|
|
|
CXXFLAGS += CONFIG['TK_CFLAGS']
|
|
|
|
CXXFLAGS += CONFIG['MOZ_DBUS_GLIB_CFLAGS']
|