gfx/angle/src/build_angle.gypi

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 # Copyright (c) 2012 The ANGLE Project Authors. All rights reserved.
michael@0 2 # Use of this source code is governed by a BSD-style license that can be
michael@0 3 # found in the LICENSE file.
michael@0 4
michael@0 5 {
michael@0 6 'variables': {
michael@0 7 'angle_code': 1,
michael@0 8 },
michael@0 9 'target_defaults': {
michael@0 10 'defines': [
michael@0 11 'ANGLE_DISABLE_TRACE',
michael@0 12 'ANGLE_COMPILE_OPTIMIZATION_LEVEL=D3DCOMPILE_OPTIMIZATION_LEVEL1',
michael@0 13 'ANGLE_PRELOADED_D3DCOMPILER_MODULE_NAMES={ TEXT("d3dcompiler_46.dll"), TEXT("d3dcompiler_43.dll") }',
michael@0 14 ],
michael@0 15 },
michael@0 16 'targets': [
michael@0 17 {
michael@0 18 'target_name': 'preprocessor',
michael@0 19 'type': 'static_library',
michael@0 20 'include_dirs': [
michael@0 21 ],
michael@0 22 'sources': [
michael@0 23 'compiler/preprocessor/DiagnosticsBase.cpp',
michael@0 24 'compiler/preprocessor/DiagnosticsBase.h',
michael@0 25 'compiler/preprocessor/DirectiveHandlerBase.cpp',
michael@0 26 'compiler/preprocessor/DirectiveHandlerBase.h',
michael@0 27 'compiler/preprocessor/DirectiveParser.cpp',
michael@0 28 'compiler/preprocessor/DirectiveParser.h',
michael@0 29 'compiler/preprocessor/ExpressionParser.cpp',
michael@0 30 'compiler/preprocessor/ExpressionParser.h',
michael@0 31 'compiler/preprocessor/Input.cpp',
michael@0 32 'compiler/preprocessor/Input.h',
michael@0 33 'compiler/preprocessor/length_limits.h',
michael@0 34 'compiler/preprocessor/Lexer.cpp',
michael@0 35 'compiler/preprocessor/Lexer.h',
michael@0 36 'compiler/preprocessor/Macro.cpp',
michael@0 37 'compiler/preprocessor/Macro.h',
michael@0 38 'compiler/preprocessor/MacroExpander.cpp',
michael@0 39 'compiler/preprocessor/MacroExpander.h',
michael@0 40 'compiler/preprocessor/numeric_lex.h',
michael@0 41 'compiler/preprocessor/pp_utils.h',
michael@0 42 'compiler/preprocessor/Preprocessor.cpp',
michael@0 43 'compiler/preprocessor/Preprocessor.h',
michael@0 44 'compiler/preprocessor/SourceLocation.h',
michael@0 45 'compiler/preprocessor/Token.cpp',
michael@0 46 'compiler/preprocessor/Token.h',
michael@0 47 'compiler/preprocessor/Tokenizer.cpp',
michael@0 48 'compiler/preprocessor/Tokenizer.h',
michael@0 49 ],
michael@0 50 # TODO(jschuh): http://crbug.com/167187
michael@0 51 'msvs_disabled_warnings': [
michael@0 52 4267,
michael@0 53 ],
michael@0 54 },
michael@0 55 {
michael@0 56 'target_name': 'translator_common',
michael@0 57 'type': 'static_library',
michael@0 58 'dependencies': ['preprocessor'],
michael@0 59 'include_dirs': [
michael@0 60 '.',
michael@0 61 '../include',
michael@0 62 ],
michael@0 63 'defines': [
michael@0 64 'COMPILER_IMPLEMENTATION',
michael@0 65 ],
michael@0 66 'sources': [
michael@0 67 'compiler/BaseTypes.h',
michael@0 68 'compiler/BuiltInFunctionEmulator.cpp',
michael@0 69 'compiler/BuiltInFunctionEmulator.h',
michael@0 70 'compiler/Common.h',
michael@0 71 'compiler/Compiler.cpp',
michael@0 72 'compiler/ConstantUnion.h',
michael@0 73 'compiler/debug.cpp',
michael@0 74 'compiler/debug.h',
michael@0 75 'compiler/DetectCallDepth.cpp',
michael@0 76 'compiler/DetectCallDepth.h',
michael@0 77 'compiler/Diagnostics.h',
michael@0 78 'compiler/Diagnostics.cpp',
michael@0 79 'compiler/DirectiveHandler.h',
michael@0 80 'compiler/DirectiveHandler.cpp',
michael@0 81 'compiler/ExtensionBehavior.h',
michael@0 82 'compiler/ForLoopUnroll.cpp',
michael@0 83 'compiler/ForLoopUnroll.h',
michael@0 84 'compiler/glslang.h',
michael@0 85 'compiler/glslang_lex.cpp',
michael@0 86 'compiler/glslang_tab.cpp',
michael@0 87 'compiler/glslang_tab.h',
michael@0 88 'compiler/HashNames.h',
michael@0 89 'compiler/InfoSink.cpp',
michael@0 90 'compiler/InfoSink.h',
michael@0 91 'compiler/Initialize.cpp',
michael@0 92 'compiler/Initialize.h',
michael@0 93 'compiler/InitializeDll.cpp',
michael@0 94 'compiler/InitializeDll.h',
michael@0 95 'compiler/InitializeGlobals.h',
michael@0 96 'compiler/InitializeParseContext.cpp',
michael@0 97 'compiler/InitializeParseContext.h',
michael@0 98 'compiler/Intermediate.cpp',
michael@0 99 'compiler/intermediate.h',
michael@0 100 'compiler/intermOut.cpp',
michael@0 101 'compiler/IntermTraverse.cpp',
michael@0 102 'compiler/localintermediate.h',
michael@0 103 'compiler/MapLongVariableNames.cpp',
michael@0 104 'compiler/MapLongVariableNames.h',
michael@0 105 'compiler/MMap.h',
michael@0 106 'compiler/osinclude.h',
michael@0 107 'compiler/parseConst.cpp',
michael@0 108 'compiler/ParseHelper.cpp',
michael@0 109 'compiler/ParseHelper.h',
michael@0 110 'compiler/PoolAlloc.cpp',
michael@0 111 'compiler/PoolAlloc.h',
michael@0 112 'compiler/QualifierAlive.cpp',
michael@0 113 'compiler/QualifierAlive.h',
michael@0 114 'compiler/RemoveTree.cpp',
michael@0 115 'compiler/RemoveTree.h',
michael@0 116 'compiler/RenameFunction.h',
michael@0 117 'compiler/ShHandle.h',
michael@0 118 'compiler/SymbolTable.cpp',
michael@0 119 'compiler/SymbolTable.h',
michael@0 120 'compiler/Types.h',
michael@0 121 'compiler/Uniform.cpp',
michael@0 122 'compiler/Uniform.h',
michael@0 123 'compiler/util.cpp',
michael@0 124 'compiler/util.h',
michael@0 125 'compiler/ValidateLimitations.cpp',
michael@0 126 'compiler/ValidateLimitations.h',
michael@0 127 'compiler/VariableInfo.cpp',
michael@0 128 'compiler/VariableInfo.h',
michael@0 129 'compiler/VariablePacker.cpp',
michael@0 130 'compiler/VariablePacker.h',
michael@0 131 # Dependency graph
michael@0 132 'compiler/depgraph/DependencyGraph.cpp',
michael@0 133 'compiler/depgraph/DependencyGraph.h',
michael@0 134 'compiler/depgraph/DependencyGraphBuilder.cpp',
michael@0 135 'compiler/depgraph/DependencyGraphBuilder.h',
michael@0 136 'compiler/depgraph/DependencyGraphOutput.cpp',
michael@0 137 'compiler/depgraph/DependencyGraphOutput.h',
michael@0 138 'compiler/depgraph/DependencyGraphTraverse.cpp',
michael@0 139 # Timing restrictions
michael@0 140 'compiler/timing/RestrictFragmentShaderTiming.cpp',
michael@0 141 'compiler/timing/RestrictFragmentShaderTiming.h',
michael@0 142 'compiler/timing/RestrictVertexShaderTiming.cpp',
michael@0 143 'compiler/timing/RestrictVertexShaderTiming.h',
michael@0 144 'third_party/compiler/ArrayBoundsClamper.cpp',
michael@0 145 'third_party/compiler/ArrayBoundsClamper.h',
michael@0 146 ],
michael@0 147 'conditions': [
michael@0 148 ['OS=="win"', {
michael@0 149 # TODO(jschuh): http://crbug.com/167187 size_t -> int
michael@0 150 'msvs_disabled_warnings': [ 4267 ],
michael@0 151 'sources': ['compiler/ossource_win.cpp'],
michael@0 152 }, { # else: posix
michael@0 153 'sources': ['compiler/ossource_posix.cpp'],
michael@0 154 }],
michael@0 155 ],
michael@0 156 },
michael@0 157 {
michael@0 158 'target_name': 'translator_glsl',
michael@0 159 'type': '<(component)',
michael@0 160 'dependencies': ['translator_common'],
michael@0 161 'include_dirs': [
michael@0 162 '.',
michael@0 163 '../include',
michael@0 164 ],
michael@0 165 'defines': [
michael@0 166 'COMPILER_IMPLEMENTATION',
michael@0 167 ],
michael@0 168 'sources': [
michael@0 169 'compiler/CodeGenGLSL.cpp',
michael@0 170 'compiler/OutputESSL.cpp',
michael@0 171 'compiler/OutputESSL.h',
michael@0 172 'compiler/OutputGLSLBase.cpp',
michael@0 173 'compiler/OutputGLSLBase.h',
michael@0 174 'compiler/OutputGLSL.cpp',
michael@0 175 'compiler/OutputGLSL.h',
michael@0 176 'compiler/ShaderLang.cpp',
michael@0 177 'compiler/TranslatorESSL.cpp',
michael@0 178 'compiler/TranslatorESSL.h',
michael@0 179 'compiler/TranslatorGLSL.cpp',
michael@0 180 'compiler/TranslatorGLSL.h',
michael@0 181 'compiler/VersionGLSL.cpp',
michael@0 182 'compiler/VersionGLSL.h',
michael@0 183 ],
michael@0 184 # TODO(jschuh): http://crbug.com/167187 size_t -> int
michael@0 185 'msvs_disabled_warnings': [ 4267 ],
michael@0 186 },
michael@0 187 ],
michael@0 188 'conditions': [
michael@0 189 ['OS=="win"', {
michael@0 190 'targets': [
michael@0 191 {
michael@0 192 'target_name': 'translator_hlsl',
michael@0 193 'type': '<(component)',
michael@0 194 'dependencies': ['translator_common'],
michael@0 195 'include_dirs': [
michael@0 196 '.',
michael@0 197 '../include',
michael@0 198 ],
michael@0 199 'defines': [
michael@0 200 'COMPILER_IMPLEMENTATION',
michael@0 201 ],
michael@0 202 'sources': [
michael@0 203 'compiler/ShaderLang.cpp',
michael@0 204 'compiler/DetectDiscontinuity.cpp',
michael@0 205 'compiler/DetectDiscontinuity.h',
michael@0 206 'compiler/CodeGenHLSL.cpp',
michael@0 207 'compiler/OutputHLSL.cpp',
michael@0 208 'compiler/OutputHLSL.h',
michael@0 209 'compiler/TranslatorHLSL.cpp',
michael@0 210 'compiler/TranslatorHLSL.h',
michael@0 211 'compiler/UnfoldShortCircuit.cpp',
michael@0 212 'compiler/UnfoldShortCircuit.h',
michael@0 213 'compiler/SearchSymbol.cpp',
michael@0 214 'compiler/SearchSymbol.h',
michael@0 215 ],
michael@0 216 # TODO(jschuh): http://crbug.com/167187 size_t -> int
michael@0 217 'msvs_disabled_warnings': [ 4267 ],
michael@0 218 },
michael@0 219 {
michael@0 220 'target_name': 'libGLESv2',
michael@0 221 'type': 'shared_library',
michael@0 222 'dependencies': ['translator_hlsl'],
michael@0 223 'include_dirs': [
michael@0 224 '.',
michael@0 225 '../include',
michael@0 226 'libGLESv2',
michael@0 227 ],
michael@0 228 'sources': [
michael@0 229 'third_party/murmurhash/MurmurHash3.h',
michael@0 230 'third_party/murmurhash/MurmurHash3.cpp',
michael@0 231 'common/angleutils.h',
michael@0 232 'common/debug.cpp',
michael@0 233 'common/debug.h',
michael@0 234 'common/RefCountObject.cpp',
michael@0 235 'common/RefCountObject.h',
michael@0 236 'common/version.h',
michael@0 237 'libGLESv2/precompiled.h',
michael@0 238 'libGLESv2/precompiled.cpp',
michael@0 239 'libGLESv2/BinaryStream.h',
michael@0 240 'libGLESv2/Buffer.cpp',
michael@0 241 'libGLESv2/Buffer.h',
michael@0 242 'libGLESv2/constants.h',
michael@0 243 'libGLESv2/Context.cpp',
michael@0 244 'libGLESv2/Context.h',
michael@0 245 'libGLESv2/angletypes.h',
michael@0 246 'libGLESv2/Fence.cpp',
michael@0 247 'libGLESv2/Fence.h',
michael@0 248 'libGLESv2/Float16ToFloat32.cpp',
michael@0 249 'libGLESv2/Framebuffer.cpp',
michael@0 250 'libGLESv2/Framebuffer.h',
michael@0 251 'libGLESv2/HandleAllocator.cpp',
michael@0 252 'libGLESv2/HandleAllocator.h',
michael@0 253 'libGLESv2/libGLESv2.cpp',
michael@0 254 'libGLESv2/libGLESv2.def',
michael@0 255 'libGLESv2/libGLESv2.rc',
michael@0 256 'libGLESv2/main.cpp',
michael@0 257 'libGLESv2/main.h',
michael@0 258 'libGLESv2/mathutil.h',
michael@0 259 'libGLESv2/Program.cpp',
michael@0 260 'libGLESv2/Program.h',
michael@0 261 'libGLESv2/ProgramBinary.cpp',
michael@0 262 'libGLESv2/ProgramBinary.h',
michael@0 263 'libGLESv2/Query.h',
michael@0 264 'libGLESv2/Query.cpp',
michael@0 265 'libGLESv2/Renderbuffer.cpp',
michael@0 266 'libGLESv2/Renderbuffer.h',
michael@0 267 'libGLESv2/renderer/Blit.cpp',
michael@0 268 'libGLESv2/renderer/Blit.h',
michael@0 269 'libGLESv2/renderer/BufferStorage.h',
michael@0 270 'libGLESv2/renderer/BufferStorage.cpp',
michael@0 271 'libGLESv2/renderer/BufferStorage9.cpp',
michael@0 272 'libGLESv2/renderer/BufferStorage9.h',
michael@0 273 'libGLESv2/renderer/BufferStorage11.cpp',
michael@0 274 'libGLESv2/renderer/BufferStorage11.h',
michael@0 275 'libGLESv2/renderer/FenceImpl.h',
michael@0 276 'libGLESv2/renderer/Fence9.cpp',
michael@0 277 'libGLESv2/renderer/Fence9.h',
michael@0 278 'libGLESv2/renderer/Fence11.cpp',
michael@0 279 'libGLESv2/renderer/Fence11.h',
michael@0 280 'libGLESv2/renderer/generatemip.h',
michael@0 281 'libGLESv2/renderer/Image.cpp',
michael@0 282 'libGLESv2/renderer/Image.h',
michael@0 283 'libGLESv2/renderer/Image11.cpp',
michael@0 284 'libGLESv2/renderer/Image11.h',
michael@0 285 'libGLESv2/renderer/Image9.cpp',
michael@0 286 'libGLESv2/renderer/Image9.h',
michael@0 287 'libGLESv2/renderer/ImageSSE2.cpp',
michael@0 288 'libGLESv2/renderer/IndexBuffer.cpp',
michael@0 289 'libGLESv2/renderer/IndexBuffer.h',
michael@0 290 'libGLESv2/renderer/IndexBuffer9.cpp',
michael@0 291 'libGLESv2/renderer/IndexBuffer9.h',
michael@0 292 'libGLESv2/renderer/IndexBuffer11.cpp',
michael@0 293 'libGLESv2/renderer/IndexBuffer11.h',
michael@0 294 'libGLESv2/renderer/IndexDataManager.cpp',
michael@0 295 'libGLESv2/renderer/IndexDataManager.h',
michael@0 296 'libGLESv2/renderer/IndexRangeCache.cpp',
michael@0 297 'libGLESv2/renderer/IndexRangeCache.h',
michael@0 298 'libGLESv2/renderer/InputLayoutCache.cpp',
michael@0 299 'libGLESv2/renderer/InputLayoutCache.h',
michael@0 300 'libGLESv2/renderer/QueryImpl.h',
michael@0 301 'libGLESv2/renderer/Query9.cpp',
michael@0 302 'libGLESv2/renderer/Query9.h',
michael@0 303 'libGLESv2/renderer/Query11.cpp',
michael@0 304 'libGLESv2/renderer/Query11.h',
michael@0 305 'libGLESv2/renderer/Renderer.cpp',
michael@0 306 'libGLESv2/renderer/Renderer.h',
michael@0 307 'libGLESv2/renderer/Renderer11.cpp',
michael@0 308 'libGLESv2/renderer/Renderer11.h',
michael@0 309 'libGLESv2/renderer/renderer11_utils.cpp',
michael@0 310 'libGLESv2/renderer/renderer11_utils.h',
michael@0 311 'libGLESv2/renderer/Renderer9.cpp',
michael@0 312 'libGLESv2/renderer/Renderer9.h',
michael@0 313 'libGLESv2/renderer/renderer9_utils.cpp',
michael@0 314 'libGLESv2/renderer/renderer9_utils.h',
michael@0 315 'libGLESv2/renderer/RenderStateCache.cpp',
michael@0 316 'libGLESv2/renderer/RenderStateCache.h',
michael@0 317 'libGLESv2/renderer/RenderTarget.h',
michael@0 318 'libGLESv2/renderer/RenderTarget11.h',
michael@0 319 'libGLESv2/renderer/RenderTarget11.cpp',
michael@0 320 'libGLESv2/renderer/RenderTarget9.h',
michael@0 321 'libGLESv2/renderer/RenderTarget9.cpp',
michael@0 322 'libGLESv2/renderer/ShaderCache.h',
michael@0 323 'libGLESv2/renderer/ShaderExecutable.h',
michael@0 324 'libGLESv2/renderer/ShaderExecutable9.cpp',
michael@0 325 'libGLESv2/renderer/ShaderExecutable9.h',
michael@0 326 'libGLESv2/renderer/ShaderExecutable11.cpp',
michael@0 327 'libGLESv2/renderer/ShaderExecutable11.h',
michael@0 328 'libGLESv2/renderer/SwapChain.h',
michael@0 329 'libGLESv2/renderer/SwapChain9.cpp',
michael@0 330 'libGLESv2/renderer/SwapChain9.h',
michael@0 331 'libGLESv2/renderer/SwapChain11.cpp',
michael@0 332 'libGLESv2/renderer/SwapChain11.h',
michael@0 333 'libGLESv2/renderer/TextureStorage.cpp',
michael@0 334 'libGLESv2/renderer/TextureStorage.h',
michael@0 335 'libGLESv2/renderer/TextureStorage11.cpp',
michael@0 336 'libGLESv2/renderer/TextureStorage11.h',
michael@0 337 'libGLESv2/renderer/TextureStorage9.cpp',
michael@0 338 'libGLESv2/renderer/TextureStorage9.h',
michael@0 339 'libGLESv2/renderer/VertexBuffer.cpp',
michael@0 340 'libGLESv2/renderer/VertexBuffer.h',
michael@0 341 'libGLESv2/renderer/VertexBuffer9.cpp',
michael@0 342 'libGLESv2/renderer/VertexBuffer9.h',
michael@0 343 'libGLESv2/renderer/VertexBuffer11.cpp',
michael@0 344 'libGLESv2/renderer/VertexBuffer11.h',
michael@0 345 'libGLESv2/renderer/vertexconversion.h',
michael@0 346 'libGLESv2/renderer/VertexDataManager.cpp',
michael@0 347 'libGLESv2/renderer/VertexDataManager.h',
michael@0 348 'libGLESv2/renderer/VertexDeclarationCache.cpp',
michael@0 349 'libGLESv2/renderer/VertexDeclarationCache.h',
michael@0 350 'libGLESv2/ResourceManager.cpp',
michael@0 351 'libGLESv2/ResourceManager.h',
michael@0 352 'libGLESv2/Shader.cpp',
michael@0 353 'libGLESv2/Shader.h',
michael@0 354 'libGLESv2/Texture.cpp',
michael@0 355 'libGLESv2/Texture.h',
michael@0 356 'libGLESv2/Uniform.cpp',
michael@0 357 'libGLESv2/Uniform.h',
michael@0 358 'libGLESv2/utilities.cpp',
michael@0 359 'libGLESv2/utilities.h',
michael@0 360 ],
michael@0 361 # TODO(jschuh): http://crbug.com/167187 size_t -> int
michael@0 362 'msvs_disabled_warnings': [ 4267 ],
michael@0 363 'msvs_settings': {
michael@0 364 'VCLinkerTool': {
michael@0 365 'AdditionalDependencies': [
michael@0 366 'd3d9.lib',
michael@0 367 'dxguid.lib',
michael@0 368 ],
michael@0 369 }
michael@0 370 },
michael@0 371 },
michael@0 372 {
michael@0 373 'target_name': 'libEGL',
michael@0 374 'type': 'shared_library',
michael@0 375 'dependencies': ['libGLESv2'],
michael@0 376 'include_dirs': [
michael@0 377 '.',
michael@0 378 '../include',
michael@0 379 'libGLESv2',
michael@0 380 ],
michael@0 381 'sources': [
michael@0 382 'common/angleutils.h',
michael@0 383 'common/debug.cpp',
michael@0 384 'common/debug.h',
michael@0 385 'common/RefCountObject.cpp',
michael@0 386 'common/RefCountObject.h',
michael@0 387 'common/version.h',
michael@0 388 'libEGL/Config.cpp',
michael@0 389 'libEGL/Config.h',
michael@0 390 'libEGL/Display.cpp',
michael@0 391 'libEGL/Display.h',
michael@0 392 'libEGL/libEGL.cpp',
michael@0 393 'libEGL/libEGL.def',
michael@0 394 'libEGL/libEGL.rc',
michael@0 395 'libEGL/main.cpp',
michael@0 396 'libEGL/main.h',
michael@0 397 'libEGL/Surface.cpp',
michael@0 398 'libEGL/Surface.h',
michael@0 399 ],
michael@0 400 # TODO(jschuh): http://crbug.com/167187 size_t -> int
michael@0 401 'msvs_disabled_warnings': [ 4267 ],
michael@0 402 'msvs_settings': {
michael@0 403 'VCLinkerTool': {
michael@0 404 'AdditionalDependencies': [
michael@0 405 'd3d9.lib',
michael@0 406 ],
michael@0 407 }
michael@0 408 },
michael@0 409 },
michael@0 410 ],
michael@0 411 }],
michael@0 412 ],
michael@0 413 }
michael@0 414
michael@0 415 # Local Variables:
michael@0 416 # tab-width:2
michael@0 417 # indent-tabs-mode:nil
michael@0 418 # End:
michael@0 419 # vim: set expandtab tabstop=2 shiftwidth=2:
michael@0 420 # Copyright (c) 2012 The ANGLE Project Authors. All rights reserved.
michael@0 421 # Use of this source code is governed by a BSD-style license that can be
michael@0 422 # found in the LICENSE file.

mercurial