toolkit/components/telemetry/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 XPCSHELL_TESTS_MANIFESTS += ['tests/unit/xpcshell.ini']
     9 XPIDL_SOURCES += [
    10     'nsITelemetry.idl',
    11 ]
    13 XPIDL_MODULE = 'telemetry'
    15 EXPORTS.mozilla += [
    16     'ProcessedStack.h',
    17     'Telemetry.h',
    18     'ThreadHangStats.h',
    19 ]
    21 SOURCES += [
    22     'Telemetry.cpp',
    23 ]
    25 EXTRA_COMPONENTS += [
    26     'TelemetryStartup.js',
    27     'TelemetryStartup.manifest'
    28 ]
    30 EXTRA_JS_MODULES += [
    31     'TelemetryFile.jsm',
    32     'TelemetryLog.jsm',
    33     'TelemetryStopwatch.jsm',
    34     'ThirdPartyCookieProbe.jsm',
    35 ]
    37 EXTRA_PP_JS_MODULES += [
    38     'TelemetryPing.jsm',
    39     'UITelemetry.jsm',
    40 ]
    42 FAIL_ON_WARNINGS = True
    44 MSVC_ENABLE_PGO = True
    46 include('/ipc/chromium/chromium-config.mozbuild')
    48 FINAL_LIBRARY = 'xul'
    50 GENERATED_FILES = [
    51     'TelemetryHistogramData.inc',
    52 ]
    54 if CONFIG['MOZILLA_OFFICIAL']:
    55     DEFINES['MOZILLA_OFFICIAL'] = True
    57 LOCAL_INCLUDES += [
    58     '/xpcom/build',
    59     '/xpcom/threads',
    60 ]

mercurial