Bug 1838754 - Pre 3: Normalize moz.build and components.conf build exclusions related to Windows Toast on excluding gcc builds. r=mossop

Depends on D183438

Differential Revision: https://phabricator.services.mozilla.com/D187067
This commit is contained in:
Nicholas Rishel 2023-09-05 20:55:25 +00:00
parent c5d5b231f3
commit 1ce7e8272a
3 changed files with 10 additions and 5 deletions

View File

@ -25,11 +25,15 @@ DIRS += [
]
if CONFIG["OS_ARCH"] == "WINNT":
if CONFIG["MOZ_NOTIFICATION_SERVER"]:
DIRS += ["mozapps/notificationserver"]
# mingw is missing Windows toast notification definitions.
if CONFIG["CC_TYPE"] == "clang-cl":
if CONFIG["MOZ_NOTIFICATION_SERVER"]:
DIRS += ["mozapps/notificationserver"]
if CONFIG["MOZ_DEFAULT_BROWSER_AGENT"]:
DIRS += ["mozapps/defaultagent"]
# Default Browser Agent relies on Windows toast notifications, so should
# also not be built with mingw.
if CONFIG["MOZ_DEFAULT_BROWSER_AGENT"]:
DIRS += ["mozapps/defaultagent"]
if CONFIG["MOZ_UPDATER"] and CONFIG["MOZ_WIDGET_TOOLKIT"] != "android":
DIRS += ["mozapps/update"]

View File

@ -167,7 +167,7 @@ Classes = [
},
]
if buildconfig.substs['CC_TYPE'] in ('msvc', 'clang-cl'):
if buildconfig.substs['CC_TYPE'] == 'clang-cl':
Classes += [
{
'cid': '{84e11f80-ca55-11dd-ad8b-0800200c9a66}',

View File

@ -198,6 +198,7 @@ OS_LIBS += [
"urlmon",
]
# mingw is missing Windows toast notification definitions.
if CONFIG["CC_TYPE"] == "clang-cl":
SOURCES += [
"ToastNotification.cpp",