Backout a74bd5095902, Bug 959405 - Please update the Buri Moz-central, 1.3, 1.2 with...
[gecko.git] / build / moz.build
blobd75b82e1c0e2d59ebdc35d0da343e4d1b2ee251c
1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 # This cannot be named "build" because of bug 922191.
8 SPHINX_TREES['buildsystem'] = 'docs'
10 if CONFIG['OS_ARCH'] not in ('WINNT', 'OS2'):
11     DIRS += ['unix']
12 elif CONFIG['OS_ARCH'] == 'WINNT':
13     DIRS += ['win32']
15 if CONFIG['OS_TARGET'] == 'Android' and not CONFIG['MOZ_ANDROID_LIBSTDCXX']:
16     DIRS += ['stlport']
18 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
19     DIRS += ['annotationProcessors']
20     TEST_DIRS += [
21         'mobile/sutagent/android',
22         'mobile/sutagent/android/watcher',
23         'mobile/sutagent/android/ffxcp',
24         'mobile/sutagent/android/fencp',
25         'mobile/robocop',
26     ]
28 for var in ('GRE_MILESTONE', 'MOZ_APP_VERSION', 'MOZ_APP_BASENAME',
29             'MOZ_APP_VENDOR', 'MOZ_APP_ID', 'MAR_CHANNEL_ID',
30             'ACCEPTED_MAR_CHANNEL_IDS'):
31     DEFINES[var] = CONFIG[var]
33 if CONFIG['MOZ_BUILD_APP'] == 'browser':
34     DEFINES['MOZ_BUILD_APP_IS_BROWSER'] = True
36 if CONFIG['MOZ_APP_PROFILE']:
37     DEFINES['MOZ_APP_PROFILE'] = CONFIG['MOZ_APP_PROFILE']
39 for var in ('MOZ_CRASHREPORTER', 'MOZ_PROFILE_MIGRATOR',
40             'MOZ_EXTENSION_MANAGER', 'MOZ_APP_STATIC_INI'):
41     if CONFIG[var]:
42         DEFINES[var] = True