toolkit/toolkit.mozbuild

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 # vim: set filetype=python:
     2 # This Source Code Form is subject to the terms of the Mozilla Public
     3 # License, v. 2.0. If a copy of the MPL was not distributed with this
     4 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
     6 if CONFIG['LIBXUL_SDK']:
     7     error('toolkit.mozbuild is not compatible with --enable-libxul-sdk=')
     9 if CONFIG['MOZ_CONTENT_SANDBOX']:
    10     add_tier_dir('sandbox', 'security/sandbox')
    12 # Depends on NSS and NSPR, and must be built after sandbox or else B2G emulator
    13 # builds fail.
    14 add_tier_dir('platform', 'security/certverifier')
    16 # Depends on certverifier
    17 add_tier_dir('platform', 'security/apps')
    19 # the signing related bits of libmar depend on nss
    20 if CONFIG['MOZ_UPDATER']:
    21     add_tier_dir('platform', 'modules/libmar')
    23 if CONFIG['NS_TRACE_MALLOC']:
    24     add_tier_dir('platform', 'tools/trace-malloc/lib')
    26 if CONFIG['MOZ_DMD']:
    27     add_tier_dir('platform', 'memory/replace/dmd')
    29 if CONFIG['MOZ_TREE_FREETYPE']:
    30     add_tier_dir('platform', 'modules/freetype2', static=True)
    32 add_tier_dir('platform', 'xpcom')
    34 add_tier_dir('platform', [
    35     'modules/libpref',
    36     'intl',
    37     'netwerk',
    38 ])
    40 if CONFIG['MOZ_AUTH_EXTENSION']:
    41     add_tier_dir('platform', 'extensions/auth')
    43 if CONFIG['MOZ_UPDATER']:
    44     add_tier_dir('platform', 'other-licenses/bsdiff')
    46 # Gecko/Core components.
    48 add_tier_dir('platform', ['ipc', 'js/ipc'])
    50 add_tier_dir('platform', ['hal', 'js/xpconnect', 'intl/chardet'])
    52 add_tier_dir('platform', 'media/libyuv')
    54 add_tier_dir('platform', ['modules/libjar', 'storage'])
    56 if CONFIG['MOZ_PERMISSIONS']:
    57     add_tier_dir('platform', ['extensions/cookie', 'extensions/permissions'])
    59 add_tier_dir('platform', 'rdf')
    61 if CONFIG['MOZ_JSDEBUGGER']:
    62     add_tier_dir('platform', 'js/jsd')
    64 if CONFIG['MOZ_WEBRTC']:
    65     add_tier_dir('platform', [
    66         'media/webrtc',
    67         'media/mtransport/third_party',
    68         'media/mtransport/build',
    69         'media/mtransport/standalone',
    70     ])
    72 if CONFIG['MOZ_OMX_PLUGIN']:
    73     add_tier_dir('platform', [
    74         'media/omx-plugin/lib/ics/libutils',
    75         'media/omx-plugin/lib/ics/libstagefright',
    76         'media/omx-plugin/lib/ics/libvideoeditorplayer',
    77         'media/omx-plugin/lib/gb/libutils',
    78         'media/omx-plugin/lib/gb/libstagefright',
    79         'media/omx-plugin/lib/gb/libstagefright_color_conversion',
    80         'media/omx-plugin/lib/gb235/libstagefright',
    81         'media/omx-plugin/lib/froyo/libstagefright',
    82         'media/omx-plugin',
    83         'media/omx-plugin/gb',
    84         'media/omx-plugin/gb235',
    85         'media/omx-plugin/froyo',
    86         'media/omx-plugin/lib/hc/libstagefright',
    87         'media/omx-plugin/hc',
    88         'media/omx-plugin/kk',
    89     ])
    91 if CONFIG['ENABLE_TESTS']:
    92     add_tier_dir('platform', 'testing/specialpowers')
    94 if CONFIG['ENABLE_TESTS']:
    95     add_tier_dir('platform', 'testing/gtest')
    97 if CONFIG['ENABLE_TESTS']:
    98     add_tier_dir('platform', 'tbb-tests')
   100 add_tier_dir('platform', [
   101     'uriloader',
   102     'caps',
   103     'parser',
   104     'gfx',
   105     'image',
   106     'dom',
   107     'view',
   108     'widget',
   109     'content',
   110     'editor',
   111     'layout',
   112     'docshell',
   113     'embedding',
   114     'xpfe/appshell'
   115 ])
   117 # This needs to be built after the gfx/ directory
   118 # to ensure all dependencies for skia (e.g. mozalloc, xpcom)
   119 # have been built
   120 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
   121     add_tier_dir('platform', 'other-licenses/skia-npapi')
   123 if CONFIG['MOZ_UNIVERSALCHARDET']:
   124     add_tier_dir('platform', 'extensions/universalchardet')
   126 if CONFIG['ACCESSIBILITY']:
   127     add_tier_dir('platform', 'accessible')
   129 # toolkit
   131 add_tier_dir('platform', 'profile')
   133 # This must precede xpfe.
   134 if CONFIG['MOZ_JPROF']:
   135     add_tier_dir('platform', 'tools/jprof')
   137 add_tier_dir('platform', 'tools/profiler')
   139 add_tier_dir('platform', 'xpfe/components')
   141 if CONFIG['MOZ_ENABLE_XREMOTE']:
   142     add_tier_dir('platform', 'widget/xremoteclient')
   144 if CONFIG['MOZ_SPELLCHECK']:
   145     add_tier_dir('platform', 'extensions/spellcheck')
   147 add_tier_dir('platform', 'security/manager')
   149 add_tier_dir('platform', 'toolkit')
   151 if CONFIG['MOZ_PREF_EXTENSIONS']:
   152     add_tier_dir('platform', 'extensions/pref')
   154 add_tier_dir('platform', 'services')
   155 add_tier_dir('platform', 'startupcache')
   156 add_tier_dir('platform', 'js/ductwork/debugger')
   157 add_tier_dir('platform', 'other-licenses/snappy')
   159 if CONFIG['MOZ_GIO_COMPONENT']:
   160     add_tier_dir('platform', 'extensions/gio')
   162 # Applications can cheat and ask for code to be
   163 # built before libxul so it can be linked into libxul.
   164 add_tier_dir('platform', app_libxul_dirs)
   165 add_tier_dir('platform', app_libxul_static_dirs, static=True)
   167 add_tier_dir('platform', 'toolkit/library')
   169 if CONFIG['MOZ_REPLACE_MALLOC']:
   170     add_tier_dir('platform', 'memory/replace')
   172 if CONFIG['NS_TRACE_MALLOC']:
   173     add_tier_dir('platform', 'tools/trace-malloc')
   175 if CONFIG['MOZ_ENABLE_GNOME_COMPONENT']:
   176     add_tier_dir('platform', 'toolkit/system/gnome')
   178 # if QtNetwork is present, it will do its own network monitoring
   179 if not CONFIG['MOZ_ENABLE_QTNETWORK'] and CONFIG['MOZ_ENABLE_DBUS']:
   180     add_tier_dir('platform', 'toolkit/system/dbus')
   182 add_tier_dir('platform', 'addon-sdk')
   184 if CONFIG['ENABLE_MARIONETTE'] or CONFIG['MOZ_WIDGET_TOOLKIT'] not in ('gonk', 'android'):
   185     add_tier_dir('platform', 'testing/marionette')
   187 add_tier_dir('platform', 'tools/quitter')
   189 if CONFIG['ENABLE_TESTS']:
   190     add_tier_dir('platform', [
   191         'testing/mochitest',
   192         'testing/xpcshell',
   193         'testing/tools/screenshot',
   194         'testing/profiles',
   195         'testing/mozbase',
   196         'testing/modules',
   197     ])
   199     if CONFIG['MOZ_WEBRTC'] and CONFIG['MOZ_WIDGET_TOOLKIT'] != 'gonk':
   200             add_tier_dir('platform', [
   201                 'media/webrtc/signaling/test',
   202                 'media/mtransport/test',
   203             ])

mercurial