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