toolkit/components/url-classifier/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 TEST_TOOL_DIRS += ['tests']
     9 XPIDL_SOURCES += [
    10     'nsIUrlClassifierDBService.idl',
    11     'nsIUrlClassifierHashCompleter.idl',
    12     'nsIUrlClassifierPrefixSet.idl',
    13     'nsIUrlClassifierStreamUpdater.idl',
    14     'nsIUrlClassifierUtils.idl',
    15     'nsIUrlListManager.idl',
    16 ]
    18 XPIDL_MODULE = 'url-classifier'
    20 UNIFIED_SOURCES += [
    21     'ChunkSet.cpp',
    22     'Classifier.cpp',
    23     'LookupCache.cpp',
    24     'nsCheckSummedOutputStream.cpp',
    25     'nsUrlClassifierDBService.cpp',
    26     'nsUrlClassifierProxies.cpp',
    27     'nsUrlClassifierUtils.cpp',
    28     'ProtocolParser.cpp',
    29 ]
    31 # define conflicting LOG() macros
    32 SOURCES += [
    33     'nsUrlClassifierPrefixSet.cpp',
    34     'nsUrlClassifierStreamUpdater.cpp',
    35 ]
    37 # contains variables that conflict with LookupCache.cpp
    38 SOURCES += [
    39     'HashStore.cpp',
    40 ]
    42 EXTRA_COMPONENTS += [
    43     'nsURLClassifier.manifest',
    44     'nsUrlClassifierHashCompleter.js',
    45 ]
    47 # Same as JS components that are run through the pre-processor.
    48 EXTRA_PP_COMPONENTS += [
    49     'nsUrlClassifierLib.js',
    50     'nsUrlClassifierListManager.js',
    51 ]
    53 EXTRA_JS_MODULES += [
    54     'SafeBrowsing.jsm',
    55 ]
    57 EXPORTS += [
    58     'Entries.h',
    59     'LookupCache.h',
    60     'nsUrlClassifierPrefixSet.h',
    61 ]
    63 FAIL_ON_WARNINGS = True
    65 MSVC_ENABLE_PGO = True
    67 FINAL_LIBRARY = 'toolkitcomps'
    69 LOCAL_INCLUDES += [
    70     '../build',
    71     '/ipc/chromium/src',
    72 ]

mercurial