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