toolkit/toolkit.mozbuild

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/toolkit/toolkit.mozbuild	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,203 @@
     1.4 +# vim: set filetype=python:
     1.5 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.6 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.8 +
     1.9 +if CONFIG['LIBXUL_SDK']:
    1.10 +    error('toolkit.mozbuild is not compatible with --enable-libxul-sdk=')
    1.11 +
    1.12 +if CONFIG['MOZ_CONTENT_SANDBOX']:
    1.13 +    add_tier_dir('sandbox', 'security/sandbox')
    1.14 +
    1.15 +# Depends on NSS and NSPR, and must be built after sandbox or else B2G emulator
    1.16 +# builds fail.
    1.17 +add_tier_dir('platform', 'security/certverifier')
    1.18 +
    1.19 +# Depends on certverifier
    1.20 +add_tier_dir('platform', 'security/apps')
    1.21 +
    1.22 +# the signing related bits of libmar depend on nss
    1.23 +if CONFIG['MOZ_UPDATER']:
    1.24 +    add_tier_dir('platform', 'modules/libmar')
    1.25 +
    1.26 +if CONFIG['NS_TRACE_MALLOC']:
    1.27 +    add_tier_dir('platform', 'tools/trace-malloc/lib')
    1.28 +
    1.29 +if CONFIG['MOZ_DMD']:
    1.30 +    add_tier_dir('platform', 'memory/replace/dmd')
    1.31 +
    1.32 +if CONFIG['MOZ_TREE_FREETYPE']:
    1.33 +    add_tier_dir('platform', 'modules/freetype2', static=True)
    1.34 +
    1.35 +add_tier_dir('platform', 'xpcom')
    1.36 +
    1.37 +add_tier_dir('platform', [
    1.38 +    'modules/libpref',
    1.39 +    'intl',
    1.40 +    'netwerk',
    1.41 +])
    1.42 +
    1.43 +if CONFIG['MOZ_AUTH_EXTENSION']:
    1.44 +    add_tier_dir('platform', 'extensions/auth')
    1.45 +
    1.46 +if CONFIG['MOZ_UPDATER']:
    1.47 +    add_tier_dir('platform', 'other-licenses/bsdiff')
    1.48 +
    1.49 +# Gecko/Core components.
    1.50 +
    1.51 +add_tier_dir('platform', ['ipc', 'js/ipc'])
    1.52 +
    1.53 +add_tier_dir('platform', ['hal', 'js/xpconnect', 'intl/chardet'])
    1.54 +
    1.55 +add_tier_dir('platform', 'media/libyuv')
    1.56 +
    1.57 +add_tier_dir('platform', ['modules/libjar', 'storage'])
    1.58 +
    1.59 +if CONFIG['MOZ_PERMISSIONS']:
    1.60 +    add_tier_dir('platform', ['extensions/cookie', 'extensions/permissions'])
    1.61 +
    1.62 +add_tier_dir('platform', 'rdf')
    1.63 +
    1.64 +if CONFIG['MOZ_JSDEBUGGER']:
    1.65 +    add_tier_dir('platform', 'js/jsd')
    1.66 +
    1.67 +if CONFIG['MOZ_WEBRTC']:
    1.68 +    add_tier_dir('platform', [
    1.69 +        'media/webrtc',
    1.70 +        'media/mtransport/third_party',
    1.71 +        'media/mtransport/build',
    1.72 +        'media/mtransport/standalone',
    1.73 +    ])
    1.74 +
    1.75 +if CONFIG['MOZ_OMX_PLUGIN']:
    1.76 +    add_tier_dir('platform', [
    1.77 +        'media/omx-plugin/lib/ics/libutils',
    1.78 +        'media/omx-plugin/lib/ics/libstagefright',
    1.79 +        'media/omx-plugin/lib/ics/libvideoeditorplayer',
    1.80 +        'media/omx-plugin/lib/gb/libutils',
    1.81 +        'media/omx-plugin/lib/gb/libstagefright',
    1.82 +        'media/omx-plugin/lib/gb/libstagefright_color_conversion',
    1.83 +        'media/omx-plugin/lib/gb235/libstagefright',
    1.84 +        'media/omx-plugin/lib/froyo/libstagefright',
    1.85 +        'media/omx-plugin',
    1.86 +        'media/omx-plugin/gb',
    1.87 +        'media/omx-plugin/gb235',
    1.88 +        'media/omx-plugin/froyo',
    1.89 +        'media/omx-plugin/lib/hc/libstagefright',
    1.90 +        'media/omx-plugin/hc',
    1.91 +        'media/omx-plugin/kk',
    1.92 +    ])
    1.93 +
    1.94 +if CONFIG['ENABLE_TESTS']:
    1.95 +    add_tier_dir('platform', 'testing/specialpowers')
    1.96 +
    1.97 +if CONFIG['ENABLE_TESTS']:
    1.98 +    add_tier_dir('platform', 'testing/gtest')
    1.99 +
   1.100 +if CONFIG['ENABLE_TESTS']:
   1.101 +    add_tier_dir('platform', 'tbb-tests')
   1.102 +
   1.103 +add_tier_dir('platform', [
   1.104 +    'uriloader',
   1.105 +    'caps',
   1.106 +    'parser',
   1.107 +    'gfx',
   1.108 +    'image',
   1.109 +    'dom',
   1.110 +    'view',
   1.111 +    'widget',
   1.112 +    'content',
   1.113 +    'editor',
   1.114 +    'layout',
   1.115 +    'docshell',
   1.116 +    'embedding',
   1.117 +    'xpfe/appshell'
   1.118 +])
   1.119 +
   1.120 +# This needs to be built after the gfx/ directory
   1.121 +# to ensure all dependencies for skia (e.g. mozalloc, xpcom)
   1.122 +# have been built
   1.123 +if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
   1.124 +    add_tier_dir('platform', 'other-licenses/skia-npapi')
   1.125 +
   1.126 +if CONFIG['MOZ_UNIVERSALCHARDET']:
   1.127 +    add_tier_dir('platform', 'extensions/universalchardet')
   1.128 +
   1.129 +if CONFIG['ACCESSIBILITY']:
   1.130 +    add_tier_dir('platform', 'accessible')
   1.131 +
   1.132 +# toolkit
   1.133 +
   1.134 +add_tier_dir('platform', 'profile')
   1.135 +
   1.136 +# This must precede xpfe.
   1.137 +if CONFIG['MOZ_JPROF']:
   1.138 +    add_tier_dir('platform', 'tools/jprof')
   1.139 +
   1.140 +add_tier_dir('platform', 'tools/profiler')
   1.141 +
   1.142 +add_tier_dir('platform', 'xpfe/components')
   1.143 +
   1.144 +if CONFIG['MOZ_ENABLE_XREMOTE']:
   1.145 +    add_tier_dir('platform', 'widget/xremoteclient')
   1.146 +
   1.147 +if CONFIG['MOZ_SPELLCHECK']:
   1.148 +    add_tier_dir('platform', 'extensions/spellcheck')
   1.149 +
   1.150 +add_tier_dir('platform', 'security/manager')
   1.151 +
   1.152 +add_tier_dir('platform', 'toolkit')
   1.153 +
   1.154 +if CONFIG['MOZ_PREF_EXTENSIONS']:
   1.155 +    add_tier_dir('platform', 'extensions/pref')
   1.156 +
   1.157 +add_tier_dir('platform', 'services')
   1.158 +add_tier_dir('platform', 'startupcache')
   1.159 +add_tier_dir('platform', 'js/ductwork/debugger')
   1.160 +add_tier_dir('platform', 'other-licenses/snappy')
   1.161 +
   1.162 +if CONFIG['MOZ_GIO_COMPONENT']:
   1.163 +    add_tier_dir('platform', 'extensions/gio')
   1.164 +
   1.165 +# Applications can cheat and ask for code to be
   1.166 +# built before libxul so it can be linked into libxul.
   1.167 +add_tier_dir('platform', app_libxul_dirs)
   1.168 +add_tier_dir('platform', app_libxul_static_dirs, static=True)
   1.169 +
   1.170 +add_tier_dir('platform', 'toolkit/library')
   1.171 +
   1.172 +if CONFIG['MOZ_REPLACE_MALLOC']:
   1.173 +    add_tier_dir('platform', 'memory/replace')
   1.174 +
   1.175 +if CONFIG['NS_TRACE_MALLOC']:
   1.176 +    add_tier_dir('platform', 'tools/trace-malloc')
   1.177 +
   1.178 +if CONFIG['MOZ_ENABLE_GNOME_COMPONENT']:
   1.179 +    add_tier_dir('platform', 'toolkit/system/gnome')
   1.180 +
   1.181 +# if QtNetwork is present, it will do its own network monitoring
   1.182 +if not CONFIG['MOZ_ENABLE_QTNETWORK'] and CONFIG['MOZ_ENABLE_DBUS']:
   1.183 +    add_tier_dir('platform', 'toolkit/system/dbus')
   1.184 +
   1.185 +add_tier_dir('platform', 'addon-sdk')
   1.186 +
   1.187 +if CONFIG['ENABLE_MARIONETTE'] or CONFIG['MOZ_WIDGET_TOOLKIT'] not in ('gonk', 'android'):
   1.188 +    add_tier_dir('platform', 'testing/marionette')
   1.189 +
   1.190 +add_tier_dir('platform', 'tools/quitter')
   1.191 +
   1.192 +if CONFIG['ENABLE_TESTS']:
   1.193 +    add_tier_dir('platform', [
   1.194 +        'testing/mochitest',
   1.195 +        'testing/xpcshell',
   1.196 +        'testing/tools/screenshot',
   1.197 +        'testing/profiles',
   1.198 +        'testing/mozbase',
   1.199 +        'testing/modules',
   1.200 +    ])
   1.201 +
   1.202 +    if CONFIG['MOZ_WEBRTC'] and CONFIG['MOZ_WIDGET_TOOLKIT'] != 'gonk':
   1.203 +            add_tier_dir('platform', [
   1.204 +                'media/webrtc/signaling/test',
   1.205 +                'media/mtransport/test',
   1.206 +            ])

mercurial