Home | History | Annotate | Download | only in src
      1 # Copyright (c) 2013 The ANGLE Project Authors. All rights reserved.
      2 # Use of this source code is governed by a BSD-style license that can be
      3 # found in the LICENSE file.
      4 
      5 {
      6     'variables':
      7     {
      8         # This file list is shared with the GN build.
      9         'angle_translator_lib_sources':
     10         [
     11             '../include/EGL/egl.h',
     12             '../include/EGL/eglext.h',
     13             '../include/EGL/eglplatform.h',
     14             '../include/GLES2/gl2.h',
     15             '../include/GLES2/gl2ext.h',
     16             '../include/GLES2/gl2platform.h',
     17             '../include/GLES3/gl3.h',
     18             '../include/GLES3/gl3ext.h',
     19             '../include/GLES3/gl3platform.h',
     20             '../include/GLSLANG/ShaderLang.h',
     21             '../include/GLSLANG/ShaderVars.h',
     22             '../include/KHR/khrplatform.h',
     23             '../include/angle_gl.h',
     24             'common/RefCountObject.cpp',
     25             'common/RefCountObject.h',
     26             'common/angleutils.h',
     27             'common/blocklayout.cpp',
     28             'common/blocklayout.h',
     29             'common/debug.cpp',
     30             'common/debug.h',
     31             'common/event_tracer.cpp',
     32             'common/event_tracer.h',
     33             'common/mathutil.cpp',
     34             'common/mathutil.h',
     35             'common/platform.h',
     36             'common/tls.cpp',
     37             'common/tls.h',
     38             'common/utilities.cpp',
     39             'common/utilities.h',
     40             'common/version.h',
     41             'compiler/translator/BaseTypes.h',
     42             'compiler/translator/BuiltInFunctionEmulator.cpp',
     43             'compiler/translator/BuiltInFunctionEmulator.h',
     44             'compiler/translator/CodeGen.cpp',
     45             'compiler/translator/Common.h',
     46             'compiler/translator/Compiler.cpp',
     47             'compiler/translator/Compiler.h',
     48             'compiler/translator/ConstantUnion.h',
     49             'compiler/translator/DetectCallDepth.cpp',
     50             'compiler/translator/DetectCallDepth.h',
     51             'compiler/translator/DetectDiscontinuity.cpp',
     52             'compiler/translator/DetectDiscontinuity.h',
     53             'compiler/translator/Diagnostics.cpp',
     54             'compiler/translator/Diagnostics.h',
     55             'compiler/translator/DirectiveHandler.cpp',
     56             'compiler/translator/DirectiveHandler.h',
     57             'compiler/translator/ExtensionBehavior.h',
     58             'compiler/translator/FlagStd140Structs.cpp',
     59             'compiler/translator/FlagStd140Structs.h',
     60             'compiler/translator/ForLoopUnroll.cpp',
     61             'compiler/translator/ForLoopUnroll.h',
     62             'compiler/translator/HashNames.h',
     63             'compiler/translator/InfoSink.cpp',
     64             'compiler/translator/InfoSink.h',
     65             'compiler/translator/Initialize.cpp',
     66             'compiler/translator/Initialize.h',
     67             'compiler/translator/InitializeDll.cpp',
     68             'compiler/translator/InitializeDll.h',
     69             'compiler/translator/InitializeGlobals.h',
     70             'compiler/translator/InitializeParseContext.cpp',
     71             'compiler/translator/InitializeParseContext.h',
     72             'compiler/translator/InitializeVariables.cpp',
     73             'compiler/translator/InitializeVariables.h',
     74             'compiler/translator/IntermTraverse.cpp',
     75             'compiler/translator/Intermediate.h',
     76             'compiler/translator/Intermediate.cpp',
     77             'compiler/translator/IntermNode.h',
     78             'compiler/translator/IntermNode.cpp',
     79             'compiler/translator/LoopInfo.cpp',
     80             'compiler/translator/LoopInfo.h',
     81             'compiler/translator/MMap.h',
     82             'compiler/translator/NodeSearch.h',
     83             'compiler/translator/OutputESSL.cpp',
     84             'compiler/translator/OutputESSL.h',
     85             'compiler/translator/OutputGLSL.cpp',
     86             'compiler/translator/OutputGLSL.h',
     87             'compiler/translator/OutputGLSLBase.cpp',
     88             'compiler/translator/OutputGLSLBase.h',
     89             'compiler/translator/OutputHLSL.cpp',
     90             'compiler/translator/OutputHLSL.h',
     91             'compiler/translator/ParseContext.cpp',
     92             'compiler/translator/ParseContext.h',
     93             'compiler/translator/PoolAlloc.cpp',
     94             'compiler/translator/PoolAlloc.h',
     95             'compiler/translator/Pragma.h',
     96             'compiler/translator/QualifierAlive.cpp',
     97             'compiler/translator/QualifierAlive.h',
     98             'compiler/translator/RegenerateStructNames.cpp',
     99             'compiler/translator/RegenerateStructNames.h',
    100             'compiler/translator/RemoveTree.cpp',
    101             'compiler/translator/RemoveTree.h',
    102             'compiler/translator/RenameFunction.h',
    103             'compiler/translator/RewriteElseBlocks.cpp',
    104             'compiler/translator/RewriteElseBlocks.h',
    105             'compiler/translator/ScalarizeVecAndMatConstructorArgs.cpp',
    106             'compiler/translator/ScalarizeVecAndMatConstructorArgs.h',
    107             'compiler/translator/SearchSymbol.cpp',
    108             'compiler/translator/SearchSymbol.h',
    109             'compiler/translator/StructureHLSL.cpp',
    110             'compiler/translator/StructureHLSL.h',
    111             'compiler/translator/SymbolTable.cpp',
    112             'compiler/translator/SymbolTable.h',
    113             'compiler/translator/TranslatorESSL.cpp',
    114             'compiler/translator/TranslatorESSL.h',
    115             'compiler/translator/TranslatorGLSL.cpp',
    116             'compiler/translator/TranslatorGLSL.h',
    117             'compiler/translator/TranslatorHLSL.cpp',
    118             'compiler/translator/TranslatorHLSL.h',
    119             'compiler/translator/Types.cpp',
    120             'compiler/translator/Types.h',
    121             'compiler/translator/UnfoldShortCircuit.cpp',
    122             'compiler/translator/UnfoldShortCircuit.h',
    123             'compiler/translator/UnfoldShortCircuitAST.cpp',
    124             'compiler/translator/UnfoldShortCircuitAST.h',
    125             'compiler/translator/UniformHLSL.cpp',
    126             'compiler/translator/UniformHLSL.h',
    127             'compiler/translator/UtilsHLSL.cpp',
    128             'compiler/translator/UtilsHLSL.h',
    129             'compiler/translator/ValidateLimitations.cpp',
    130             'compiler/translator/ValidateLimitations.h',
    131             'compiler/translator/ValidateOutputs.cpp',
    132             'compiler/translator/ValidateOutputs.h',
    133             'compiler/translator/VariableInfo.cpp',
    134             'compiler/translator/VariableInfo.h',
    135             'compiler/translator/VariablePacker.cpp',
    136             'compiler/translator/VariablePacker.h',
    137             'compiler/translator/VersionGLSL.cpp',
    138             'compiler/translator/VersionGLSL.h',
    139             'compiler/translator/compilerdebug.cpp',
    140             'compiler/translator/compilerdebug.h',
    141             'compiler/translator/depgraph/DependencyGraph.cpp',
    142             'compiler/translator/depgraph/DependencyGraph.h',
    143             'compiler/translator/depgraph/DependencyGraphBuilder.cpp',
    144             'compiler/translator/depgraph/DependencyGraphBuilder.h',
    145             'compiler/translator/depgraph/DependencyGraphOutput.cpp',
    146             'compiler/translator/depgraph/DependencyGraphOutput.h',
    147             'compiler/translator/depgraph/DependencyGraphTraverse.cpp',
    148             'compiler/translator/glslang.h',
    149             'compiler/translator/glslang.l',
    150             'compiler/translator/glslang.y',
    151             'compiler/translator/glslang_lex.cpp',
    152             'compiler/translator/glslang_tab.cpp',
    153             'compiler/translator/glslang_tab.h',
    154             'compiler/translator/intermOut.cpp',
    155             'compiler/translator/intermediate.h',
    156             'compiler/translator/length_limits.h',
    157             'compiler/translator/parseConst.cpp',
    158             'compiler/translator/timing/RestrictFragmentShaderTiming.cpp',
    159             'compiler/translator/timing/RestrictFragmentShaderTiming.h',
    160             'compiler/translator/timing/RestrictVertexShaderTiming.cpp',
    161             'compiler/translator/timing/RestrictVertexShaderTiming.h',
    162             'compiler/translator/util.cpp',
    163             'compiler/translator/util.h',
    164             'third_party/compiler/ArrayBoundsClamper.cpp',
    165             'third_party/compiler/ArrayBoundsClamper.h',
    166         ],
    167         'angle_preprocessor_sources':
    168         [
    169             'compiler/preprocessor/DiagnosticsBase.cpp',
    170             'compiler/preprocessor/DiagnosticsBase.h',
    171             'compiler/preprocessor/DirectiveHandlerBase.cpp',
    172             'compiler/preprocessor/DirectiveHandlerBase.h',
    173             'compiler/preprocessor/DirectiveParser.cpp',
    174             'compiler/preprocessor/DirectiveParser.h',
    175             'compiler/preprocessor/ExpressionParser.cpp',
    176             'compiler/preprocessor/ExpressionParser.h',
    177             'compiler/preprocessor/ExpressionParser.y',
    178             'compiler/preprocessor/Input.cpp',
    179             'compiler/preprocessor/Input.h',
    180             'compiler/preprocessor/Lexer.cpp',
    181             'compiler/preprocessor/Lexer.h',
    182             'compiler/preprocessor/Macro.cpp',
    183             'compiler/preprocessor/Macro.h',
    184             'compiler/preprocessor/MacroExpander.cpp',
    185             'compiler/preprocessor/MacroExpander.h',
    186             'compiler/preprocessor/Preprocessor.cpp',
    187             'compiler/preprocessor/Preprocessor.h',
    188             'compiler/preprocessor/SourceLocation.h',
    189             'compiler/preprocessor/Token.cpp',
    190             'compiler/preprocessor/Token.h',
    191             'compiler/preprocessor/Tokenizer.cpp',
    192             'compiler/preprocessor/Tokenizer.h',
    193             'compiler/preprocessor/Tokenizer.l',
    194             'compiler/preprocessor/numeric_lex.h',
    195             'compiler/preprocessor/pp_utils.h',
    196         ],
    197     },
    198     # Everything below this is duplicated in the GN build. If you change
    199     # anything also change angle/BUILD.gn
    200     'targets':
    201     [
    202         {
    203             'target_name': 'preprocessor',
    204             'type': 'static_library',
    205             'includes': [ '../build/common_defines.gypi', ],
    206             'sources': [ '<@(angle_preprocessor_sources)', ],
    207         },
    208         {
    209             'target_name': 'translator_lib',
    210             'type': 'static_library',
    211             'dependencies': [ 'preprocessor' ],
    212             'includes': [ '../build/common_defines.gypi', ],
    213             'include_dirs':
    214             [
    215                 '.',
    216                 '../include',
    217             ],
    218             'defines':
    219             [
    220                 # define the static translator to indicate exported
    221                 # classes are (in fact) locally defined
    222                 'ANGLE_TRANSLATOR_STATIC',
    223             ],
    224             'sources':
    225             [
    226                 '<@(angle_translator_lib_sources)',
    227             ],
    228             'msvs_settings':
    229             {
    230               'VCLibrarianTool':
    231               {
    232                 'AdditionalOptions': ['/ignore:4221']
    233               },
    234             },
    235         },
    236 
    237         {
    238             'target_name': 'translator',
    239             'type': '<(component)',
    240             'dependencies': [ 'translator_lib' ],
    241             'includes': [ '../build/common_defines.gypi', ],
    242             'include_dirs':
    243             [
    244                 '.',
    245                 '../include',
    246             ],
    247             'defines':
    248             [
    249                 'ANGLE_TRANSLATOR_IMPLEMENTATION',
    250             ],
    251             'sources':
    252             [
    253                 'compiler/translator/ShaderLang.cpp',
    254                 'compiler/translator/ShaderVars.cpp'
    255             ],
    256         },
    257 
    258         {
    259             'target_name': 'translator_static',
    260             'type': 'static_library',
    261             'dependencies': [ 'translator_lib' ],
    262             'includes': [ '../build/common_defines.gypi', ],
    263             'include_dirs':
    264             [
    265                 '.',
    266                 '../include',
    267             ],
    268             'defines':
    269             [
    270                 'ANGLE_TRANSLATOR_STATIC',
    271             ],
    272             'direct_dependent_settings':
    273             {
    274                 'defines':
    275                 [
    276                     'ANGLE_TRANSLATOR_STATIC',
    277                 ],
    278             },
    279             'sources':
    280             [
    281                 'compiler/translator/ShaderLang.cpp',
    282                 'compiler/translator/ShaderVars.cpp'
    283             ],
    284         },
    285     ],
    286 }
    287