Bug 1852740: add tests for the `fetchpriority` attribute in Link headers. r=necko...
[gecko.git] / js / xpconnect / shell / moz.build
blobde3b050b79723b6a08cefff304e22bc221d98c2b
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 GeckoProgram("xpcshell", linkage="dependent")
9 SOURCES += [
10     "xpcshell.cpp",
13 if CONFIG["LIBFUZZER"]:
14     USE_LIBS += ["fuzzer"]
16 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "cocoa":
17     SOURCES += [
18         "xpcshellMacUtils.mm",
19     ]
21 include("/ipc/chromium/chromium-config.mozbuild")
23 LOCAL_INCLUDES += [
24     "/toolkit/xre",
27 if CONFIG["CC_TYPE"] == "clang-cl":
28     # Always enter a Windows program through wmain, whether or not we're
29     # a console application.
30     WIN32_EXE_LDFLAGS += ["-ENTRY:wmainCRTStartup"]
32 # DELAYLOAD_DLLS in this block ensure that the DLL blocklist initializes
33 if CONFIG["OS_ARCH"] == "WINNT":
34     if CONFIG["MOZ_SANDBOX"]:
35         # For sandbox includes and the include dependencies those have
36         LOCAL_INCLUDES += [
37             "/security/sandbox/chromium",
38             "/security/sandbox/chromium-shim",
39         ]
41         OS_LIBS += [
42             "advapi32",
43             "user32",
44             "version",
45             "winmm",
46         ]
48         USE_LIBS += [
49             "sandbox_s",
50         ]
52         DELAYLOAD_DLLS += [
53             "winmm.dll",
54             "user32.dll",
55         ]
57     OS_LIBS += [
58         "ntdll",
59     ]
61     DELAYLOAD_DLLS += [
62         "xul.dll",
63     ]
65     # Don't build xpcshell.exe with CETCOMPAT, because we need to be able to
66     # only enable it for processes that are not using JIT in xul.dll.
67     LINK_FLAGS["CETCOMPAT"] = []
69 if CONFIG["OS_TARGET"] == "Darwin":
70     OS_LIBS += [
71         "-framework Foundation",
72     ]
74 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk":
75     CFLAGS += CONFIG["MOZ_GTK3_CFLAGS"]
76     CXXFLAGS += CONFIG["MOZ_GTK3_CFLAGS"]
77     OS_LIBS += CONFIG["MOZ_GTK3_LIBS"]