build/mozconfig.cache

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

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.

     1 # This Source Code Form is subject to the terms of the Mozilla Public
     2 # License, v. 2.0. If a copy of the MPL was not distributed with this
     3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
     5 # Setup for build cache
     7 read branch platform master <<EOF
     8 $(python2.7 -c 'import json; p = json.loads(open("'"$topsrcdir"'/../buildprops.json").read())["properties"]; print p["branch"], p["platform"], p["master"]' 2> /dev/null)
     9 EOF
    11 bucket=
    12 if test -z "$SCCACHE_DISABLE" -a -z "$no_sccache"; then
    13     case "${branch}_${master}" in
    14     try_*scl1.mozilla.com*|try_*.scl3.mozilla.com*)
    15         bucket=mozilla-releng-ceph-cache-scl3-try
    16         mk_add_options "export SCCACHE_NO_HTTPS=1"
    17         ;;
    18     try_*use1.mozilla.com*)
    19         bucket=mozilla-releng-s3-cache-us-east-1-try
    20         ;;
    21     try_*usw2.mozilla.com*)
    22         bucket=mozilla-releng-s3-cache-us-west-2-try
    23         ;;
    24     esac
    25 fi
    27 if test -z "$bucket"; then
    28     case "$platform" in
    29     win*) : ;;
    30     *)
    31         ac_add_options --with-ccache
    32     esac
    33 else
    34     mk_add_options "export SCCACHE_BUCKET=$bucket"
    35     case "$master" in
    36     *use1.mozilla.com*|*usw2.mozilla.com*)
    37         mk_add_options "export SCCACHE_NAMESERVER=169.254.169.253"
    38         ;;
    39     esac
    40     ac_add_options "--with-compiler-wrapper=python2.7 $topsrcdir/sccache/sccache.py"
    41     mk_add_options MOZ_PREFLIGHT+=build/sccache.mk
    42     mk_add_options MOZ_POSTFLIGHT+=build/sccache.mk
    43     case "$platform" in
    44     win*)
    45         # sccache supports a special flag to create depfiles.
    46         export _DEPEND_CFLAGS='-deps$(MDDEPDIR)/$(@F).pp'
    47         # Windows builds have a default wrapper that needs to be overridden
    48         mk_add_options "export CC_WRAPPER="
    49         mk_add_options "export CXX_WRAPPER="
    50         # For now, sccache doesn't support separate PDBs so force debug info to be
    51         # in object files.
    52         mk_add_options "export COMPILE_PDB_FLAG="
    53         mk_add_options "export HOST_PDB_FLAG="
    54         mk_add_options "export MOZ_DEBUG_FLAGS=-Z7"
    55         ;;
    56     esac
    57 fi

mercurial