|
1 # -*- Mode: python; c-basic-offset: 4; 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/. |
|
6 |
|
7 PROGRAM = CONFIG['MOZ_CHILD_PROCESS_NAME'] |
|
8 |
|
9 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android': |
|
10 SOURCES += [ |
|
11 'MozillaRuntimeMainAndroid.cpp', |
|
12 ] |
|
13 FINAL_TARGET = 'dist/bin/lib' |
|
14 else: |
|
15 SOURCES += [ |
|
16 'MozillaRuntimeMain.cpp', |
|
17 ] |
|
18 include('/ipc/chromium/chromium-config.mozbuild') |
|
19 |
|
20 LOCAL_INCLUDES += [ |
|
21 '/toolkit/xre', |
|
22 '/xpcom/base', |
|
23 ] |
|
24 |
|
25 if CONFIG['MOZ_CONTENT_SANDBOX'] and CONFIG['OS_ARCH'] == 'WINNT': |
|
26 # For sandbox includes and the include dependencies those have |
|
27 LOCAL_INCLUDES += [ |
|
28 '/security', |
|
29 '/security/sandbox', |
|
30 '/security/sandbox/chromium', |
|
31 ] |
|
32 |
|
33 if CONFIG['_MSC_VER']: |
|
34 # Always enter a Windows program through wmain, whether or not we're |
|
35 # a console application. |
|
36 WIN32_EXE_LDFLAGS += ['-ENTRY:wmainCRTStartup'] |
|
37 |
|
38 LDFLAGS += [CONFIG['MOZ_ALLOW_HEAP_EXECUTE_FLAGS']] |
|
39 |
|
40 # Control the default heap size. |
|
41 # This is the heap returned by GetProcessHeap(). |
|
42 # As we use the CRT heap, the default size is too large and wastes VM. |
|
43 # |
|
44 # The default heap size is 1MB on Win32. |
|
45 # The heap will grow if need be. |
|
46 # |
|
47 # Set it to 256k. See bug 127069. |
|
48 if CONFIG['OS_ARCH'] == 'WINNT' and not CONFIG['GNU_CC']: |
|
49 LDFLAGS += ['/HEAP:0x40000'] |