gfx/angle/src/build_angle.gypi

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gfx/angle/src/build_angle.gypi	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,422 @@
     1.4 +# Copyright (c) 2012 The ANGLE Project Authors. All rights reserved.
     1.5 +# Use of this source code is governed by a BSD-style license that can be
     1.6 +# found in the LICENSE file.
     1.7 +
     1.8 +{
     1.9 +  'variables': {
    1.10 +    'angle_code': 1,
    1.11 +  },
    1.12 +  'target_defaults': {
    1.13 +    'defines': [
    1.14 +      'ANGLE_DISABLE_TRACE',
    1.15 +      'ANGLE_COMPILE_OPTIMIZATION_LEVEL=D3DCOMPILE_OPTIMIZATION_LEVEL1',
    1.16 +      'ANGLE_PRELOADED_D3DCOMPILER_MODULE_NAMES={ TEXT("d3dcompiler_46.dll"), TEXT("d3dcompiler_43.dll") }',
    1.17 +    ],
    1.18 +  },
    1.19 +  'targets': [
    1.20 +    {
    1.21 +      'target_name': 'preprocessor',
    1.22 +      'type': 'static_library',
    1.23 +      'include_dirs': [
    1.24 +      ],
    1.25 +      'sources': [
    1.26 +        'compiler/preprocessor/DiagnosticsBase.cpp',
    1.27 +        'compiler/preprocessor/DiagnosticsBase.h',
    1.28 +        'compiler/preprocessor/DirectiveHandlerBase.cpp',
    1.29 +        'compiler/preprocessor/DirectiveHandlerBase.h',
    1.30 +        'compiler/preprocessor/DirectiveParser.cpp',
    1.31 +        'compiler/preprocessor/DirectiveParser.h',
    1.32 +        'compiler/preprocessor/ExpressionParser.cpp',
    1.33 +        'compiler/preprocessor/ExpressionParser.h',
    1.34 +        'compiler/preprocessor/Input.cpp',
    1.35 +        'compiler/preprocessor/Input.h',
    1.36 +        'compiler/preprocessor/length_limits.h',
    1.37 +        'compiler/preprocessor/Lexer.cpp',
    1.38 +        'compiler/preprocessor/Lexer.h',
    1.39 +        'compiler/preprocessor/Macro.cpp',
    1.40 +        'compiler/preprocessor/Macro.h',
    1.41 +        'compiler/preprocessor/MacroExpander.cpp',
    1.42 +        'compiler/preprocessor/MacroExpander.h',
    1.43 +        'compiler/preprocessor/numeric_lex.h',
    1.44 +        'compiler/preprocessor/pp_utils.h',
    1.45 +        'compiler/preprocessor/Preprocessor.cpp',
    1.46 +        'compiler/preprocessor/Preprocessor.h',
    1.47 +        'compiler/preprocessor/SourceLocation.h',
    1.48 +        'compiler/preprocessor/Token.cpp',
    1.49 +        'compiler/preprocessor/Token.h',
    1.50 +        'compiler/preprocessor/Tokenizer.cpp',
    1.51 +        'compiler/preprocessor/Tokenizer.h',
    1.52 +      ],
    1.53 +      # TODO(jschuh): http://crbug.com/167187
    1.54 +      'msvs_disabled_warnings': [
    1.55 +        4267,
    1.56 +      ],      
    1.57 +    },
    1.58 +    {
    1.59 +      'target_name': 'translator_common',
    1.60 +      'type': 'static_library',
    1.61 +      'dependencies': ['preprocessor'],
    1.62 +      'include_dirs': [
    1.63 +        '.',
    1.64 +        '../include',
    1.65 +      ],
    1.66 +      'defines': [
    1.67 +        'COMPILER_IMPLEMENTATION',
    1.68 +      ],
    1.69 +      'sources': [
    1.70 +        'compiler/BaseTypes.h',
    1.71 +        'compiler/BuiltInFunctionEmulator.cpp',
    1.72 +        'compiler/BuiltInFunctionEmulator.h',
    1.73 +        'compiler/Common.h',
    1.74 +        'compiler/Compiler.cpp',
    1.75 +        'compiler/ConstantUnion.h',
    1.76 +        'compiler/debug.cpp',
    1.77 +        'compiler/debug.h',
    1.78 +        'compiler/DetectCallDepth.cpp',
    1.79 +        'compiler/DetectCallDepth.h',
    1.80 +        'compiler/Diagnostics.h',
    1.81 +        'compiler/Diagnostics.cpp',
    1.82 +        'compiler/DirectiveHandler.h',
    1.83 +        'compiler/DirectiveHandler.cpp',
    1.84 +        'compiler/ExtensionBehavior.h',
    1.85 +        'compiler/ForLoopUnroll.cpp',
    1.86 +        'compiler/ForLoopUnroll.h',
    1.87 +        'compiler/glslang.h',
    1.88 +        'compiler/glslang_lex.cpp',
    1.89 +        'compiler/glslang_tab.cpp',
    1.90 +        'compiler/glslang_tab.h',
    1.91 +        'compiler/HashNames.h',
    1.92 +        'compiler/InfoSink.cpp',
    1.93 +        'compiler/InfoSink.h',
    1.94 +        'compiler/Initialize.cpp',
    1.95 +        'compiler/Initialize.h',
    1.96 +        'compiler/InitializeDll.cpp',
    1.97 +        'compiler/InitializeDll.h',
    1.98 +        'compiler/InitializeGlobals.h',
    1.99 +        'compiler/InitializeParseContext.cpp',
   1.100 +        'compiler/InitializeParseContext.h',
   1.101 +        'compiler/Intermediate.cpp',
   1.102 +        'compiler/intermediate.h',
   1.103 +        'compiler/intermOut.cpp',
   1.104 +        'compiler/IntermTraverse.cpp',
   1.105 +        'compiler/localintermediate.h',
   1.106 +        'compiler/MapLongVariableNames.cpp',
   1.107 +        'compiler/MapLongVariableNames.h',
   1.108 +        'compiler/MMap.h',
   1.109 +        'compiler/osinclude.h',
   1.110 +        'compiler/parseConst.cpp',
   1.111 +        'compiler/ParseHelper.cpp',
   1.112 +        'compiler/ParseHelper.h',
   1.113 +        'compiler/PoolAlloc.cpp',
   1.114 +        'compiler/PoolAlloc.h',
   1.115 +        'compiler/QualifierAlive.cpp',
   1.116 +        'compiler/QualifierAlive.h',
   1.117 +        'compiler/RemoveTree.cpp',
   1.118 +        'compiler/RemoveTree.h',
   1.119 +        'compiler/RenameFunction.h',
   1.120 +        'compiler/ShHandle.h',
   1.121 +        'compiler/SymbolTable.cpp',
   1.122 +        'compiler/SymbolTable.h',
   1.123 +        'compiler/Types.h',
   1.124 +        'compiler/Uniform.cpp',
   1.125 +        'compiler/Uniform.h',
   1.126 +        'compiler/util.cpp',
   1.127 +        'compiler/util.h',
   1.128 +        'compiler/ValidateLimitations.cpp',
   1.129 +        'compiler/ValidateLimitations.h',
   1.130 +        'compiler/VariableInfo.cpp',
   1.131 +        'compiler/VariableInfo.h',
   1.132 +        'compiler/VariablePacker.cpp',
   1.133 +        'compiler/VariablePacker.h',
   1.134 +        # Dependency graph
   1.135 +        'compiler/depgraph/DependencyGraph.cpp',
   1.136 +        'compiler/depgraph/DependencyGraph.h',
   1.137 +        'compiler/depgraph/DependencyGraphBuilder.cpp',
   1.138 +        'compiler/depgraph/DependencyGraphBuilder.h',
   1.139 +        'compiler/depgraph/DependencyGraphOutput.cpp',
   1.140 +        'compiler/depgraph/DependencyGraphOutput.h',
   1.141 +        'compiler/depgraph/DependencyGraphTraverse.cpp',
   1.142 +        # Timing restrictions
   1.143 +        'compiler/timing/RestrictFragmentShaderTiming.cpp',
   1.144 +        'compiler/timing/RestrictFragmentShaderTiming.h',
   1.145 +        'compiler/timing/RestrictVertexShaderTiming.cpp',
   1.146 +        'compiler/timing/RestrictVertexShaderTiming.h',
   1.147 +        'third_party/compiler/ArrayBoundsClamper.cpp',
   1.148 +        'third_party/compiler/ArrayBoundsClamper.h',
   1.149 +      ],
   1.150 +      'conditions': [
   1.151 +        ['OS=="win"', {
   1.152 +          # TODO(jschuh): http://crbug.com/167187 size_t -> int
   1.153 +          'msvs_disabled_warnings': [ 4267 ],
   1.154 +          'sources': ['compiler/ossource_win.cpp'],
   1.155 +        }, { # else: posix
   1.156 +          'sources': ['compiler/ossource_posix.cpp'],
   1.157 +        }],
   1.158 +      ],
   1.159 +    },
   1.160 +    {
   1.161 +      'target_name': 'translator_glsl',
   1.162 +      'type': '<(component)',
   1.163 +      'dependencies': ['translator_common'],
   1.164 +      'include_dirs': [
   1.165 +        '.',
   1.166 +        '../include',
   1.167 +      ],
   1.168 +      'defines': [
   1.169 +        'COMPILER_IMPLEMENTATION',
   1.170 +      ],
   1.171 +      'sources': [
   1.172 +        'compiler/CodeGenGLSL.cpp',
   1.173 +        'compiler/OutputESSL.cpp',
   1.174 +        'compiler/OutputESSL.h',        
   1.175 +        'compiler/OutputGLSLBase.cpp',
   1.176 +        'compiler/OutputGLSLBase.h',
   1.177 +        'compiler/OutputGLSL.cpp',
   1.178 +        'compiler/OutputGLSL.h',
   1.179 +        'compiler/ShaderLang.cpp',
   1.180 +        'compiler/TranslatorESSL.cpp',
   1.181 +        'compiler/TranslatorESSL.h',
   1.182 +        'compiler/TranslatorGLSL.cpp',
   1.183 +        'compiler/TranslatorGLSL.h',
   1.184 +        'compiler/VersionGLSL.cpp',
   1.185 +        'compiler/VersionGLSL.h',
   1.186 +      ],
   1.187 +      # TODO(jschuh): http://crbug.com/167187 size_t -> int
   1.188 +      'msvs_disabled_warnings': [ 4267 ],
   1.189 +    },
   1.190 +  ],
   1.191 +  'conditions': [
   1.192 +    ['OS=="win"', {
   1.193 +      'targets': [
   1.194 +        {
   1.195 +          'target_name': 'translator_hlsl',
   1.196 +          'type': '<(component)',
   1.197 +          'dependencies': ['translator_common'],
   1.198 +          'include_dirs': [
   1.199 +            '.',
   1.200 +            '../include',
   1.201 +          ],
   1.202 +          'defines': [
   1.203 +            'COMPILER_IMPLEMENTATION',
   1.204 +          ],
   1.205 +          'sources': [
   1.206 +            'compiler/ShaderLang.cpp',
   1.207 +            'compiler/DetectDiscontinuity.cpp',
   1.208 +            'compiler/DetectDiscontinuity.h',
   1.209 +            'compiler/CodeGenHLSL.cpp',
   1.210 +            'compiler/OutputHLSL.cpp',
   1.211 +            'compiler/OutputHLSL.h',
   1.212 +            'compiler/TranslatorHLSL.cpp',
   1.213 +            'compiler/TranslatorHLSL.h',
   1.214 +            'compiler/UnfoldShortCircuit.cpp',
   1.215 +            'compiler/UnfoldShortCircuit.h',
   1.216 +            'compiler/SearchSymbol.cpp',
   1.217 +            'compiler/SearchSymbol.h',
   1.218 +          ],
   1.219 +          # TODO(jschuh): http://crbug.com/167187 size_t -> int
   1.220 +          'msvs_disabled_warnings': [ 4267 ],
   1.221 +        },
   1.222 +        {
   1.223 +          'target_name': 'libGLESv2',
   1.224 +          'type': 'shared_library',
   1.225 +          'dependencies': ['translator_hlsl'],
   1.226 +          'include_dirs': [
   1.227 +            '.',
   1.228 +            '../include',
   1.229 +            'libGLESv2',
   1.230 +          ],
   1.231 +          'sources': [
   1.232 +            'third_party/murmurhash/MurmurHash3.h',
   1.233 +            'third_party/murmurhash/MurmurHash3.cpp',
   1.234 +            'common/angleutils.h',
   1.235 +            'common/debug.cpp',
   1.236 +            'common/debug.h',
   1.237 +            'common/RefCountObject.cpp',
   1.238 +            'common/RefCountObject.h',
   1.239 +            'common/version.h',
   1.240 +            'libGLESv2/precompiled.h',
   1.241 +            'libGLESv2/precompiled.cpp',
   1.242 +            'libGLESv2/BinaryStream.h',
   1.243 +            'libGLESv2/Buffer.cpp',
   1.244 +            'libGLESv2/Buffer.h',
   1.245 +            'libGLESv2/constants.h',
   1.246 +            'libGLESv2/Context.cpp',
   1.247 +            'libGLESv2/Context.h',
   1.248 +            'libGLESv2/angletypes.h',
   1.249 +            'libGLESv2/Fence.cpp',
   1.250 +            'libGLESv2/Fence.h',
   1.251 +            'libGLESv2/Float16ToFloat32.cpp',
   1.252 +            'libGLESv2/Framebuffer.cpp',
   1.253 +            'libGLESv2/Framebuffer.h',
   1.254 +            'libGLESv2/HandleAllocator.cpp',
   1.255 +            'libGLESv2/HandleAllocator.h',
   1.256 +            'libGLESv2/libGLESv2.cpp',
   1.257 +            'libGLESv2/libGLESv2.def',
   1.258 +            'libGLESv2/libGLESv2.rc',
   1.259 +            'libGLESv2/main.cpp',
   1.260 +            'libGLESv2/main.h',
   1.261 +            'libGLESv2/mathutil.h',
   1.262 +            'libGLESv2/Program.cpp',
   1.263 +            'libGLESv2/Program.h',
   1.264 +            'libGLESv2/ProgramBinary.cpp',
   1.265 +            'libGLESv2/ProgramBinary.h',
   1.266 +            'libGLESv2/Query.h',
   1.267 +            'libGLESv2/Query.cpp',
   1.268 +            'libGLESv2/Renderbuffer.cpp',
   1.269 +            'libGLESv2/Renderbuffer.h',
   1.270 +            'libGLESv2/renderer/Blit.cpp',
   1.271 +            'libGLESv2/renderer/Blit.h',
   1.272 +            'libGLESv2/renderer/BufferStorage.h',
   1.273 +            'libGLESv2/renderer/BufferStorage.cpp',
   1.274 +            'libGLESv2/renderer/BufferStorage9.cpp',
   1.275 +            'libGLESv2/renderer/BufferStorage9.h',
   1.276 +            'libGLESv2/renderer/BufferStorage11.cpp',
   1.277 +            'libGLESv2/renderer/BufferStorage11.h',
   1.278 +            'libGLESv2/renderer/FenceImpl.h',
   1.279 +            'libGLESv2/renderer/Fence9.cpp',
   1.280 +            'libGLESv2/renderer/Fence9.h',
   1.281 +            'libGLESv2/renderer/Fence11.cpp',
   1.282 +            'libGLESv2/renderer/Fence11.h',
   1.283 +            'libGLESv2/renderer/generatemip.h',
   1.284 +            'libGLESv2/renderer/Image.cpp',
   1.285 +            'libGLESv2/renderer/Image.h',
   1.286 +            'libGLESv2/renderer/Image11.cpp',
   1.287 +            'libGLESv2/renderer/Image11.h',
   1.288 +            'libGLESv2/renderer/Image9.cpp',
   1.289 +            'libGLESv2/renderer/Image9.h',
   1.290 +            'libGLESv2/renderer/ImageSSE2.cpp',
   1.291 +            'libGLESv2/renderer/IndexBuffer.cpp',
   1.292 +            'libGLESv2/renderer/IndexBuffer.h',
   1.293 +            'libGLESv2/renderer/IndexBuffer9.cpp',
   1.294 +            'libGLESv2/renderer/IndexBuffer9.h',
   1.295 +            'libGLESv2/renderer/IndexBuffer11.cpp',
   1.296 +            'libGLESv2/renderer/IndexBuffer11.h',
   1.297 +            'libGLESv2/renderer/IndexDataManager.cpp',
   1.298 +            'libGLESv2/renderer/IndexDataManager.h',
   1.299 +            'libGLESv2/renderer/IndexRangeCache.cpp',
   1.300 +            'libGLESv2/renderer/IndexRangeCache.h',
   1.301 +            'libGLESv2/renderer/InputLayoutCache.cpp',
   1.302 +            'libGLESv2/renderer/InputLayoutCache.h',
   1.303 +            'libGLESv2/renderer/QueryImpl.h',
   1.304 +            'libGLESv2/renderer/Query9.cpp',
   1.305 +            'libGLESv2/renderer/Query9.h',
   1.306 +            'libGLESv2/renderer/Query11.cpp',
   1.307 +            'libGLESv2/renderer/Query11.h',
   1.308 +            'libGLESv2/renderer/Renderer.cpp',
   1.309 +            'libGLESv2/renderer/Renderer.h',
   1.310 +            'libGLESv2/renderer/Renderer11.cpp',
   1.311 +            'libGLESv2/renderer/Renderer11.h',
   1.312 +            'libGLESv2/renderer/renderer11_utils.cpp',
   1.313 +            'libGLESv2/renderer/renderer11_utils.h',
   1.314 +            'libGLESv2/renderer/Renderer9.cpp',
   1.315 +            'libGLESv2/renderer/Renderer9.h',
   1.316 +            'libGLESv2/renderer/renderer9_utils.cpp',
   1.317 +            'libGLESv2/renderer/renderer9_utils.h',
   1.318 +            'libGLESv2/renderer/RenderStateCache.cpp',
   1.319 +            'libGLESv2/renderer/RenderStateCache.h',
   1.320 +            'libGLESv2/renderer/RenderTarget.h',
   1.321 +            'libGLESv2/renderer/RenderTarget11.h',
   1.322 +            'libGLESv2/renderer/RenderTarget11.cpp',
   1.323 +            'libGLESv2/renderer/RenderTarget9.h',
   1.324 +            'libGLESv2/renderer/RenderTarget9.cpp',
   1.325 +            'libGLESv2/renderer/ShaderCache.h',
   1.326 +            'libGLESv2/renderer/ShaderExecutable.h',
   1.327 +            'libGLESv2/renderer/ShaderExecutable9.cpp',
   1.328 +            'libGLESv2/renderer/ShaderExecutable9.h',
   1.329 +            'libGLESv2/renderer/ShaderExecutable11.cpp',
   1.330 +            'libGLESv2/renderer/ShaderExecutable11.h',
   1.331 +            'libGLESv2/renderer/SwapChain.h',
   1.332 +            'libGLESv2/renderer/SwapChain9.cpp',
   1.333 +            'libGLESv2/renderer/SwapChain9.h',
   1.334 +            'libGLESv2/renderer/SwapChain11.cpp',
   1.335 +            'libGLESv2/renderer/SwapChain11.h',
   1.336 +            'libGLESv2/renderer/TextureStorage.cpp',
   1.337 +            'libGLESv2/renderer/TextureStorage.h',
   1.338 +            'libGLESv2/renderer/TextureStorage11.cpp',
   1.339 +            'libGLESv2/renderer/TextureStorage11.h',
   1.340 +            'libGLESv2/renderer/TextureStorage9.cpp',
   1.341 +            'libGLESv2/renderer/TextureStorage9.h',
   1.342 +            'libGLESv2/renderer/VertexBuffer.cpp',
   1.343 +            'libGLESv2/renderer/VertexBuffer.h',
   1.344 +            'libGLESv2/renderer/VertexBuffer9.cpp',
   1.345 +            'libGLESv2/renderer/VertexBuffer9.h',
   1.346 +            'libGLESv2/renderer/VertexBuffer11.cpp',
   1.347 +            'libGLESv2/renderer/VertexBuffer11.h',
   1.348 +            'libGLESv2/renderer/vertexconversion.h',
   1.349 +            'libGLESv2/renderer/VertexDataManager.cpp',
   1.350 +            'libGLESv2/renderer/VertexDataManager.h',
   1.351 +            'libGLESv2/renderer/VertexDeclarationCache.cpp',
   1.352 +            'libGLESv2/renderer/VertexDeclarationCache.h',
   1.353 +            'libGLESv2/ResourceManager.cpp',
   1.354 +            'libGLESv2/ResourceManager.h',
   1.355 +            'libGLESv2/Shader.cpp',
   1.356 +            'libGLESv2/Shader.h',
   1.357 +            'libGLESv2/Texture.cpp',
   1.358 +            'libGLESv2/Texture.h',
   1.359 +            'libGLESv2/Uniform.cpp',
   1.360 +            'libGLESv2/Uniform.h',
   1.361 +            'libGLESv2/utilities.cpp',
   1.362 +            'libGLESv2/utilities.h',
   1.363 +          ],
   1.364 +          # TODO(jschuh): http://crbug.com/167187 size_t -> int
   1.365 +          'msvs_disabled_warnings': [ 4267 ],
   1.366 +          'msvs_settings': {
   1.367 +            'VCLinkerTool': {
   1.368 +              'AdditionalDependencies': [
   1.369 +                'd3d9.lib',
   1.370 +                'dxguid.lib',
   1.371 +              ],
   1.372 +            }
   1.373 +          },
   1.374 +        },
   1.375 +        {
   1.376 +          'target_name': 'libEGL',
   1.377 +          'type': 'shared_library',
   1.378 +          'dependencies': ['libGLESv2'],
   1.379 +          'include_dirs': [
   1.380 +            '.',
   1.381 +            '../include',
   1.382 +            'libGLESv2',
   1.383 +          ],
   1.384 +          'sources': [
   1.385 +            'common/angleutils.h',
   1.386 +            'common/debug.cpp',
   1.387 +            'common/debug.h',
   1.388 +            'common/RefCountObject.cpp',
   1.389 +            'common/RefCountObject.h',
   1.390 +            'common/version.h',
   1.391 +            'libEGL/Config.cpp',
   1.392 +            'libEGL/Config.h',
   1.393 +            'libEGL/Display.cpp',
   1.394 +            'libEGL/Display.h',
   1.395 +            'libEGL/libEGL.cpp',
   1.396 +            'libEGL/libEGL.def',
   1.397 +            'libEGL/libEGL.rc',
   1.398 +            'libEGL/main.cpp',
   1.399 +            'libEGL/main.h',
   1.400 +            'libEGL/Surface.cpp',
   1.401 +            'libEGL/Surface.h',
   1.402 +          ],
   1.403 +          # TODO(jschuh): http://crbug.com/167187 size_t -> int
   1.404 +          'msvs_disabled_warnings': [ 4267 ],
   1.405 +          'msvs_settings': {
   1.406 +            'VCLinkerTool': {
   1.407 +              'AdditionalDependencies': [
   1.408 +                'd3d9.lib',
   1.409 +              ],
   1.410 +            }
   1.411 +          },
   1.412 +        },
   1.413 +      ],
   1.414 +    }],
   1.415 +  ],
   1.416 +}
   1.417 +
   1.418 +# Local Variables:
   1.419 +# tab-width:2
   1.420 +# indent-tabs-mode:nil
   1.421 +# End:
   1.422 +# vim: set expandtab tabstop=2 shiftwidth=2:
   1.423 +# Copyright (c) 2012 The ANGLE Project Authors. All rights reserved.
   1.424 +# Use of this source code is governed by a BSD-style license that can be
   1.425 +# found in the LICENSE file.

mercurial