uriloader/exthandler/moz.build

Wed, 31 Dec 2014 07:53:36 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:53:36 +0100
branch
TOR_BUG_3246
changeset 5
4ab42b5ab56c
permissions
-rw-r--r--

Correct small whitespace inconsistency, lost while renaming variables.

michael@0 1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
michael@0 2 # vim: set filetype=python:
michael@0 3 # This Source Code Form is subject to the terms of the Mozilla Public
michael@0 4 # License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
michael@0 6
michael@0 7 TEST_DIRS += ['tests']
michael@0 8
michael@0 9 XPIDL_SOURCES += [
michael@0 10 'nsCExternalHandlerService.idl',
michael@0 11 'nsIContentDispatchChooser.idl',
michael@0 12 'nsIExternalHelperAppService.idl',
michael@0 13 'nsIExternalProtocolService.idl',
michael@0 14 'nsIExternalSharingAppService.idl',
michael@0 15 'nsIExternalURLHandlerService.idl',
michael@0 16 'nsIHandlerService.idl',
michael@0 17 'nsIHelperAppLauncherDialog.idl',
michael@0 18 ]
michael@0 19
michael@0 20 XPIDL_MODULE = 'exthandler'
michael@0 21
michael@0 22 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
michael@0 23 osdir = 'win'
michael@0 24 LOCAL_INCLUDES += ['win']
michael@0 25 elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
michael@0 26 osdir = 'win'
michael@0 27 elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
michael@0 28 osdir = 'android'
michael@0 29 elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
michael@0 30 osdir = 'gonk'
michael@0 31 else:
michael@0 32 osdir = 'unix'
michael@0 33
michael@0 34 EXPORTS += [
michael@0 35 osdir + '/nsOSHelperAppService.h'
michael@0 36 ]
michael@0 37
michael@0 38 EXPORTS += [
michael@0 39 'nsExternalHelperAppService.h',
michael@0 40 ]
michael@0 41
michael@0 42 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
michael@0 43 EXPORTS += [ '%s/%s' % (osdir, f) for f in [
michael@0 44 'nsExternalSharingAppService.h',
michael@0 45 'nsExternalURLHandlerService.h',
michael@0 46 ]]
michael@0 47
michael@0 48 if CONFIG['MOZ_ENABLE_MEEGOTOUCHSHARE']:
michael@0 49 EXPORTS += [
michael@0 50 osdir + '/nsExternalSharingAppService.h',
michael@0 51 ]
michael@0 52
michael@0 53 EXPORTS.mozilla.dom += [
michael@0 54 'ExternalHelperAppChild.h',
michael@0 55 'ExternalHelperAppParent.h',
michael@0 56 ]
michael@0 57
michael@0 58 UNIFIED_SOURCES += [
michael@0 59 'ExternalHelperAppParent.cpp',
michael@0 60 'nsLocalHandlerApp.cpp',
michael@0 61 'nsMIMEInfoImpl.cpp',
michael@0 62 ]
michael@0 63
michael@0 64 # These files can't be built in unified mode because they force NSPR logging.
michael@0 65 SOURCES += [
michael@0 66 'ExternalHelperAppChild.cpp',
michael@0 67 'nsExternalHelperAppService.cpp',
michael@0 68 'nsExternalProtocolHandler.cpp',
michael@0 69 ]
michael@0 70
michael@0 71 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
michael@0 72 UNIFIED_SOURCES += [
michael@0 73 'mac/nsLocalHandlerAppMac.mm',
michael@0 74 'mac/nsMIMEInfoMac.mm',
michael@0 75 ]
michael@0 76 # These files can't be built in unified mode because they force NSPR logging.
michael@0 77 SOURCES += [
michael@0 78 'mac/nsOSHelperAppService.mm',
michael@0 79 ]
michael@0 80 else:
michael@0 81 # These files can't be built in unified mode because they force NSPR logging.
michael@0 82 SOURCES += [
michael@0 83 osdir + '/nsOSHelperAppService.cpp',
michael@0 84 ]
michael@0 85
michael@0 86 if CONFIG['MOZ_ENABLE_GTK']:
michael@0 87 UNIFIED_SOURCES += [
michael@0 88 'unix/nsGNOMERegistry.cpp',
michael@0 89 'unix/nsMIMEInfoUnix.cpp',
michael@0 90 ]
michael@0 91 elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
michael@0 92 UNIFIED_SOURCES += [
michael@0 93 'android/nsAndroidHandlerApp.cpp',
michael@0 94 'android/nsExternalSharingAppService.cpp',
michael@0 95 'android/nsExternalURLHandlerService.cpp',
michael@0 96 'android/nsMIMEInfoAndroid.cpp',
michael@0 97 ]
michael@0 98 elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'qt':
michael@0 99 UNIFIED_SOURCES += [
michael@0 100 'unix/nsGNOMERegistry.cpp',
michael@0 101 'unix/nsMIMEInfoUnix.cpp',
michael@0 102 ]
michael@0 103 elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
michael@0 104 # These files can't be built in unified mode because they force NSPR logging.
michael@0 105 SOURCES += [
michael@0 106 'win/nsMIMEInfoWin.cpp',
michael@0 107 ]
michael@0 108
michael@0 109 if CONFIG['MOZ_ENABLE_DBUS']:
michael@0 110 UNIFIED_SOURCES += [
michael@0 111 'nsDBusHandlerApp.cpp',
michael@0 112 ]
michael@0 113
michael@0 114 if CONFIG['MOZ_ENABLE_MEEGOTOUCHSHARE']:
michael@0 115 UNIFIED_SOURCES += [
michael@0 116 'unix/nsMeegoExternalSharingAppService.cpp',
michael@0 117 ]
michael@0 118
michael@0 119 if CONFIG['MOZ_ENABLE_CONTENTACTION']:
michael@0 120 UNIFIED_SOURCES += [
michael@0 121 'nsContentHandlerApp.cpp',
michael@0 122 ]
michael@0 123
michael@0 124 EXTRA_COMPONENTS += [
michael@0 125 'nsHandlerService.js',
michael@0 126 'nsHandlerService.manifest',
michael@0 127 'nsWebHandlerApp.js',
michael@0 128 'nsWebHandlerApp.manifest',
michael@0 129 ]
michael@0 130
michael@0 131 IPDL_SOURCES += [
michael@0 132 'PExternalHelperApp.ipdl',
michael@0 133 ]
michael@0 134
michael@0 135 FAIL_ON_WARNINGS = True
michael@0 136
michael@0 137 include('/ipc/chromium/chromium-config.mozbuild')
michael@0 138
michael@0 139 FINAL_LIBRARY = 'xul'
michael@0 140
michael@0 141 LOCAL_INCLUDES += [
michael@0 142 '/content/base/src',
michael@0 143 '/dom/base',
michael@0 144 '/dom/ipc',
michael@0 145 '/netwerk/base/src',
michael@0 146 '/netwerk/protocol/http',
michael@0 147 ]
michael@0 148

mercurial