build/moz.build
author Alexandre Poirot <poirot.alex@gmail.com>
Mon, 10 Feb 2014 09:16:57 -0500
changeset 186076 81f210d3ad52c0fe6f41a895444da1d91cb30b7a
parent 178083 4bab70b90e741e35c5c89ab26c749fda67db7adf
child 183969 faf9cc2047ef712159ddeee954a9d6d55bab5595
child 186191 58fe9dc85fa4c4eec3407b3a2c7b137a1f7c7ff4
permissions -rw-r--r--
Bug 944451 - Land the simulator addon into mozilla-central. r=vingtetun, r=gps, r=paul

# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
# 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/.

# This cannot be named "build" because of bug 922191.
SPHINX_TREES['buildsystem'] = 'docs'

if CONFIG['OS_ARCH'] not in ('WINNT', 'OS2'):
    DIRS += ['unix']
elif CONFIG['OS_ARCH'] == 'WINNT':
    DIRS += ['win32']

if CONFIG['OS_TARGET'] == 'Android' and not CONFIG['MOZ_ANDROID_LIBSTDCXX']:
    DIRS += ['stlport']

if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
    DIRS += ['annotationProcessors']
    TEST_DIRS += [
        'mobile/sutagent/android',
        'mobile/sutagent/android/watcher',
        'mobile/sutagent/android/ffxcp',
        'mobile/sutagent/android/fencp',
        'mobile/robocop',
    ]

for var in ('GRE_MILESTONE', 'MOZ_APP_VERSION', 'MOZ_APP_BASENAME',
            'MOZ_APP_VENDOR', 'MOZ_APP_ID', 'MAR_CHANNEL_ID',
            'ACCEPTED_MAR_CHANNEL_IDS'):
    DEFINES[var] = CONFIG[var]

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',
            'MOZ_EXTENSION_MANAGER', 'MOZ_APP_STATIC_INI'):
    if CONFIG[var]:
        DEFINES[var] = True