1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/uriloader/exthandler/moz.build Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,148 @@ 1.4 +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- 1.5 +# vim: set filetype=python: 1.6 +# This Source Code Form is subject to the terms of the Mozilla Public 1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.9 + 1.10 +TEST_DIRS += ['tests'] 1.11 + 1.12 +XPIDL_SOURCES += [ 1.13 + 'nsCExternalHandlerService.idl', 1.14 + 'nsIContentDispatchChooser.idl', 1.15 + 'nsIExternalHelperAppService.idl', 1.16 + 'nsIExternalProtocolService.idl', 1.17 + 'nsIExternalSharingAppService.idl', 1.18 + 'nsIExternalURLHandlerService.idl', 1.19 + 'nsIHandlerService.idl', 1.20 + 'nsIHelperAppLauncherDialog.idl', 1.21 +] 1.22 + 1.23 +XPIDL_MODULE = 'exthandler' 1.24 + 1.25 +if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows': 1.26 + osdir = 'win' 1.27 + LOCAL_INCLUDES += ['win'] 1.28 +elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa': 1.29 + osdir = 'win' 1.30 +elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android': 1.31 + osdir = 'android' 1.32 +elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk': 1.33 + osdir = 'gonk' 1.34 +else: 1.35 + osdir = 'unix' 1.36 + 1.37 +EXPORTS += [ 1.38 + osdir + '/nsOSHelperAppService.h' 1.39 +] 1.40 + 1.41 +EXPORTS += [ 1.42 + 'nsExternalHelperAppService.h', 1.43 +] 1.44 + 1.45 +if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android': 1.46 + EXPORTS += [ '%s/%s' % (osdir, f) for f in [ 1.47 + 'nsExternalSharingAppService.h', 1.48 + 'nsExternalURLHandlerService.h', 1.49 + ]] 1.50 + 1.51 +if CONFIG['MOZ_ENABLE_MEEGOTOUCHSHARE']: 1.52 + EXPORTS += [ 1.53 + osdir + '/nsExternalSharingAppService.h', 1.54 + ] 1.55 + 1.56 +EXPORTS.mozilla.dom += [ 1.57 + 'ExternalHelperAppChild.h', 1.58 + 'ExternalHelperAppParent.h', 1.59 +] 1.60 + 1.61 +UNIFIED_SOURCES += [ 1.62 + 'ExternalHelperAppParent.cpp', 1.63 + 'nsLocalHandlerApp.cpp', 1.64 + 'nsMIMEInfoImpl.cpp', 1.65 +] 1.66 + 1.67 +# These files can't be built in unified mode because they force NSPR logging. 1.68 +SOURCES += [ 1.69 + 'ExternalHelperAppChild.cpp', 1.70 + 'nsExternalHelperAppService.cpp', 1.71 + 'nsExternalProtocolHandler.cpp', 1.72 +] 1.73 + 1.74 +if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa': 1.75 + UNIFIED_SOURCES += [ 1.76 + 'mac/nsLocalHandlerAppMac.mm', 1.77 + 'mac/nsMIMEInfoMac.mm', 1.78 + ] 1.79 + # These files can't be built in unified mode because they force NSPR logging. 1.80 + SOURCES += [ 1.81 + 'mac/nsOSHelperAppService.mm', 1.82 + ] 1.83 +else: 1.84 + # These files can't be built in unified mode because they force NSPR logging. 1.85 + SOURCES += [ 1.86 + osdir + '/nsOSHelperAppService.cpp', 1.87 + ] 1.88 + 1.89 +if CONFIG['MOZ_ENABLE_GTK']: 1.90 + UNIFIED_SOURCES += [ 1.91 + 'unix/nsGNOMERegistry.cpp', 1.92 + 'unix/nsMIMEInfoUnix.cpp', 1.93 + ] 1.94 +elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android': 1.95 + UNIFIED_SOURCES += [ 1.96 + 'android/nsAndroidHandlerApp.cpp', 1.97 + 'android/nsExternalSharingAppService.cpp', 1.98 + 'android/nsExternalURLHandlerService.cpp', 1.99 + 'android/nsMIMEInfoAndroid.cpp', 1.100 + ] 1.101 +elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'qt': 1.102 + UNIFIED_SOURCES += [ 1.103 + 'unix/nsGNOMERegistry.cpp', 1.104 + 'unix/nsMIMEInfoUnix.cpp', 1.105 + ] 1.106 +elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows': 1.107 + # These files can't be built in unified mode because they force NSPR logging. 1.108 + SOURCES += [ 1.109 + 'win/nsMIMEInfoWin.cpp', 1.110 + ] 1.111 + 1.112 +if CONFIG['MOZ_ENABLE_DBUS']: 1.113 + UNIFIED_SOURCES += [ 1.114 + 'nsDBusHandlerApp.cpp', 1.115 + ] 1.116 + 1.117 +if CONFIG['MOZ_ENABLE_MEEGOTOUCHSHARE']: 1.118 + UNIFIED_SOURCES += [ 1.119 + 'unix/nsMeegoExternalSharingAppService.cpp', 1.120 + ] 1.121 + 1.122 +if CONFIG['MOZ_ENABLE_CONTENTACTION']: 1.123 + UNIFIED_SOURCES += [ 1.124 + 'nsContentHandlerApp.cpp', 1.125 + ] 1.126 + 1.127 +EXTRA_COMPONENTS += [ 1.128 + 'nsHandlerService.js', 1.129 + 'nsHandlerService.manifest', 1.130 + 'nsWebHandlerApp.js', 1.131 + 'nsWebHandlerApp.manifest', 1.132 +] 1.133 + 1.134 +IPDL_SOURCES += [ 1.135 + 'PExternalHelperApp.ipdl', 1.136 +] 1.137 + 1.138 +FAIL_ON_WARNINGS = True 1.139 + 1.140 +include('/ipc/chromium/chromium-config.mozbuild') 1.141 + 1.142 +FINAL_LIBRARY = 'xul' 1.143 + 1.144 +LOCAL_INCLUDES += [ 1.145 + '/content/base/src', 1.146 + '/dom/base', 1.147 + '/dom/ipc', 1.148 + '/netwerk/base/src', 1.149 + '/netwerk/protocol/http', 1.150 +] 1.151 +