js/xpconnect/src/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 EXPORTS += [
     8     'BackstagePass.h',
     9     'nsCxPusher.h',
    10     'qsObjectHelper.h',
    11     'XPCJSMemoryReporter.h',
    12     'xpcObjectHelper.h',
    13     'xpcpublic.h',
    14 ]
    16 UNIFIED_SOURCES += [
    17     'nsCxPusher.cpp',
    18     'nsScriptError.cpp',
    19     'nsXPConnect.cpp',
    20     'Sandbox.cpp',
    21     'XPCCallContext.cpp',
    22     'XPCContext.cpp',
    23     'XPCConvert.cpp',
    24     'XPCDebug.cpp',
    25     'XPCException.cpp',
    26     'XPCJSContextStack.cpp',
    27     'XPCJSID.cpp',
    28     'XPCJSRuntime.cpp',
    29     'XPCJSWeakReference.cpp',
    30     'XPCLocale.cpp',
    31     'XPCLog.cpp',
    32     'XPCMaps.cpp',
    33     'XPCModule.cpp',
    34     'XPCQuickStubs.cpp',
    35     'XPCRuntimeService.cpp',
    36     'XPCShellImpl.cpp',
    37     'XPCString.cpp',
    38     'XPCThrower.cpp',
    39     'XPCVariant.cpp',
    40     'XPCWrappedJS.cpp',
    41     'XPCWrappedJSClass.cpp',
    42     'XPCWrappedNative.cpp',
    43     'XPCWrappedNativeInfo.cpp',
    44     'XPCWrappedNativeJSOps.cpp',
    45     'XPCWrappedNativeProto.cpp',
    46     'XPCWrappedNativeScope.cpp',
    47     'XPCWrapper.cpp',
    48 ]
    50 # XPCComponents.cpp cannot be built in unified mode because it uses plarena.h.
    51 SOURCES += [
    52     'XPCComponents.cpp',
    53 ]
    55 GENERATED_SOURCES += [
    56     'dom_quickstubs.cpp',
    57     'GeneratedEvents.cpp',
    58 ]
    60 FAIL_ON_WARNINGS = True
    62 MSVC_ENABLE_PGO = True
    64 LIBRARY_NAME = 'xpconnect_s'
    66 include('/ipc/chromium/chromium-config.mozbuild')
    68 FINAL_LIBRARY = 'gklayout'
    70 GENERATED_FILES = [
    71     'dom_quickstubs.h',
    72     'GeneratedEventClasses.h',
    73     'GeneratedEvents.h',
    74 ]
    76 DEFINES['JS_THREADSAFE'] = True
    78 if CONFIG['MOZ_JSDEBUGGER']:
    79     DEFINES['MOZ_JSDEBUGGER'] = True
    81 LOCAL_INCLUDES += [
    82     '../loader',
    83     '../wrappers',
    84     '/caps/include',
    85     '/content/base/public',
    86     '/content/base/src',
    87     '/content/html/content/src',
    88     '/content/html/document/src',
    89     '/content/svg/content/src',
    90     '/dom/base',
    91     '/dom/workers',
    92     '/js/ipc',
    93     '/layout/base',
    94     '/layout/style',
    95 ]
    97 if CONFIG['MOZ_B2G_BT']:
    98     LOCAL_INCLUDES += [
    99         '/dom/bluetooth',
   100     ]

mercurial