Bug 1890689 apply drift correction to input rate instead of output rate r=pehrsons
[gecko.git] / uriloader / exthandler / moz.build
blobe9009eb063c2a317beb72f3a8a0d6d2da4b52819
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"
9 with Files("**"):
10     BUG_COMPONENT = ("Firefox", "File Handling")
12 TEST_DIRS += ["tests"]
14 XPIDL_SOURCES += [
15     "nsCExternalHandlerService.idl",
16     "nsIContentDispatchChooser.idl",
17     "nsIExternalHelperAppService.idl",
18     "nsIExternalProtocolService.idl",
19     "nsIHandlerService.idl",
20     "nsIHelperAppLauncherDialog.idl",
21     "nsISharingHandlerApp.idl",
24 XPIDL_MODULE = "exthandler"
26 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "windows":
27     osdir = "win"
28     LOCAL_INCLUDES += ["win"]
29 elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "cocoa":
30     osdir = "mac"
31 elif CONFIG["MOZ_WIDGET_TOOLKIT"] in ("android", "uikit"):
32     osdir = CONFIG["MOZ_WIDGET_TOOLKIT"]
33 else:
34     osdir = "unix"
36 EXPORTS += [osdir + "/nsOSHelperAppService.h"]
38 EXPORTS += [
39     "ContentHandlerService.h",
40     "nsExternalHelperAppService.h",
41     "nsMIMEInfoChild.h",
42     "nsOSHelperAppServiceChild.h",
45 EXPORTS += [
46     "nsLocalHandlerApp.h",
49 EXPORTS.mozilla.dom += [
50     "ExternalHelperAppChild.h",
51     "ExternalHelperAppParent.h",
54 UNIFIED_SOURCES += [
55     "ContentHandlerService.cpp",
56     "ExternalHelperAppChild.cpp",
57     "ExternalHelperAppParent.cpp",
58     "HandlerServiceParent.cpp",
59     "nsExternalHelperAppService.cpp",
60     "nsExternalProtocolHandler.cpp",
61     "nsLocalHandlerApp.cpp",
62     "nsMIMEInfoImpl.cpp",
63     "nsOSHelperAppServiceChild.cpp",
66 if CONFIG["MOZ_BUILD_APP"] == "browser":
67     DEFINES["MOZ_BUILD_APP_IS_BROWSER"] = True
69 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "cocoa":
70     UNIFIED_SOURCES += [
71         "mac/nsLocalHandlerAppMac.mm",
72         "mac/nsMIMEInfoMac.mm",
73         "mac/nsOSHelperAppService.mm",
74     ]
75 elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "uikit":
76     UNIFIED_SOURCES += [
77         "uikit/nsLocalHandlerAppUIKit.mm",
78         "uikit/nsMIMEInfoUIKit.mm",
79         "uikit/nsOSHelperAppService.mm",
80     ]
81 else:
82     # These files can't be built in unified mode because they redefine LOG.
83     SOURCES += [
84         osdir + "/nsOSHelperAppService.cpp",
85     ]
87 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk":
88     UNIFIED_SOURCES += [
89         "unix/nsGNOMERegistry.cpp",
90         "unix/nsMIMEInfoUnix.cpp",
91     ]
92 elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "android":
93     UNIFIED_SOURCES += [
94         "android/nsMIMEInfoAndroid.cpp",
95     ]
96 elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "windows":
97     UNIFIED_SOURCES += [
98         "win/nsLocalHandlerAppWin.cpp",
99         "win/nsMIMEInfoWin.cpp",
100     ]
102 if CONFIG["MOZ_ENABLE_DBUS"]:
103     UNIFIED_SOURCES += [
104         "nsDBusHandlerApp.cpp",
105     ]
106     EXPORTS.mozilla += [
107         "DBusHelpers.h",
108     ]
110 EXTRA_JS_MODULES += [
111     "ExtHandlerService.sys.mjs",
112     "WebHandlerApp.sys.mjs",
115 EXTRA_JS_MODULES.handlers += [
116     "HandlerList.sys.mjs",
119 XPCOM_MANIFESTS += [
120     "components.conf",
123 IPDL_SOURCES += [
124     "PExternalHelperApp.ipdl",
125     "PHandlerService.ipdl",
128 include("/ipc/chromium/chromium-config.mozbuild")
130 FINAL_LIBRARY = "xul"
132 LOCAL_INCLUDES += [
133     "/docshell/base",
134     "/dom/base",
135     "/dom/ipc",
136     "/netwerk/base",
137     "/netwerk/protocol/http",
140 if CONFIG["MOZ_ENABLE_DBUS"]:
141     CXXFLAGS += CONFIG["MOZ_DBUS_CFLAGS"]
143 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk":
144     CXXFLAGS += CONFIG["MOZ_GTK3_CFLAGS"]