build/moz.build

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 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
     2 # vim: set filetype=python:
     3 # This Source Code Form is subject to the terms of the Mozilla Public
     4 # License, v. 2.0. If a copy of the MPL was not distributed with this
     5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
     7 # This cannot be named "build" because of bug 922191.
     8 SPHINX_TREES['buildsystem'] = 'docs'
    10 if CONFIG['OS_ARCH'] == 'WINNT':
    11     DIRS += ['win32']
    12 else:
    13     DIRS += ['unix']
    15 if CONFIG['OS_TARGET'] == 'Android' and not CONFIG['MOZ_ANDROID_LIBSTDCXX']:
    16     DIRS += ['stlport']
    18 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
    19     DIRS += ['annotationProcessors']
    20     TEST_DIRS += [
    21         'mobile/sutagent/android',
    22         'mobile/sutagent/android/watcher',
    23         'mobile/sutagent/android/ffxcp',
    24         'mobile/sutagent/android/fencp',
    25         'mobile/robocop',
    26     ]
    28 for var in ('GRE_MILESTONE', 'MOZ_APP_VERSION', 'MOZ_APP_BASENAME',
    29             'MOZ_APP_VENDOR', 'MOZ_APP_ID', 'MAR_CHANNEL_ID',
    30             'ACCEPTED_MAR_CHANNEL_IDS'):
    31     DEFINES[var] = CONFIG[var]
    33 if CONFIG['MOZ_APP_DISPLAYNAME'] != CONFIG['MOZ_APP_BASENAME']:
    34     DEFINES['MOZ_APP_DISPLAYNAME'] = CONFIG['MOZ_APP_DISPLAYNAME']
    36 if CONFIG['MOZ_BUILD_APP'] == 'browser':
    37     DEFINES['MOZ_BUILD_APP_IS_BROWSER'] = True
    39 if CONFIG['MOZ_APP_PROFILE']:
    40     DEFINES['MOZ_APP_PROFILE'] = CONFIG['MOZ_APP_PROFILE']
    42 for var in ('MOZ_CRASHREPORTER', 'MOZ_PROFILE_MIGRATOR',
    43             'MOZ_EXTENSION_MANAGER', 'MOZ_APP_STATIC_INI'):
    44     if CONFIG[var]:
    45         DEFINES[var] = True

mercurial