xpcom/components/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.

     1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
     2 # vim: set filetype=python:
     3 # This Source Code Form is subject to the terms of the Mozilla Public
     4 # License, v. 2.0. If a copy of the MPL was not distributed with this
     5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
     7 XPIDL_SOURCES += [
     8     'nsICategoryManager.idl',
     9     'nsIClassInfo.idl',
    10     'nsIComponentManager.idl',
    11     'nsIComponentRegistrar.idl',
    12     'nsIFactory.idl',
    13     'nsIModule.idl',
    14     'nsIServiceManager.idl',
    15 ]
    17 XPIDL_MODULE = 'xpcom_components'
    19 EXPORTS += [
    20     'nsCategoryManagerUtils.h',
    21 ]
    23 EXPORTS.mozilla += [
    24     'Module.h',
    25     'ModuleLoader.h',
    26     'ModuleUtils.h',
    27 ]
    29 # nsCategoryManager.cpp and nsComponentManager.cpp cannot be built in
    30 # unified mode because they use thea PL_ARENA_CONST_ALIGN_MASK macro
    31 # with plarena.h.
    32 # nsNativeComponentLoader.cpp cannot be built in unified mode because it
    33 # forces NSPR logging.
    34 SOURCES += [
    35     'ManifestParser.cpp',
    36     'nsCategoryManager.cpp',
    37     'nsComponentManager.cpp',
    38     'nsNativeComponentLoader.cpp',
    39 ]
    41 FAIL_ON_WARNINGS = True
    43 MSVC_ENABLE_PGO = True
    45 FINAL_LIBRARY = 'xpcom_core'
    47 GENERATED_INCLUDES += ['..']
    48 LOCAL_INCLUDES += [
    49     '../base',
    50     '../build',
    51     '../ds',
    52     '../reflect/xptinfo/src',
    53     '/chrome/src',
    54     '/modules/libjar',
    55 ]

mercurial