moz.build

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/moz.build	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,60 @@
     1.4 +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
     1.5 +# vim: set filetype=python:
     1.6 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.9 +
    1.10 +CONFIGURE_SUBST_FILES += [
    1.11 +    'config/autoconf.mk',
    1.12 +    'config/emptyvars.mk',
    1.13 +]
    1.14 +
    1.15 +if CONFIG['ENABLE_CLANG_PLUGIN']:
    1.16 +    add_tier_dir('base', 'build/clang-plugin', external=True)
    1.17 +
    1.18 +add_tier_dir('base', ['config', 'python'])
    1.19 +if not CONFIG['JS_STANDALONE']:
    1.20 +    CONFIGURE_SUBST_FILES += [
    1.21 +        'mozilla-config.h',
    1.22 +        'tools/update-packaging/Makefile',
    1.23 +    ]
    1.24 +
    1.25 +    add_tier_dir('base', ['build', 'probes'])
    1.26 +
    1.27 +if not CONFIG['LIBXUL_SDK']:
    1.28 +    add_tier_dir('base', ['mfbt'])
    1.29 +
    1.30 +    if not CONFIG['JS_STANDALONE']:
    1.31 +        if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
    1.32 +            add_tier_dir('base', ['other-licenses/android'])
    1.33 +
    1.34 +        if CONFIG['MOZ_MEMORY']:
    1.35 +            add_tier_dir('base', ['memory'])
    1.36 +
    1.37 +        if not CONFIG['MOZ_NATIVE_ZLIB']:
    1.38 +            add_tier_dir('base', ['modules/zlib'])
    1.39 +
    1.40 +        add_tier_dir('base', ['mozglue', 'memory/mozalloc'])
    1.41 +
    1.42 +if not CONFIG['JS_STANDALONE']:
    1.43 +    add_tier_dir('precompile', 'xpcom/xpidl')
    1.44 +
    1.45 +    if CONFIG['COMPILE_ENVIRONMENT'] and not CONFIG['LIBXUL_SDK']:
    1.46 +        if not CONFIG['MOZ_NATIVE_NSPR']:
    1.47 +            add_tier_dir('nspr', 'config/nspr')
    1.48 +
    1.49 +        add_tier_dir('external', 'config/external')
    1.50 +
    1.51 +        if not CONFIG['MOZ_NATIVE_NSS']:
    1.52 +             add_tier_dir('nss', 'security/build')
    1.53 +
    1.54 +if CONFIG['COMPILE_ENVIRONMENT'] and not CONFIG['LIBXUL_SDK']:
    1.55 +    if CONFIG['BUILD_CTYPES'] and not CONFIG['MOZ_NATIVE_FFI']:
    1.56 +        add_tier_dir('js', ['js/src/ctypes/libffi'], static=True)
    1.57 +    add_tier_dir('js', ['intl/icu'], static=True)
    1.58 +    CONFIGURE_SUBST_FILES += ['intl/icu/Makefile']
    1.59 +    add_tier_dir('js', ['js/src'])
    1.60 +
    1.61 +if not CONFIG['JS_STANDALONE']:
    1.62 +    # Bring in the configuration for the configured application.
    1.63 +    include('/' + CONFIG['MOZ_BUILD_APP'] + '/app.mozbuild')

mercurial