2013-04-01 11:36:59 -07:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 12:47:18 -08: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/.
|
|
|
|
|
2015-02-26 11:43:45 -08:00
|
|
|
with Files('**'):
|
|
|
|
BUG_COMPONENT = ('Core', 'Build Config')
|
|
|
|
|
2013-12-18 11:15:45 -08:00
|
|
|
# This cannot be named "build" because of bug 922191.
|
|
|
|
SPHINX_TREES['buildsystem'] = 'docs'
|
2013-11-20 12:37:22 -08:00
|
|
|
|
2014-02-10 14:57:01 -08:00
|
|
|
if CONFIG['OS_ARCH'] == 'WINNT':
|
2013-02-25 12:47:18 -08:00
|
|
|
DIRS += ['win32']
|
2014-02-10 14:57:01 -08:00
|
|
|
else:
|
|
|
|
DIRS += ['unix']
|
2013-02-25 12:47:18 -08:00
|
|
|
|
2013-07-15 02:48:39 -07:00
|
|
|
if CONFIG['OS_TARGET'] == 'Android' and not CONFIG['MOZ_ANDROID_LIBSTDCXX']:
|
2013-02-25 12:47:18 -08:00
|
|
|
DIRS += ['stlport']
|
|
|
|
|
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
|
2013-10-09 17:05:37 -07:00
|
|
|
DIRS += ['annotationProcessors']
|
2013-02-25 12:47:18 -08:00
|
|
|
TEST_DIRS += [
|
|
|
|
'mobile/sutagent/android',
|
|
|
|
'mobile/sutagent/android/watcher',
|
|
|
|
'mobile/sutagent/android/ffxcp',
|
|
|
|
'mobile/sutagent/android/fencp',
|
|
|
|
]
|
2015-08-25 13:40:04 -07:00
|
|
|
if not CONFIG['MOZ_B2GDROID']:
|
|
|
|
TEST_DIRS += [
|
|
|
|
'mobile/robocop',
|
|
|
|
]
|
2013-02-25 12:47:18 -08:00
|
|
|
|
2013-11-27 05:55:07 -08:00
|
|
|
for var in ('GRE_MILESTONE', 'MOZ_APP_VERSION', 'MOZ_APP_BASENAME',
|
|
|
|
'MOZ_APP_VENDOR', 'MOZ_APP_ID', 'MAR_CHANNEL_ID',
|
2014-09-23 11:49:03 -07:00
|
|
|
'ACCEPTED_MAR_CHANNEL_IDS', 'MOZ_APP_REMOTINGNAME'):
|
2013-11-27 05:55:07 -08:00
|
|
|
DEFINES[var] = CONFIG[var]
|
|
|
|
|
2014-02-20 01:42:28 -08:00
|
|
|
if CONFIG['MOZ_APP_DISPLAYNAME'] != CONFIG['MOZ_APP_BASENAME']:
|
|
|
|
DEFINES['MOZ_APP_DISPLAYNAME'] = CONFIG['MOZ_APP_DISPLAYNAME']
|
|
|
|
|
2013-11-27 05:55:07 -08:00
|
|
|
if CONFIG['MOZ_BUILD_APP'] == 'browser':
|
|
|
|
DEFINES['MOZ_BUILD_APP_IS_BROWSER'] = True
|
|
|
|
|
|
|
|
if CONFIG['MOZ_APP_PROFILE']:
|
|
|
|
DEFINES['MOZ_APP_PROFILE'] = CONFIG['MOZ_APP_PROFILE']
|
|
|
|
|
|
|
|
for var in ('MOZ_CRASHREPORTER', 'MOZ_PROFILE_MIGRATOR',
|
2014-08-26 00:50:07 -07:00
|
|
|
'MOZ_APP_STATIC_INI'):
|
2013-11-27 05:55:07 -08:00
|
|
|
if CONFIG[var]:
|
|
|
|
DEFINES[var] = True
|
|
|
|
|
2014-07-28 08:51:12 -07:00
|
|
|
if CONFIG['MOZ_BUILD_APP'] == 'browser':
|
|
|
|
PYTHON_UNIT_TESTS += [
|
|
|
|
'compare-mozconfig/compare-mozconfigs-wrapper.py',
|
|
|
|
]
|
2015-02-20 10:26:59 -08:00
|
|
|
|
|
|
|
if CONFIG['ENABLE_TESTS'] or CONFIG['MOZ_DMD']:
|
|
|
|
tools_dir = TOPSRCDIR + '/tools/rb/'
|
|
|
|
FINAL_TARGET_FILES += [tools_dir + 'fix_stack_using_bpsyms.py']
|
|
|
|
if CONFIG['OS_ARCH'] == 'Darwin':
|
|
|
|
FINAL_TARGET_FILES += [tools_dir + 'fix_macosx_stack.py']
|
|
|
|
if CONFIG['OS_ARCH'] == 'Linux':
|
|
|
|
FINAL_TARGET_FILES += [tools_dir + 'fix_linux_stack.py']
|
|
|
|
|
|
|
|
if CONFIG['MOZ_DMD']:
|
|
|
|
FINAL_TARGET_FILES += [TOPSRCDIR + '/memory/replace/dmd/dmd.py']
|
2015-02-23 05:27:45 -08:00
|
|
|
|
|
|
|
# Put a useful .gdbinit in the bin directory, to be picked up automatically
|
|
|
|
# by GDB when we debug executables there.
|
|
|
|
FINAL_TARGET_FILES += [TOPSRCDIR + '/.gdbinit']
|
2015-02-23 05:29:12 -08:00
|
|
|
|
|
|
|
# Install the clang-cl runtime library for ASAN next to the binaries we produce.
|
|
|
|
if CONFIG['MOZ_ASAN'] and CONFIG['CLANG_CL']:
|
|
|
|
FINAL_TARGET_FILES += [CONFIG['MOZ_CLANG_RT_ASAN_LIB_PATH']]
|
2015-04-15 13:04:49 -07:00
|
|
|
|
|
|
|
if CONFIG['MOZ_APP_BASENAME']:
|
|
|
|
DIST_FILES += ['application.ini']
|
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] != 'android' and CONFIG['MOZ_UPDATER']:
|
|
|
|
DIST_FILES += ['update-settings.ini']
|