DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Mercurial (d1ed7de67f5a)

VCS Links

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

if CONFIG['LIBXUL_SDK']:
    error('toolkit.mozbuild is not compatible with --enable-libxul-sdk=')

if CONFIG['MOZ_SANDBOX']:
    add_tier_dir('sandbox', 'security/sandbox')

# Depends on NSS and NSPR, and must be built after sandbox or else B2G emulator
# builds fail.
add_tier_dir('platform', 'security/certverifier')

# Depends on certverifier
add_tier_dir('platform', 'security/apps')

# the signing related bits of libmar depend on nss
if CONFIG['MOZ_UPDATER']:
    add_tier_dir('platform', 'modules/libmar')

if CONFIG['NS_TRACE_MALLOC']:
    add_tier_dir('platform', 'tools/trace-malloc/lib')

if CONFIG['MOZ_DMD']:
    add_tier_dir('platform', 'memory/replace/dmd')

add_tier_dir('platform', 'config/external/freetype2')

add_tier_dir('platform', 'xpcom')

add_tier_dir('platform', [
    'modules/libpref',
    'intl',
    'netwerk',
])

if CONFIG['MOZ_AUTH_EXTENSION']:
    add_tier_dir('platform', 'extensions/auth')

if CONFIG['MOZ_UPDATER']:
    add_tier_dir('platform', 'other-licenses/bsdiff')

# Gecko/Core components.

add_tier_dir('platform', ['ipc', 'js/ipc'])

add_tier_dir('platform', ['hal', 'js/xpconnect', 'intl/chardet'])

add_tier_dir('platform', 'media/libyuv')

add_tier_dir('platform', ['modules/libjar', 'storage'])

if CONFIG['MOZ_PERMISSIONS']:
    add_tier_dir('platform', ['extensions/cookie', 'extensions/permissions'])

add_tier_dir('platform', 'rdf')

if CONFIG['MOZ_WEBRTC']:
    add_tier_dir('platform', [
        'media/webrtc',
        'media/mtransport/third_party',
        'media/mtransport/build',
        'media/mtransport/standalone',
    ])

if CONFIG['MOZ_OMX_PLUGIN']:
    add_tier_dir('platform', [
        'media/omx-plugin/lib/ics/libutils',
        'media/omx-plugin/lib/ics/libstagefright',
        'media/omx-plugin/lib/ics/libvideoeditorplayer',
        'media/omx-plugin/lib/gb/libutils',
        'media/omx-plugin/lib/gb/libstagefright',
        'media/omx-plugin/lib/gb/libstagefright_color_conversion',
        'media/omx-plugin/lib/gb235/libstagefright',
        'media/omx-plugin/lib/froyo/libstagefright',
        'media/omx-plugin',
        'media/omx-plugin/gb',
        'media/omx-plugin/gb235',
        'media/omx-plugin/froyo',
        'media/omx-plugin/lib/hc/libstagefright',
        'media/omx-plugin/hc',
        'media/omx-plugin/kk',
    ])

if CONFIG['ENABLE_TESTS']:
    add_tier_dir('platform', 'testing/specialpowers')

add_tier_dir('platform', 'testing/gtest')

add_tier_dir('platform', [
    'uriloader',
    'caps',
    'parser',
    'gfx',
    'image',
    'dom',
    'view',
    'widget',
    'content',
    'editor',
    'layout',
    'docshell',
    'embedding',
    'xpfe/appshell'
])

# This needs to be built after the gfx/ directory
# to ensure all dependencies for skia (e.g. mozalloc, xpcom)
# have been built
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
    add_tier_dir('platform', 'other-licenses/skia-npapi')

if CONFIG['MOZ_UNIVERSALCHARDET']:
    add_tier_dir('platform', 'extensions/universalchardet')

if CONFIG['ACCESSIBILITY']:
    add_tier_dir('platform', 'accessible')

# toolkit

add_tier_dir('platform', 'profile')

# This must precede xpfe.
if CONFIG['MOZ_JPROF']:
    add_tier_dir('platform', 'tools/jprof')

add_tier_dir('platform', 'tools/profiler')

add_tier_dir('platform', 'xpfe/components')

if CONFIG['MOZ_ENABLE_XREMOTE']:
    add_tier_dir('platform', 'widget/xremoteclient')

if CONFIG['MOZ_SPELLCHECK']:
    add_tier_dir('platform', 'extensions/spellcheck')

add_tier_dir('platform', 'security/manager')

add_tier_dir('platform', 'toolkit')

if CONFIG['MOZ_PREF_EXTENSIONS']:
    add_tier_dir('platform', 'extensions/pref')

add_tier_dir('platform', 'services')
add_tier_dir('platform', 'startupcache')
add_tier_dir('platform', 'js/ductwork/debugger')
add_tier_dir('platform', 'other-licenses/snappy')

if CONFIG['MOZ_GIO_COMPONENT']:
    add_tier_dir('platform', 'extensions/gio')

add_tier_dir('platform', 'toolkit/library/StaticXULComponentsEnd')
add_tier_dir('platform', 'toolkit/library')

if CONFIG['MOZ_REPLACE_MALLOC']:
    add_tier_dir('platform', 'memory/replace')

if CONFIG['NS_TRACE_MALLOC']:
    add_tier_dir('platform', 'tools/trace-malloc')

if CONFIG['MOZ_ENABLE_GNOME_COMPONENT']:
    add_tier_dir('platform', 'toolkit/system/gnome')

# if QtNetwork is present, it will do its own network monitoring
if not CONFIG['MOZ_ENABLE_QTNETWORK'] and CONFIG['MOZ_ENABLE_DBUS']:
    add_tier_dir('platform', 'toolkit/system/dbus')

add_tier_dir('platform', 'addon-sdk')

if CONFIG['ENABLE_MARIONETTE'] or CONFIG['MOZ_WIDGET_TOOLKIT'] not in ('gonk', 'android'):
    add_tier_dir('platform', 'testing/marionette')

add_tier_dir('platform', 'tools/quitter')

if CONFIG['ENABLE_TESTS']:
    add_tier_dir('platform', [
        'testing/mochitest',
        'testing/xpcshell',
        'testing/tools/screenshot',
        'testing/profiles',
        'testing/mozbase',
        'testing/modules',
    ])

    if CONFIG['MOZ_WEBRTC'] and CONFIG['MOZ_WIDGET_TOOLKIT'] != 'gonk':
            add_tier_dir('platform', [
                'media/webrtc/signaling/test',
                'media/mtransport/test',
            ])