Skip to content

Commit

Permalink
Required PSAPI 1 defines
Browse files Browse the repository at this point in the history
  • Loading branch information
K4sum1 committed Nov 23, 2024
1 parent e0e1d69 commit 9f012c9
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 0 deletions.
6 changes: 6 additions & 0 deletions js/src/gc/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,9 @@ UNIFIED_SOURCES += [
SOURCES += [
"StoreBuffer.cpp",
]

DEFINES["PSAPI_VERSION"] = "1"

OS_LIBS += [
"psapi",
]
6 changes: 6 additions & 0 deletions mozglue/baseprofiler/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,9 @@ if CONFIG["CC_TYPE"] in ("clang", "gcc"):

with Files("**"):
BUG_COMPONENT = ("Core", "Gecko Profiler")

DEFINES["PSAPI_VERSION"] = "1"

OS_LIBS += [
'psapi',
]
6 changes: 6 additions & 0 deletions toolkit/components/processtools/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,9 @@ elif toolkit in ("cocoa", "uikit"):
UNIFIED_SOURCES += ["ProcInfo.mm"]

include("/ipc/chromium/chromium-config.mozbuild")

DEFINES["PSAPI_VERSION"] = "1"

OS_LIBS += [
"psapi",
]
6 changes: 6 additions & 0 deletions tools/profiler/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -241,3 +241,9 @@ if CONFIG["CC_TYPE"] in ("clang", "gcc"):

with Files("**"):
BUG_COMPONENT = ("Core", "Gecko Profiler")

DEFINES["PSAPI_VERSION"] = "1"

OS_LIBS += [
'psapi',
]
2 changes: 2 additions & 0 deletions widget/windows/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ if CONFIG["MOZ_BUILD_APP"] == "browser":
DEFINES["MOZ_BUILD_APP_IS_BROWSER"] = True

DEFINES["MOZ_UNICODE"] = True
DEFINES["PSAPI_VERSION"] = "1"
DEFINES["MOZ_APP_NAME"] = '"%s"' % CONFIG["MOZ_APP_NAME"]
# Turn `firefox` into `Firefox`.
DEFINES["MOZ_TOAST_APP_NAME"] = '"%s"' % CONFIG["MOZ_APP_NAME"].title()
Expand All @@ -200,6 +201,7 @@ USE_LIBS += [

OS_LIBS += [
"ktmw32",
"psapi",
"rpcrt4",
"urlmon",
"winmm",
Expand Down
6 changes: 6 additions & 0 deletions xpcom/base/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,12 @@ if CONFIG["OS_TARGET"] == "WINNT":
"MemoryInfo.cpp",
]

DEFINES["PSAPI_VERSION"] = "1"

OS_LIBS += [
"psapi",
]

if CONFIG["OS_TARGET"] == "Darwin":
UNIFIED_SOURCES += [
"AvailableMemoryWatcherMac.cpp",
Expand Down

0 comments on commit 9f012c9

Please sign in to comment.