michael@0: # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- michael@0: # vim: set filetype=python: michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: TEST_DIRS += ['tests'] michael@0: michael@0: XPIDL_SOURCES += [ michael@0: 'nsCExternalHandlerService.idl', michael@0: 'nsIContentDispatchChooser.idl', michael@0: 'nsIExternalHelperAppService.idl', michael@0: 'nsIExternalProtocolService.idl', michael@0: 'nsIExternalSharingAppService.idl', michael@0: 'nsIExternalURLHandlerService.idl', michael@0: 'nsIHandlerService.idl', michael@0: 'nsIHelperAppLauncherDialog.idl', michael@0: ] michael@0: michael@0: XPIDL_MODULE = 'exthandler' michael@0: michael@0: if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows': michael@0: osdir = 'win' michael@0: LOCAL_INCLUDES += ['win'] michael@0: elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa': michael@0: osdir = 'win' michael@0: elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android': michael@0: osdir = 'android' michael@0: elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk': michael@0: osdir = 'gonk' michael@0: else: michael@0: osdir = 'unix' michael@0: michael@0: EXPORTS += [ michael@0: osdir + '/nsOSHelperAppService.h' michael@0: ] michael@0: michael@0: EXPORTS += [ michael@0: 'nsExternalHelperAppService.h', michael@0: ] michael@0: michael@0: if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android': michael@0: EXPORTS += [ '%s/%s' % (osdir, f) for f in [ michael@0: 'nsExternalSharingAppService.h', michael@0: 'nsExternalURLHandlerService.h', michael@0: ]] michael@0: michael@0: if CONFIG['MOZ_ENABLE_MEEGOTOUCHSHARE']: michael@0: EXPORTS += [ michael@0: osdir + '/nsExternalSharingAppService.h', michael@0: ] michael@0: michael@0: EXPORTS.mozilla.dom += [ michael@0: 'ExternalHelperAppChild.h', michael@0: 'ExternalHelperAppParent.h', michael@0: ] michael@0: michael@0: UNIFIED_SOURCES += [ michael@0: 'ExternalHelperAppParent.cpp', michael@0: 'nsLocalHandlerApp.cpp', michael@0: 'nsMIMEInfoImpl.cpp', michael@0: ] michael@0: michael@0: # These files can't be built in unified mode because they force NSPR logging. michael@0: SOURCES += [ michael@0: 'ExternalHelperAppChild.cpp', michael@0: 'nsExternalHelperAppService.cpp', michael@0: 'nsExternalProtocolHandler.cpp', michael@0: ] michael@0: michael@0: if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa': michael@0: UNIFIED_SOURCES += [ michael@0: 'mac/nsLocalHandlerAppMac.mm', michael@0: 'mac/nsMIMEInfoMac.mm', michael@0: ] michael@0: # These files can't be built in unified mode because they force NSPR logging. michael@0: SOURCES += [ michael@0: 'mac/nsOSHelperAppService.mm', michael@0: ] michael@0: else: michael@0: # These files can't be built in unified mode because they force NSPR logging. michael@0: SOURCES += [ michael@0: osdir + '/nsOSHelperAppService.cpp', michael@0: ] michael@0: michael@0: if CONFIG['MOZ_ENABLE_GTK']: michael@0: UNIFIED_SOURCES += [ michael@0: 'unix/nsGNOMERegistry.cpp', michael@0: 'unix/nsMIMEInfoUnix.cpp', michael@0: ] michael@0: elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android': michael@0: UNIFIED_SOURCES += [ michael@0: 'android/nsAndroidHandlerApp.cpp', michael@0: 'android/nsExternalSharingAppService.cpp', michael@0: 'android/nsExternalURLHandlerService.cpp', michael@0: 'android/nsMIMEInfoAndroid.cpp', michael@0: ] michael@0: elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'qt': michael@0: UNIFIED_SOURCES += [ michael@0: 'unix/nsGNOMERegistry.cpp', michael@0: 'unix/nsMIMEInfoUnix.cpp', michael@0: ] michael@0: elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows': michael@0: # These files can't be built in unified mode because they force NSPR logging. michael@0: SOURCES += [ michael@0: 'win/nsMIMEInfoWin.cpp', michael@0: ] michael@0: michael@0: if CONFIG['MOZ_ENABLE_DBUS']: michael@0: UNIFIED_SOURCES += [ michael@0: 'nsDBusHandlerApp.cpp', michael@0: ] michael@0: michael@0: if CONFIG['MOZ_ENABLE_MEEGOTOUCHSHARE']: michael@0: UNIFIED_SOURCES += [ michael@0: 'unix/nsMeegoExternalSharingAppService.cpp', michael@0: ] michael@0: michael@0: if CONFIG['MOZ_ENABLE_CONTENTACTION']: michael@0: UNIFIED_SOURCES += [ michael@0: 'nsContentHandlerApp.cpp', michael@0: ] michael@0: michael@0: EXTRA_COMPONENTS += [ michael@0: 'nsHandlerService.js', michael@0: 'nsHandlerService.manifest', michael@0: 'nsWebHandlerApp.js', michael@0: 'nsWebHandlerApp.manifest', michael@0: ] michael@0: michael@0: IPDL_SOURCES += [ michael@0: 'PExternalHelperApp.ipdl', michael@0: ] michael@0: michael@0: FAIL_ON_WARNINGS = True michael@0: michael@0: include('/ipc/chromium/chromium-config.mozbuild') michael@0: michael@0: FINAL_LIBRARY = 'xul' michael@0: michael@0: LOCAL_INCLUDES += [ michael@0: '/content/base/src', michael@0: '/dom/base', michael@0: '/dom/ipc', michael@0: '/netwerk/base/src', michael@0: '/netwerk/protocol/http', michael@0: ] michael@0: