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"])
10 "MozillaRuntimeMainAndroid.cpp",
13 GeckoProgram(CONFIG["MOZ_CHILD_PROCESS_NAME"], linkage="dependent")
16 "MozillaRuntimeMain.cpp",
19 include("/ipc/chromium/chromium-config.mozbuild")
26 # DELAYLOAD_DLLS in this block ensures that the DLL blocklist is functional
27 if CONFIG["OS_ARCH"] == "WINNT":
32 if CONFIG["MOZ_SANDBOX"]:
33 # For sandbox includes and the include dependencies those have
35 "/security/sandbox/chromium",
36 "/security/sandbox/chromium-shim",
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"]
90 BUG_COMPONENT = ("Core", "DOM: Content Processes")