2013-04-01 11:36:59 -07:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 13:20:01 -08: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 10:17:46 -07:00
|
|
|
|
|
|
|
XPIDL_SOURCES += [
|
|
|
|
'nsCExternalHandlerService.idl',
|
|
|
|
'nsIContentDispatchChooser.idl',
|
|
|
|
'nsIExternalHelperAppService.idl',
|
|
|
|
'nsIExternalProtocolService.idl',
|
|
|
|
'nsIExternalSharingAppService.idl',
|
|
|
|
'nsIExternalURLHandlerService.idl',
|
|
|
|
'nsIHandlerService.idl',
|
|
|
|
'nsIHelperAppLauncherDialog.idl',
|
|
|
|
]
|
|
|
|
|
2013-03-19 11:47:00 -07:00
|
|
|
MODULE = 'exthandler'
|
|
|
|
|
2013-04-16 12:24:43 -07:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'os2':
|
|
|
|
osdir = 'os2'
|
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
|
|
|
|
osdir = 'win'
|
|
|
|
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 09:54:45 -07:00
|
|
|
osdir + '/nsOSHelperAppService.h'
|
|
|
|
]
|
|
|
|
|
|
|
|
EXPORTS += [
|
2013-04-16 12:24:43 -07:00
|
|
|
'nsExternalHelperAppService.h',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
|
2013-10-23 16:05:43 -07:00
|
|
|
EXPORTS += [ '%s/%s' % (osdir, f) for f in [
|
|
|
|
'nsExternalSharingAppService.h',
|
|
|
|
'nsExternalURLHandlerService.h',
|
|
|
|
]]
|
2013-04-16 12:24:43 -07:00
|
|
|
|
|
|
|
if CONFIG['MOZ_ENABLE_MEEGOTOUCHSHARE']:
|
2013-09-03 20:28:05 -07:00
|
|
|
EXPORTS += [
|
|
|
|
osdir + '/nsExternalSharingAppService.h',
|
|
|
|
]
|
2013-04-16 12:24:43 -07:00
|
|
|
|
|
|
|
EXPORTS.mozilla.dom += [
|
|
|
|
'ExternalHelperAppChild.h',
|
|
|
|
'ExternalHelperAppParent.h',
|
|
|
|
]
|
|
|
|
|
2013-04-23 14:54:15 -07:00
|
|
|
CPP_SOURCES += [
|
|
|
|
'ExternalHelperAppChild.cpp',
|
|
|
|
'ExternalHelperAppParent.cpp',
|
|
|
|
'nsExternalHelperAppService.cpp',
|
|
|
|
'nsExternalProtocolHandler.cpp',
|
|
|
|
'nsLocalHandlerApp.cpp',
|
|
|
|
'nsMIMEInfoImpl.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
2013-09-05 23:40:41 -07:00
|
|
|
CMMSRCS += [
|
2013-10-24 15:58:17 -07:00
|
|
|
'mac/nsLocalHandlerAppMac.mm',
|
|
|
|
'mac/nsMIMEInfoMac.mm',
|
|
|
|
'mac/nsOSHelperAppService.mm',
|
2013-09-05 23:40:41 -07:00
|
|
|
]
|
2013-04-23 14:54:15 -07:00
|
|
|
else:
|
|
|
|
CPP_SOURCES += [
|
2013-10-03 00:10:00 -07:00
|
|
|
osdir + '/nsOSHelperAppService.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
]
|
|
|
|
|
2013-06-10 05:36:26 -07:00
|
|
|
if CONFIG['MOZ_ENABLE_GTK']:
|
2013-04-23 14:54:15 -07:00
|
|
|
CPP_SOURCES += [
|
2013-10-03 00:10:00 -07:00
|
|
|
'unix/nsGNOMERegistry.cpp',
|
|
|
|
'unix/nsMIMEInfoUnix.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
]
|
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
|
|
|
|
CPP_SOURCES += [
|
2013-10-03 00:10:00 -07:00
|
|
|
'android/nsAndroidHandlerApp.cpp',
|
|
|
|
'android/nsExternalSharingAppService.cpp',
|
|
|
|
'android/nsExternalURLHandlerService.cpp',
|
2013-10-23 16:00:23 -07:00
|
|
|
'android/nsMIMEInfoAndroid.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
]
|
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'qt':
|
|
|
|
CPP_SOURCES += [
|
2013-10-03 00:10:00 -07:00
|
|
|
'unix/nsGNOMERegistry.cpp',
|
|
|
|
'unix/nsMIMEInfoUnix.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
]
|
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
|
|
|
|
CPP_SOURCES += [
|
2013-10-03 00:10:00 -07:00
|
|
|
'win/nsMIMEInfoWin.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
]
|
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'os2':
|
|
|
|
CPP_SOURCES += [
|
2013-10-03 00:10:00 -07:00
|
|
|
'os2/nsMIMEInfoOS2.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_ENABLE_DBUS']:
|
|
|
|
CPP_SOURCES += [
|
|
|
|
'nsDBusHandlerApp.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_ENABLE_MEEGOTOUCHSHARE']:
|
|
|
|
CPP_SOURCES += [
|
2013-10-03 00:10:00 -07:00
|
|
|
'unix/nsMeegoExternalSharingAppService.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_ENABLE_CONTENTACTION']:
|
|
|
|
CPP_SOURCES += [
|
|
|
|
'nsContentHandlerApp.cpp',
|
|
|
|
]
|
2013-07-01 06:56:28 -07:00
|
|
|
|
2013-06-11 13:38:22 -07:00
|
|
|
EXTRA_COMPONENTS += [
|
|
|
|
'nsHandlerService.js',
|
|
|
|
'nsHandlerService.manifest',
|
|
|
|
'nsWebHandlerApp.js',
|
|
|
|
'nsWebHandlerApp.manifest',
|
|
|
|
]
|
|
|
|
|
2013-07-01 06:56:28 -07:00
|
|
|
IPDL_SOURCES += [
|
|
|
|
'PExternalHelperApp.ipdl',
|
|
|
|
]
|
2013-08-21 23:55:59 -07:00
|
|
|
|
|
|
|
FAIL_ON_WARNINGS = True
|
|
|
|
|
2013-08-21 23:56:01 -07:00
|
|
|
LIBXUL_LIBRARY = True
|
|
|
|
|
2013-08-15 06:02:09 -07:00
|
|
|
LIBRARY_NAME = 'exthandler_s'
|
|
|
|
|
2013-10-02 10:17:55 -07:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|