moz.build

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

michael@0 1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
michael@0 2 # vim: set filetype=python:
michael@0 3 # This Source Code Form is subject to the terms of the Mozilla Public
michael@0 4 # License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
michael@0 6
michael@0 7 CONFIGURE_SUBST_FILES += [
michael@0 8 'config/autoconf.mk',
michael@0 9 'config/emptyvars.mk',
michael@0 10 ]
michael@0 11
michael@0 12 if CONFIG['ENABLE_CLANG_PLUGIN']:
michael@0 13 add_tier_dir('base', 'build/clang-plugin', external=True)
michael@0 14
michael@0 15 add_tier_dir('base', ['config', 'python'])
michael@0 16 if not CONFIG['JS_STANDALONE']:
michael@0 17 CONFIGURE_SUBST_FILES += [
michael@0 18 'mozilla-config.h',
michael@0 19 'tools/update-packaging/Makefile',
michael@0 20 ]
michael@0 21
michael@0 22 add_tier_dir('base', ['build', 'probes'])
michael@0 23
michael@0 24 if not CONFIG['LIBXUL_SDK']:
michael@0 25 add_tier_dir('base', ['mfbt'])
michael@0 26
michael@0 27 if not CONFIG['JS_STANDALONE']:
michael@0 28 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
michael@0 29 add_tier_dir('base', ['other-licenses/android'])
michael@0 30
michael@0 31 if CONFIG['MOZ_MEMORY']:
michael@0 32 add_tier_dir('base', ['memory'])
michael@0 33
michael@0 34 if not CONFIG['MOZ_NATIVE_ZLIB']:
michael@0 35 add_tier_dir('base', ['modules/zlib'])
michael@0 36
michael@0 37 add_tier_dir('base', ['mozglue', 'memory/mozalloc'])
michael@0 38
michael@0 39 if not CONFIG['JS_STANDALONE']:
michael@0 40 add_tier_dir('precompile', 'xpcom/xpidl')
michael@0 41
michael@0 42 if CONFIG['COMPILE_ENVIRONMENT'] and not CONFIG['LIBXUL_SDK']:
michael@0 43 if not CONFIG['MOZ_NATIVE_NSPR']:
michael@0 44 add_tier_dir('nspr', 'config/nspr')
michael@0 45
michael@0 46 add_tier_dir('external', 'config/external')
michael@0 47
michael@0 48 if not CONFIG['MOZ_NATIVE_NSS']:
michael@0 49 add_tier_dir('nss', 'security/build')
michael@0 50
michael@0 51 if CONFIG['COMPILE_ENVIRONMENT'] and not CONFIG['LIBXUL_SDK']:
michael@0 52 if CONFIG['BUILD_CTYPES'] and not CONFIG['MOZ_NATIVE_FFI']:
michael@0 53 add_tier_dir('js', ['js/src/ctypes/libffi'], static=True)
michael@0 54 add_tier_dir('js', ['intl/icu'], static=True)
michael@0 55 CONFIGURE_SUBST_FILES += ['intl/icu/Makefile']
michael@0 56 add_tier_dir('js', ['js/src'])
michael@0 57
michael@0 58 if not CONFIG['JS_STANDALONE']:
michael@0 59 # Bring in the configuration for the configured application.
michael@0 60 include('/' + CONFIG['MOZ_BUILD_APP'] + '/app.mozbuild')

mercurial