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["default-browser-agent"] = "docs"
21 "ScheduledTaskRemove.cpp",
22 "SetDefaultBrowser.cpp",
29 "/third_party/WinToast/wintoastlib.cpp",
30 "/toolkit/mozapps/update/common/readstrings.cpp",
34 # Suppress warnings from third-party code.
35 SOURCES["/third_party/WinToast/wintoastlib.cpp"].flags += [
36 "-Wno-implicit-fallthrough",
37 "-Wno-nonportable-include-path", # Needed for wintoastlib.h including "Windows.h"
39 SOURCES["Notification.cpp"].flags += [
40 "-Wno-nonportable-include-path", # Needed for wintoastlib.h including "Windows.h"
53 "/browser/components/shell/",
54 "/other-licenses/nsis/Contrib/CityHash/cityhash",
55 "/third_party/WinToast",
56 "/toolkit/components/jsoncpp/include",
57 "/toolkit/mozapps/update/common",
80 "nsIDefaultAgent.idl",
81 "nsIWindowsMutex.idl",
84 XPIDL_MODULE = "default-agent"
90 XPCSHELL_TESTS_MANIFESTS += ["tests/xpcshell/xpcshell.toml"]
92 # If defines are added to this list that are required by the Cache,
93 # SetDefaultBrowser, or their dependencies (Registry, EventLog, common),
94 # tests/gtest/moz.build will need to be updated as well.
95 for var in ("MOZ_APP_BASENAME", "MOZ_APP_DISPLAYNAME", "MOZ_APP_VENDOR"):
96 DEFINES[var] = '"%s"' % CONFIG[var]
98 DEFINES["UNICODE"] = True
99 DEFINES["_UNICODE"] = True
101 FINAL_TARGET_FILES += ["defaultagent.ini"]
103 FINAL_LIBRARY = "xul"
105 if CONFIG["ENABLE_TESTS"]:
106 DIRS += ["tests/gtest"]
109 BUG_COMPONENT = ("Toolkit", "Default Browser Agent")
111 EXTRA_JS_MODULES.backgroundtasks += [
112 "BackgroundTask_defaultagent.sys.mjs",