2013-04-01 22:36:59 +04:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 00:47:22 +04:00
|
|
|
# vim: set filetype=python:
|
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
2013-05-01 22:05:40 +04:00
|
|
|
PROGRAM = CONFIG['MOZ_CHILD_PROCESS_NAME']
|
|
|
|
|
2013-04-24 01:54:15 +04:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'MozillaRuntimeMainAndroid.cpp',
|
|
|
|
]
|
2013-10-21 22:09:06 +04:00
|
|
|
FINAL_TARGET = 'dist/bin/lib'
|
2013-04-24 01:54:15 +04:00
|
|
|
else:
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'MozillaRuntimeMain.cpp',
|
|
|
|
]
|
2014-07-23 08:30:52 +04:00
|
|
|
USE_LIBS += [
|
|
|
|
'mozalloc',
|
|
|
|
'xul-shared',
|
|
|
|
]
|
|
|
|
|
2013-10-02 21:17:55 +04:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2014-02-10 22:41:02 +04:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/toolkit/xre',
|
|
|
|
'/xpcom/base',
|
|
|
|
]
|
2014-02-14 20:07:24 +04:00
|
|
|
|
2014-07-17 03:01:34 +04:00
|
|
|
if CONFIG['OS_ARCH'] == 'WINNT':
|
2014-02-14 20:07:24 +04:00
|
|
|
# For sandbox includes and the include dependencies those have
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/security',
|
|
|
|
'/security/sandbox',
|
|
|
|
'/security/sandbox/chromium',
|
|
|
|
]
|
2014-07-23 08:30:52 +04:00
|
|
|
USE_LIBS += [
|
|
|
|
'sandbox_s',
|
|
|
|
]
|
2014-02-24 17:30:25 +04:00
|
|
|
|
|
|
|
if CONFIG['_MSC_VER']:
|
|
|
|
# Always enter a Windows program through wmain, whether or not we're
|
|
|
|
# a console application.
|
|
|
|
WIN32_EXE_LDFLAGS += ['-ENTRY:wmainCRTStartup']
|
2014-02-27 06:38:29 +04:00
|
|
|
|
2014-02-27 06:42:21 +04:00
|
|
|
LDFLAGS += [CONFIG['MOZ_ALLOW_HEAP_EXECUTE_FLAGS']]
|
|
|
|
|
2014-02-27 06:38:29 +04:00
|
|
|
# Control the default heap size.
|
|
|
|
# This is the heap returned by GetProcessHeap().
|
|
|
|
# As we use the CRT heap, the default size is too large and wastes VM.
|
|
|
|
#
|
|
|
|
# The default heap size is 1MB on Win32.
|
|
|
|
# The heap will grow if need be.
|
|
|
|
#
|
|
|
|
# Set it to 256k. See bug 127069.
|
|
|
|
if CONFIG['OS_ARCH'] == 'WINNT' and not CONFIG['GNU_CC']:
|
|
|
|
LDFLAGS += ['/HEAP:0x40000']
|
2014-05-08 10:55:30 +04:00
|
|
|
|
|
|
|
FAIL_ON_WARNINGS = True
|