michael@0: # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- michael@0: # vim: set filetype=python: michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: PROGRAM = CONFIG['MOZ_CHILD_PROCESS_NAME'] michael@0: michael@0: if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android': michael@0: SOURCES += [ michael@0: 'MozillaRuntimeMainAndroid.cpp', michael@0: ] michael@0: FINAL_TARGET = 'dist/bin/lib' michael@0: else: michael@0: SOURCES += [ michael@0: 'MozillaRuntimeMain.cpp', michael@0: ] michael@0: include('/ipc/chromium/chromium-config.mozbuild') michael@0: michael@0: LOCAL_INCLUDES += [ michael@0: '/toolkit/xre', michael@0: '/xpcom/base', michael@0: ] michael@0: michael@0: if CONFIG['MOZ_CONTENT_SANDBOX'] and CONFIG['OS_ARCH'] == 'WINNT': michael@0: # For sandbox includes and the include dependencies those have michael@0: LOCAL_INCLUDES += [ michael@0: '/security', michael@0: '/security/sandbox', michael@0: '/security/sandbox/chromium', michael@0: ] michael@0: michael@0: if CONFIG['_MSC_VER']: michael@0: # Always enter a Windows program through wmain, whether or not we're michael@0: # a console application. michael@0: WIN32_EXE_LDFLAGS += ['-ENTRY:wmainCRTStartup'] michael@0: michael@0: LDFLAGS += [CONFIG['MOZ_ALLOW_HEAP_EXECUTE_FLAGS']] michael@0: michael@0: # Control the default heap size. michael@0: # This is the heap returned by GetProcessHeap(). michael@0: # As we use the CRT heap, the default size is too large and wastes VM. michael@0: # michael@0: # The default heap size is 1MB on Win32. michael@0: # The heap will grow if need be. michael@0: # michael@0: # Set it to 256k. See bug 127069. michael@0: if CONFIG['OS_ARCH'] == 'WINNT' and not CONFIG['GNU_CC']: michael@0: LDFLAGS += ['/HEAP:0x40000']