2013-04-01 18:36:59 +00:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 21:20:01 +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/.
|
|
|
|
|
|
|
|
TEST_DIRS += ['tests']
|
2013-03-12 17:17:46 +00:00
|
|
|
|
|
|
|
XPIDL_SOURCES += [
|
|
|
|
'nsCExternalHandlerService.idl',
|
|
|
|
'nsIContentDispatchChooser.idl',
|
|
|
|
'nsIExternalHelperAppService.idl',
|
|
|
|
'nsIExternalProtocolService.idl',
|
|
|
|
'nsIExternalSharingAppService.idl',
|
|
|
|
'nsIExternalURLHandlerService.idl',
|
|
|
|
'nsIHandlerService.idl',
|
|
|
|
'nsIHelperAppLauncherDialog.idl',
|
|
|
|
]
|
|
|
|
|
2013-11-19 02:47:43 +00:00
|
|
|
XPIDL_MODULE = 'exthandler'
|
2013-03-19 18:47:00 +00:00
|
|
|
|
2014-02-10 22:57:01 +00:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
|
2013-04-16 19:24:43 +00:00
|
|
|
osdir = 'win'
|
2014-02-18 13:49:12 +00:00
|
|
|
LOCAL_INCLUDES += ['win']
|
2013-04-16 19:24:43 +00:00
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
|
|
|
osdir = 'win'
|
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
|
|
|
|
osdir = 'android'
|
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
|
|
|
|
osdir = 'gonk'
|
|
|
|
else:
|
|
|
|
osdir = 'unix'
|
|
|
|
|
|
|
|
EXPORTS += [
|
2013-05-03 16:54:45 +00:00
|
|
|
osdir + '/nsOSHelperAppService.h'
|
|
|
|
]
|
|
|
|
|
|
|
|
EXPORTS += [
|
2013-04-16 19:24:43 +00:00
|
|
|
'nsExternalHelperAppService.h',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
|
2013-10-23 23:05:43 +00:00
|
|
|
EXPORTS += [ '%s/%s' % (osdir, f) for f in [
|
|
|
|
'nsExternalSharingAppService.h',
|
|
|
|
'nsExternalURLHandlerService.h',
|
|
|
|
]]
|
2013-04-16 19:24:43 +00:00
|
|
|
|
|
|
|
EXPORTS.mozilla.dom += [
|
|
|
|
'ExternalHelperAppChild.h',
|
|
|
|
'ExternalHelperAppParent.h',
|
|
|
|
]
|
|
|
|
|
2013-11-19 07:50:59 +00:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 21:54:15 +00:00
|
|
|
'ExternalHelperAppParent.cpp',
|
|
|
|
'nsLocalHandlerApp.cpp',
|
|
|
|
'nsMIMEInfoImpl.cpp',
|
|
|
|
]
|
|
|
|
|
2013-11-19 07:50:59 +00:00
|
|
|
# These files can't be built in unified mode because they force NSPR logging.
|
|
|
|
SOURCES += [
|
2014-03-11 22:41:48 +00:00
|
|
|
'ExternalHelperAppChild.cpp',
|
2013-11-19 07:50:59 +00:00
|
|
|
'nsExternalHelperAppService.cpp',
|
|
|
|
'nsExternalProtocolHandler.cpp',
|
|
|
|
]
|
|
|
|
|
2013-04-23 21:54:15 +00:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
2013-11-19 07:50:59 +00:00
|
|
|
UNIFIED_SOURCES += [
|
2013-10-24 22:58:17 +00:00
|
|
|
'mac/nsLocalHandlerAppMac.mm',
|
|
|
|
'mac/nsMIMEInfoMac.mm',
|
2013-11-19 07:50:59 +00:00
|
|
|
]
|
|
|
|
# These files can't be built in unified mode because they force NSPR logging.
|
|
|
|
SOURCES += [
|
2013-10-24 22:58:17 +00:00
|
|
|
'mac/nsOSHelperAppService.mm',
|
2013-09-06 06:40:41 +00:00
|
|
|
]
|
2013-04-23 21:54:15 +00:00
|
|
|
else:
|
2013-11-19 07:50:59 +00:00
|
|
|
# These files can't be built in unified mode because they force NSPR logging.
|
2013-10-24 23:23:05 +00:00
|
|
|
SOURCES += [
|
2013-10-03 07:10:00 +00:00
|
|
|
osdir + '/nsOSHelperAppService.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
]
|
|
|
|
|
2013-06-10 12:36:26 +00:00
|
|
|
if CONFIG['MOZ_ENABLE_GTK']:
|
2013-11-19 07:50:59 +00:00
|
|
|
UNIFIED_SOURCES += [
|
2013-10-03 07:10:00 +00:00
|
|
|
'unix/nsGNOMERegistry.cpp',
|
|
|
|
'unix/nsMIMEInfoUnix.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
]
|
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
|
2013-11-19 07:50:59 +00:00
|
|
|
UNIFIED_SOURCES += [
|
2013-10-03 07:10:00 +00:00
|
|
|
'android/nsAndroidHandlerApp.cpp',
|
|
|
|
'android/nsExternalSharingAppService.cpp',
|
|
|
|
'android/nsExternalURLHandlerService.cpp',
|
2013-10-23 23:00:23 +00:00
|
|
|
'android/nsMIMEInfoAndroid.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
]
|
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'qt':
|
2013-11-19 07:50:59 +00:00
|
|
|
UNIFIED_SOURCES += [
|
2013-10-03 07:10:00 +00:00
|
|
|
'unix/nsGNOMERegistry.cpp',
|
|
|
|
'unix/nsMIMEInfoUnix.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
]
|
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
|
2013-11-19 07:50:59 +00:00
|
|
|
# These files can't be built in unified mode because they force NSPR logging.
|
2013-10-24 23:23:05 +00:00
|
|
|
SOURCES += [
|
2013-10-03 07:10:00 +00:00
|
|
|
'win/nsMIMEInfoWin.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_ENABLE_DBUS']:
|
2013-11-19 07:50:59 +00:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 21:54:15 +00:00
|
|
|
'nsDBusHandlerApp.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_ENABLE_CONTENTACTION']:
|
2013-11-19 07:50:59 +00:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 21:54:15 +00:00
|
|
|
'nsContentHandlerApp.cpp',
|
|
|
|
]
|
2013-07-01 13:56:28 +00:00
|
|
|
|
2013-06-11 20:38:22 +00:00
|
|
|
EXTRA_COMPONENTS += [
|
|
|
|
'nsHandlerService.js',
|
|
|
|
'nsHandlerService.manifest',
|
|
|
|
'nsWebHandlerApp.js',
|
|
|
|
'nsWebHandlerApp.manifest',
|
|
|
|
]
|
|
|
|
|
2013-07-01 13:56:28 +00:00
|
|
|
IPDL_SOURCES += [
|
|
|
|
'PExternalHelperApp.ipdl',
|
|
|
|
]
|
2013-08-22 06:55:59 +00:00
|
|
|
|
|
|
|
FAIL_ON_WARNINGS = True
|
|
|
|
|
2013-10-02 17:17:55 +00:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2013-11-19 02:47:14 +00:00
|
|
|
FINAL_LIBRARY = 'xul'
|
2014-02-15 20:24:59 +00:00
|
|
|
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/content/base/src',
|
|
|
|
'/dom/base',
|
|
|
|
'/dom/ipc',
|
|
|
|
'/netwerk/base/src',
|
|
|
|
'/netwerk/protocol/http',
|
|
|
|
]
|
|
|
|
|
2014-07-24 15:55:33 +00: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']
|