Backed out 3 changesets (bug 1883476, bug 1826375) for causing windows build bustages...
[gecko.git] / toolkit / mozapps / defaultagent / moz.build
blob86b68c6371e77f9cea4d3a9062a332ff97583dfe
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"
9 DIRS += ["proxy"]
11 UNIFIED_SOURCES += [
12     "Cache.cpp",
13     "common.cpp",
14     "DefaultAgent.cpp",
15     "DefaultBrowser.cpp",
16     "DefaultPDF.cpp",
17     "EventLog.cpp",
18     "Policy.cpp",
19     "Registry.cpp",
20     "ScheduledTask.cpp",
21     "ScheduledTaskRemove.cpp",
22     "SetDefaultBrowser.cpp",
23     "Telemetry.cpp",
24     "UtfConvert.cpp",
25     "WindowsMutex.cpp",
28 SOURCES += [
29     "/third_party/WinToast/wintoastlib.cpp",
30     "/toolkit/mozapps/update/common/readstrings.cpp",
31     "Notification.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"
43 EXPORTS.mozilla += [
44     "DefaultAgent.h",
45     "WindowsMutex.h",
48 USE_LIBS += [
49     "jsoncpp",
52 LOCAL_INCLUDES += [
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",
60 OS_LIBS += [
61     "advapi32",
62     "bcrypt",
63     "comsupp",
64     "crypt32",
65     "kernel32",
66     "netapi32",
67     "ole32",
68     "oleaut32",
69     "rpcrt4",
70     "shell32",
71     "shlwapi",
72     "taskschd",
73     "userenv",
74     "wininet",
75     "ws2_32",
76     "ntdll",
79 XPIDL_SOURCES += [
80     "nsIDefaultAgent.idl",
81     "nsIWindowsMutex.idl",
84 XPIDL_MODULE = "default-agent"
86 XPCOM_MANIFESTS += [
87     "components.conf",
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"]
108 with Files("**"):
109     BUG_COMPONENT = ("Toolkit", "Default Browser Agent")
111 EXTRA_JS_MODULES.backgroundtasks += [
112     "BackgroundTask_defaultagent.sys.mjs",