gecko-dev/js/app.mozbuild
Mike Hommey 3d67bc07a1 Bug 1417309 - Move some definitions from top-level moz.build to application-specific moz.build files. r=nalexander
When building with a --enable-project that is neither js nor a
toolkit-based one (like browser or mobile/android), we don't want to be
building things that are specific to gecko and/or spidermonkey.

At the same time, this lifts the exception that js standalone doesn't
have an app.mozbuild included, and makes the moz.build parsers that
don't set a MOZ_BUILD_APP get the same information as they were through
toolkit.mozbuild.

We still keep mfbt, build and a few other DIRS set from the top-level,
because at the moment, there aren't really any --enable-project that
would benefit from those not being recursed.
2017-11-16 08:37:32 +09:00

34 lines
760 B
Python

# -*- 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/.
if CONFIG['COMPILE_ENVIRONMENT']:
DIRS += [
'/js/src',
]
else:
TEST_DIRS += [
'/js/src/tests',
]
DIRS += [
'/config/external/fdlibm',
'/config/external/nspr',
'/config/external/zlib',
'/memory',
'/mozglue',
]
if CONFIG['USE_ICU']:
DIRS += [
'/config/external/icu',
]
if CONFIG['COMPILE_ENVIRONMENT'] and CONFIG['BUILD_CTYPES']:
DIRS += [
'/config/external/ffi',
]