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/.
7 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
8 Program(CONFIG['MOZ_CHILD_PROCESS_NAME'])
10 'MozillaRuntimeMainAndroid.cpp',
16 if CONFIG['MOZ_SANDBOX'] and CONFIG['OS_ARCH'] == 'WINNT':
17 kwargs['msvcrt'] = 'static'
18 GeckoProgram(CONFIG['MOZ_CHILD_PROCESS_NAME'], **kwargs)
21 'MozillaRuntimeMain.cpp',
29 include('/ipc/chromium/chromium-config.mozbuild')
36 # We link GMPLoader into plugin-container on desktop so that its code is
37 # covered by the desktop DRM vendor's voucher.
38 if CONFIG['OS_TARGET'] != 'Android':
40 '../../dom/media/gmp/GMPLoader.cpp',
43 if CONFIG['MOZ_SANDBOX'] and CONFIG['OS_ARCH'] == 'WINNT':
44 # For sandbox includes and the include dependencies those have
48 '/security/sandbox/chromium',
52 'sandbox_staticruntime_s',
59 DEFINES['HASH_NODE_ID_WITH_DEVICE_ID'] = 1;
64 if CONFIG['MOZ_SANDBOX'] and CONFIG['OS_TARGET'] == 'Linux':
69 if CONFIG['_MSC_VER']:
70 # Always enter a Windows program through wmain, whether or not we're
71 # a console application.
72 WIN32_EXE_LDFLAGS += ['-ENTRY:wmainCRTStartup']
74 LDFLAGS += [CONFIG['MOZ_ALLOW_HEAP_EXECUTE_FLAGS']]
76 # Control the default heap size.
77 # This is the heap returned by GetProcessHeap().
78 # As we use the CRT heap, the default size is too large and wastes VM.
80 # The default heap size is 1MB on Win32.
81 # The heap will grow if need be.
83 # Set it to 256k. See bug 127069.
84 if CONFIG['OS_ARCH'] == 'WINNT' and not CONFIG['GNU_CC']:
85 LDFLAGS += ['/HEAP:0x40000']
87 # Windows builds have dll linkage warnings due to msvcrt static linkage
88 if CONFIG['OS_ARCH'] != 'WINNT':
89 FAIL_ON_WARNINGS = True
91 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':