1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/ipc/app/moz.build Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,49 @@ 1.4 +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- 1.5 +# vim: set filetype=python: 1.6 +# This Source Code Form is subject to the terms of the Mozilla Public 1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.9 + 1.10 +PROGRAM = CONFIG['MOZ_CHILD_PROCESS_NAME'] 1.11 + 1.12 +if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android': 1.13 + SOURCES += [ 1.14 + 'MozillaRuntimeMainAndroid.cpp', 1.15 + ] 1.16 + FINAL_TARGET = 'dist/bin/lib' 1.17 +else: 1.18 + SOURCES += [ 1.19 + 'MozillaRuntimeMain.cpp', 1.20 + ] 1.21 +include('/ipc/chromium/chromium-config.mozbuild') 1.22 + 1.23 +LOCAL_INCLUDES += [ 1.24 + '/toolkit/xre', 1.25 + '/xpcom/base', 1.26 +] 1.27 + 1.28 +if CONFIG['MOZ_CONTENT_SANDBOX'] and CONFIG['OS_ARCH'] == 'WINNT': 1.29 + # For sandbox includes and the include dependencies those have 1.30 + LOCAL_INCLUDES += [ 1.31 + '/security', 1.32 + '/security/sandbox', 1.33 + '/security/sandbox/chromium', 1.34 + ] 1.35 + 1.36 +if CONFIG['_MSC_VER']: 1.37 + # Always enter a Windows program through wmain, whether or not we're 1.38 + # a console application. 1.39 + WIN32_EXE_LDFLAGS += ['-ENTRY:wmainCRTStartup'] 1.40 + 1.41 +LDFLAGS += [CONFIG['MOZ_ALLOW_HEAP_EXECUTE_FLAGS']] 1.42 + 1.43 +# Control the default heap size. 1.44 +# This is the heap returned by GetProcessHeap(). 1.45 +# As we use the CRT heap, the default size is too large and wastes VM. 1.46 +# 1.47 +# The default heap size is 1MB on Win32. 1.48 +# The heap will grow if need be. 1.49 +# 1.50 +# Set it to 256k. See bug 127069. 1.51 +if CONFIG['OS_ARCH'] == 'WINNT' and not CONFIG['GNU_CC']: 1.52 + LDFLAGS += ['/HEAP:0x40000']