config/moz.build
author Ralph Giles <giles@mozilla.com>
Tue, 12 May 2015 14:18:50 -0700
changeset 244900 33e255599053a8fd3fa41a124f9e7e405b3908b9
parent 243443 59e335c30dfd53671cf2aad4dca095910ebc7864
child 257610 d320f4dabfd285e37b76b5d8bc7be2e9dc5b6874
permissions -rw-r--r--
Bug 1164109 - Target MacOS X 10.7 or later for rust. r=ted The rust compiler uses thread-local storage features which aren't available on MacOS X 10.6. Until that's worked around or we drop support for 10.6 in Firefox, we'll need to require a higher minimum target version when building rust code.

# -*- 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/.

with Files('**'):
    BUG_COMPONENT = ('Core', 'Build Config')

DIST_INSTALL = False
# For sanity's sake, we compile nsinstall without the wrapped system
# headers, so that we can use it to set up the wrapped system headers.
NO_VISIBILITY_FLAGS = True

CONFIGURE_SUBST_FILES += [
    'doxygen.cfg',
    'makefiles/test/Makefile',
    'tests/makefiles/autodeps/Makefile',
    'tests/src-simple/Makefile',
]

if CONFIG['HOST_OS_ARCH'] != 'WINNT':
    HOST_SOURCES += [
        'nsinstall.c',
        'pathsub.c',
    ]
    HostProgram('nsinstall_real')

if CONFIG['GKMEDIAS_SHARED_LIBRARY']:
    DEFINES['GKMEDIAS_SHARED_LIBRARY'] = True

if CONFIG['MOZ_SHARED_ICU']:
    DEFINES['MOZ_SHARED_ICU'] = True

PYTHON_UNIT_TESTS += [
    'tests/test_mozbuild_reading.py',
    'tests/unit-expandlibs.py',
    'tests/unit-mozunit.py',
    'tests/unit-nsinstall.py',
    'tests/unit-printprereleasesuffix.py',
]