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/.
|
|
|
|
|
2014-09-03 09:10:54 +04:00
|
|
|
Program(CONFIG['MOZ_CHILD_PROCESS_NAME'])
|
2013-05-01 22:05:40 +04:00
|
|
|
|
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',
|
|
|
|
]
|
|
|
|
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',
|
2014-08-07 09:21:03 +04:00
|
|
|
'nspr',
|
2014-07-23 08:33:09 +04:00
|
|
|
'xul',
|
2014-07-23 08:30:52 +04:00
|
|
|
]
|
|
|
|
|
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-08-27 18:32:55 +04:00
|
|
|
if CONFIG['MOZ_SANDBOX'] and 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 += [
|
2014-08-28 06:50:10 +04:00
|
|
|
'sandbox_staticruntime_s',
|
2014-07-23 08:30:52 +04:00
|
|
|
]
|
2014-08-28 06:50:10 +04:00
|
|
|
DELAYLOAD_DLLS += [
|
|
|
|
'mozalloc.dll',
|
|
|
|
'nss3.dll',
|
|
|
|
'xul.dll'
|
|
|
|
]
|
|
|
|
USE_STATIC_LIBS = True
|
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
|
|
|
|
2014-08-28 06:50:10 +04:00
|
|
|
# Windows builds have dll linkage warnings due to USE_STATIC_LIBS
|
|
|
|
if CONFIG['OS_ARCH'] != 'WINNT':
|
|
|
|
FAIL_ON_WARNINGS = True
|
2014-08-06 02:25:33 +04:00
|
|
|
|
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
|
|
|
|
OS_LIBS += [
|
|
|
|
'binder',
|
|
|
|
'utils',
|
|
|
|
]
|