No bug - tagging b4d3227540c9ebc43d64aac6168fdca7019c22d8 with FIREFOX_BETA_126_BASE...
[gecko.git] / ipc / app / moz.build
blobafe1df122b273debbed16e599b8b36f022af725f
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 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "android":
8     Program(CONFIG["MOZ_CHILD_PROCESS_NAME"])
9     SOURCES += [
10         "MozillaRuntimeMainAndroid.cpp",
11     ]
12 else:
13     GeckoProgram(CONFIG["MOZ_CHILD_PROCESS_NAME"], linkage="dependent")
15     SOURCES += [
16         "MozillaRuntimeMain.cpp",
17     ]
19 include("/ipc/chromium/chromium-config.mozbuild")
21 LOCAL_INCLUDES += [
22     "/toolkit/xre",
23     "/xpcom/base",
26 # DELAYLOAD_DLLS in this block ensures that the DLL blocklist is functional
27 if CONFIG["OS_ARCH"] == "WINNT":
28     DELAYLOAD_DLLS += [
29         "nss3.dll",
30     ]
32     if CONFIG["MOZ_SANDBOX"]:
33         # For sandbox includes and the include dependencies those have
34         LOCAL_INCLUDES += [
35             "/security/sandbox/chromium",
36             "/security/sandbox/chromium-shim",
37         ]
39         OS_LIBS += [
40             "advapi32",
41             "user32",
42             "version",
43             "winmm",
44         ]
46         USE_LIBS += [
47             "sandbox_s",
48         ]
50         DELAYLOAD_DLLS += [
51             "winmm.dll",
52             "user32.dll",
53         ]
55     OS_LIBS += [
56         "ntdll",
57     ]
59     DELAYLOAD_DLLS += [
60         "xul.dll",
61     ]
63     # Don't build plugin-container.exe with CETCOMPAT for the moment, so that
64     # we can enable it using a pref during testing.
65     LINK_FLAGS["CETCOMPAT"] = []
67 if CONFIG["OS_ARCH"] == "Darwin":
68     LDFLAGS += ["-Wl,-rpath,@executable_path/../../../"]
70 if CONFIG["CC_TYPE"] == "clang-cl":
71     # Always enter a Windows program through wmain, whether or not we're
72     # a console application.
73     WIN32_EXE_LDFLAGS += ["-ENTRY:wmainCRTStartup"]
75 # Control the default heap size.
76 # This is the heap returned by GetProcessHeap().
77 # As we use the CRT heap, the default size is too large and wastes VM.
79 # The default heap size is 1MB on Win32.
80 # The heap will grow if need be.
82 # Set it to 256k.  See bug 127069.
83 if CONFIG["OS_ARCH"] == "WINNT" and CONFIG["CC_TYPE"] not in ("clang", "gcc"):
84     LDFLAGS += ["/HEAP:0x40000"]
86 if CONFIG["CC_TYPE"] in ("clang", "gcc"):
87     CXXFLAGS += ["-Wshadow"]
89 with Files("**"):
90     BUG_COMPONENT = ("Core", "DOM: Content Processes")