1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 SPHINX_TREES["/uriloader/exthandler"] = "docs"
12 "nsCExternalHandlerService.idl",
13 "nsIContentDispatchChooser.idl",
14 "nsIExternalHelperAppService.idl",
15 "nsIExternalProtocolService.idl",
16 "nsIHandlerService.idl",
17 "nsIHelperAppLauncherDialog.idl",
18 "nsISharingHandlerApp.idl",
21 XPIDL_MODULE = "exthandler"
23 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "windows":
25 LOCAL_INCLUDES += ["win"]
26 elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "cocoa":
28 elif CONFIG["MOZ_WIDGET_TOOLKIT"] in ("android", "uikit"):
29 osdir = CONFIG["MOZ_WIDGET_TOOLKIT"]
33 EXPORTS += [osdir + "/nsOSHelperAppService.h"]
36 "ContentHandlerService.h",
37 "nsExternalHelperAppService.h",
39 "nsOSHelperAppServiceChild.h",
43 "nsLocalHandlerApp.h",
46 EXPORTS.mozilla.dom += [
47 "ExternalHelperAppChild.h",
48 "ExternalHelperAppParent.h",
52 "ContentHandlerService.cpp",
53 "ExternalHelperAppChild.cpp",
54 "ExternalHelperAppParent.cpp",
55 "HandlerServiceParent.cpp",
56 "nsExternalHelperAppService.cpp",
57 "nsExternalProtocolHandler.cpp",
58 "nsLocalHandlerApp.cpp",
60 "nsOSHelperAppServiceChild.cpp",
63 if CONFIG["MOZ_BUILD_APP"] == "browser":
64 DEFINES["MOZ_BUILD_APP_IS_BROWSER"] = True
66 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "cocoa":
68 "mac/nsLocalHandlerAppMac.mm",
69 "mac/nsMIMEInfoMac.mm",
70 "mac/nsOSHelperAppService.mm",
72 elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "uikit":
74 "uikit/nsLocalHandlerAppUIKit.mm",
75 "uikit/nsMIMEInfoUIKit.mm",
76 "uikit/nsOSHelperAppService.mm",
79 # These files can't be built in unified mode because they redefine LOG.
81 osdir + "/nsOSHelperAppService.cpp",
83 if CONFIG["CC_TYPE"] in ("clang", "gcc"):
84 CXXFLAGS += ["-Wno-error=shadow"]
86 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk":
88 "unix/nsGNOMERegistry.cpp",
89 "unix/nsMIMEInfoUnix.cpp",
91 elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "android":
93 "android/nsMIMEInfoAndroid.cpp",
95 elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "windows":
97 "win/nsMIMEInfoWin.cpp",
100 if CONFIG["MOZ_ENABLE_DBUS"]:
102 "nsDBusHandlerApp.cpp",
108 EXTRA_COMPONENTS += [
110 "HandlerService.manifest",
113 EXTRA_JS_MODULES += [
122 "PExternalHelperApp.ipdl",
123 "PHandlerService.ipdl",
126 include("/ipc/chromium/chromium-config.mozbuild")
128 FINAL_LIBRARY = "xul"
135 "/netwerk/protocol/http",
138 if CONFIG["MOZ_ENABLE_DBUS"]:
139 CXXFLAGS += CONFIG["TK_CFLAGS"]
140 CXXFLAGS += CONFIG["MOZ_DBUS_CFLAGS"]
142 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk":
143 CXXFLAGS += CONFIG["TK_CFLAGS"]
144 CXXFLAGS += CONFIG["MOZ_DBUS_GLIB_CFLAGS"]
146 REQUIRES_UNIFIED_BUILD = True