dom/base/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.

michael@0 1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
michael@0 2 # vim: set filetype=python:
michael@0 3 # This Source Code Form is subject to the terms of the Mozilla Public
michael@0 4 # License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
michael@0 6
michael@0 7 TEST_DIRS += ['test']
michael@0 8
michael@0 9 XPIDL_SOURCES += [
michael@0 10 'nsIConsoleAPIStorage.idl',
michael@0 11 'nsIDOMDOMCursor.idl',
michael@0 12 'nsIDOMDOMRequest.idl',
michael@0 13 'nsIEntropyCollector.idl',
michael@0 14 'nsIScriptChannel.idl',
michael@0 15 'nsISiteSpecificUserAgent.idl',
michael@0 16 ]
michael@0 17
michael@0 18 XPIDL_MODULE = 'dom'
michael@0 19
michael@0 20 EXPORTS += [
michael@0 21 'Crypto.h',
michael@0 22 'nsContentPermissionHelper.h',
michael@0 23 'nsDOMCID.h',
michael@0 24 'nsDOMClassInfoClasses.h',
michael@0 25 'nsDOMClassInfoID.h',
michael@0 26 'nsDOMJSUtils.h',
michael@0 27 'nsDOMNavigationTiming.h',
michael@0 28 'nsDOMString.h',
michael@0 29 'nsFocusManager.h',
michael@0 30 'nsIDOMClassInfo.h',
michael@0 31 'nsIDOMScriptObjectFactory.h',
michael@0 32 'nsIGlobalObject.h',
michael@0 33 'nsIJSNativeInitializer.h',
michael@0 34 'nsIScriptContext.h',
michael@0 35 'nsIScriptExternalNameSet.h',
michael@0 36 'nsIScriptGlobalObject.h',
michael@0 37 'nsIScriptNameSpaceManager.h',
michael@0 38 'nsIScriptObjectPrincipal.h',
michael@0 39 'nsIScriptTimeoutHandler.h',
michael@0 40 'nsJSEnvironment.h',
michael@0 41 'nsJSUtils.h',
michael@0 42 'nsPerformance.h',
michael@0 43 'nsPIDOMWindow.h',
michael@0 44 'nsPIWindowRoot.h',
michael@0 45 'nsStructuredCloneContainer.h',
michael@0 46 'nsWindowMemoryReporter.h',
michael@0 47 'nsWrapperCache.h',
michael@0 48 'nsWrapperCacheInlines.h',
michael@0 49 ]
michael@0 50
michael@0 51 EXPORTS.mozilla.dom += [
michael@0 52 'BarProps.h',
michael@0 53 'Console.h',
michael@0 54 'DOMCursor.h',
michael@0 55 'DOMError.h',
michael@0 56 'DOMException.h',
michael@0 57 'DOMRequest.h',
michael@0 58 'MessageChannel.h',
michael@0 59 'MessagePort.h',
michael@0 60 'MessagePortList.h',
michael@0 61 'Navigator.h',
michael@0 62 'PerformanceEntry.h',
michael@0 63 'PerformanceResourceTiming.h',
michael@0 64 'ScreenOrientation.h',
michael@0 65 'ScriptSettings.h',
michael@0 66 'StructuredCloneTags.h',
michael@0 67 'URL.h',
michael@0 68 'URLSearchParams.h',
michael@0 69 ]
michael@0 70
michael@0 71 UNIFIED_SOURCES += [
michael@0 72 'BarProps.cpp',
michael@0 73 'CompositionStringSynthesizer.cpp',
michael@0 74 'Console.cpp',
michael@0 75 'Crypto.cpp',
michael@0 76 'DOMCursor.cpp',
michael@0 77 'DOMError.cpp',
michael@0 78 'DOMException.cpp',
michael@0 79 'DOMRequest.cpp',
michael@0 80 'MessageChannel.cpp',
michael@0 81 'MessagePortList.cpp',
michael@0 82 'Navigator.cpp',
michael@0 83 'nsContentPermissionHelper.cpp',
michael@0 84 'nsDOMClassInfo.cpp',
michael@0 85 'nsDOMNavigationTiming.cpp',
michael@0 86 'nsDOMScriptObjectFactory.cpp',
michael@0 87 'nsDOMWindowList.cpp',
michael@0 88 'nsFocusManager.cpp',
michael@0 89 'nsGlobalWindowCommands.cpp',
michael@0 90 'nsHistory.cpp',
michael@0 91 'nsIGlobalObject.cpp',
michael@0 92 'nsJSTimeoutHandler.cpp',
michael@0 93 'nsJSUtils.cpp',
michael@0 94 'nsLocation.cpp',
michael@0 95 'nsMimeTypeArray.cpp',
michael@0 96 'nsPerformance.cpp',
michael@0 97 'nsQueryContentEventResult.cpp',
michael@0 98 'nsScreen.cpp',
michael@0 99 'nsScriptNameSpaceManager.cpp',
michael@0 100 'nsStructuredCloneContainer.cpp',
michael@0 101 'nsWindowMemoryReporter.cpp',
michael@0 102 'nsWindowRoot.cpp',
michael@0 103 'nsWrapperCache.cpp',
michael@0 104 'PerformanceEntry.cpp',
michael@0 105 'PerformanceResourceTiming.cpp',
michael@0 106 'ScriptSettings.cpp',
michael@0 107 'URL.cpp',
michael@0 108 'URLSearchParams.cpp',
michael@0 109 'WindowNamedPropertiesHandler.cpp',
michael@0 110 ]
michael@0 111
michael@0 112 # these files couldn't be in UNIFIED_SOURCES for now for reasons given below:
michael@0 113 SOURCES += [
michael@0 114 # this file doesn't like windows.h
michael@0 115 'MessagePort.cpp',
michael@0 116 # this file doesn't like windows.h
michael@0 117 'nsDOMWindowUtils.cpp',
michael@0 118 # This file has a #error "Never include windows.h in this file!"
michael@0 119 'nsGlobalWindow.cpp',
michael@0 120 # This file forces NSPR logging.
michael@0 121 'nsJSEnvironment.cpp',
michael@0 122 # nsPluginArray.cpp includes npapi.h indirectly, and that includes a lot of system headers
michael@0 123 'nsPluginArray.cpp',
michael@0 124 ]
michael@0 125
michael@0 126 EXTRA_COMPONENTS += [
michael@0 127 'ConsoleAPI.manifest',
michael@0 128 'ConsoleAPIStorage.js',
michael@0 129 'SiteSpecificUserAgent.js',
michael@0 130 'SiteSpecificUserAgent.manifest',
michael@0 131 ]
michael@0 132
michael@0 133 EXTRA_JS_MODULES += [
michael@0 134 'DOMRequestHelper.jsm',
michael@0 135 'IndexedDBHelper.jsm',
michael@0 136 'ObjectWrapper.jsm',
michael@0 137 ]
michael@0 138
michael@0 139 FAIL_ON_WARNINGS = True
michael@0 140
michael@0 141 MSVC_ENABLE_PGO = True
michael@0 142
michael@0 143 LOCAL_INCLUDES += [
michael@0 144 '../battery',
michael@0 145 '../bluetooth',
michael@0 146 '../events',
michael@0 147 '../media',
michael@0 148 '../network/src',
michael@0 149 '../src/geolocation',
michael@0 150 '../src/storage',
michael@0 151 '../time',
michael@0 152 '../workers',
michael@0 153 '../xbl',
michael@0 154 '/content/base/src',
michael@0 155 '/content/html/document/src',
michael@0 156 '/content/xul/document/src',
michael@0 157 '/layout/generic',
michael@0 158 '/layout/style',
michael@0 159 '/layout/xul',
michael@0 160 '/widget/shared',
michael@0 161 ]
michael@0 162
michael@0 163 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
michael@0 164 LOCAL_INCLUDES += [
michael@0 165 '../fmradio',
michael@0 166 '../system/gonk',
michael@0 167 ]
michael@0 168
michael@0 169 include('/ipc/chromium/chromium-config.mozbuild')
michael@0 170
michael@0 171 FINAL_LIBRARY = 'gklayout'
michael@0 172
michael@0 173 LOCAL_INCLUDES += [
michael@0 174 '/js/xpconnect/src',
michael@0 175 '/js/xpconnect/wrappers',
michael@0 176 ]
michael@0 177
michael@0 178 for var in ('MOZ_JSDEBUGGER', 'MOZ_B2G_RIL', 'MOZ_B2G_FM'):
michael@0 179 if CONFIG[var]:
michael@0 180 DEFINES[var] = True
michael@0 181
michael@0 182 if CONFIG['MOZ_BUILD_APP'] in ['browser', 'mobile/android', 'xulrunner']:
michael@0 183 DEFINES['HAVE_SIDEBAR'] = True

mercurial