xpcom/glue/standalone/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 # On win we build two glue libs - glue linked to crt dlls here and in staticruntime we build
     8 # a statically linked glue lib.
     9 if CONFIG['OS_ARCH'] == 'WINNT':
    10     DIRS += ['staticruntime']
    12 include('../objs.mozbuild')
    14 SOURCES += xpcom_glue_src_cppsrcs
    16 SOURCES += [
    17     '../nsStringAPI.cpp',
    18     'nsXPCOMGlue.cpp',
    19 ]
    21 LIBRARY_NAME = 'xpcomglue'
    23 EXPORTS += [
    24     'nsXPCOMGlue.h',
    25 ]
    27 SDK_LIBRARY = [
    28     "%s%s.%s" % (CONFIG['LIB_PREFIX'], 'xpcomglue', CONFIG['LIB_SUFFIX']),
    29 ]
    31 FORCE_STATIC_LIB = True
    33 if CONFIG['_MSC_VER']:
    34     DEFINES['_USE_ANSI_CPP'] = True
    36 DEFINES['XPCOM_GLUE'] = True
    38 if CONFIG['TARGET_XPCOM_ABI']:
    39     DEFINES['TARGET_XPCOM_ABI'] = '"%s"' % CONFIG['TARGET_XPCOM_ABI']
    41 LOCAL_INCLUDES += [
    42     '../../build',
    43 ]
    45 # Don't use STL wrappers here (i.e. wrapped <new>); they require mozalloc
    46 DISABLE_STL_WRAPPING = True

mercurial