Geoff Lang | 1773282 | 2013-08-29 13:46:49 -0400 | [diff] [blame] | 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 | { |
Brett Wilson | 04bac60 | 2014-07-16 14:19:18 -0700 | [diff] [blame] | 6 | 'variables': |
| 7 | { |
Daniel Bratell | 73941de | 2015-02-25 14:34:49 +0100 | [diff] [blame] | 8 | # These file lists are shared with the GN build. |
Brett Wilson | 04bac60 | 2014-07-16 14:19:18 -0700 | [diff] [blame] | 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', |
Brett Wilson | 04bac60 | 2014-07-16 14:19:18 -0700 | [diff] [blame] | 18 | '../include/GLES3/gl3platform.h', |
Geoff Lang | ee48376 | 2015-09-15 13:12:07 -0400 | [diff] [blame] | 19 | '../include/GLES3/gl31.h', |
| 20 | '../include/GLES3/gl32.h', |
Brett Wilson | 04bac60 | 2014-07-16 14:19:18 -0700 | [diff] [blame] | 21 | '../include/GLSLANG/ShaderLang.h', |
Jamie Madill | 13cfd27 | 2014-07-17 14:16:28 -0400 | [diff] [blame] | 22 | '../include/GLSLANG/ShaderVars.h', |
Brett Wilson | 04bac60 | 2014-07-16 14:19:18 -0700 | [diff] [blame] | 23 | '../include/KHR/khrplatform.h', |
| 24 | '../include/angle_gl.h', |
Brett Wilson | 04bac60 | 2014-07-16 14:19:18 -0700 | [diff] [blame] | 25 | 'compiler/translator/BaseTypes.h', |
| 26 | 'compiler/translator/BuiltInFunctionEmulator.cpp', |
| 27 | 'compiler/translator/BuiltInFunctionEmulator.h', |
Dmitry Skiba | 0197111 | 2015-07-10 14:54:00 -0400 | [diff] [blame] | 28 | 'compiler/translator/Cache.cpp', |
| 29 | 'compiler/translator/Cache.h', |
Corentin Wallez | 71d147f | 2015-02-11 11:15:24 -0800 | [diff] [blame] | 30 | 'compiler/translator/CallDAG.cpp', |
| 31 | 'compiler/translator/CallDAG.h', |
Brett Wilson | 04bac60 | 2014-07-16 14:19:18 -0700 | [diff] [blame] | 32 | 'compiler/translator/CodeGen.cpp', |
| 33 | 'compiler/translator/Common.h', |
| 34 | 'compiler/translator/Compiler.cpp', |
| 35 | 'compiler/translator/Compiler.h', |
| 36 | 'compiler/translator/ConstantUnion.h', |
Olli Etuaho | 3d932d8 | 2016-04-12 11:10:30 +0300 | [diff] [blame] | 37 | 'compiler/translator/DeferGlobalInitializers.cpp', |
| 38 | 'compiler/translator/DeferGlobalInitializers.h', |
Brett Wilson | 04bac60 | 2014-07-16 14:19:18 -0700 | [diff] [blame] | 39 | 'compiler/translator/Diagnostics.cpp', |
| 40 | 'compiler/translator/Diagnostics.h', |
| 41 | 'compiler/translator/DirectiveHandler.cpp', |
| 42 | 'compiler/translator/DirectiveHandler.h', |
Olli Etuaho | 853dc1a | 2014-11-06 17:25:48 +0200 | [diff] [blame] | 43 | 'compiler/translator/EmulatePrecision.cpp', |
| 44 | 'compiler/translator/EmulatePrecision.h', |
Brett Wilson | 04bac60 | 2014-07-16 14:19:18 -0700 | [diff] [blame] | 45 | 'compiler/translator/ExtensionBehavior.h', |
| 46 | 'compiler/translator/FlagStd140Structs.cpp', |
| 47 | 'compiler/translator/FlagStd140Structs.h', |
| 48 | 'compiler/translator/ForLoopUnroll.cpp', |
| 49 | 'compiler/translator/ForLoopUnroll.h', |
| 50 | 'compiler/translator/HashNames.h', |
| 51 | 'compiler/translator/InfoSink.cpp', |
| 52 | 'compiler/translator/InfoSink.h', |
| 53 | 'compiler/translator/Initialize.cpp', |
| 54 | 'compiler/translator/Initialize.h', |
| 55 | 'compiler/translator/InitializeDll.cpp', |
| 56 | 'compiler/translator/InitializeDll.h', |
| 57 | 'compiler/translator/InitializeGlobals.h', |
| 58 | 'compiler/translator/InitializeParseContext.cpp', |
| 59 | 'compiler/translator/InitializeParseContext.h', |
| 60 | 'compiler/translator/InitializeVariables.cpp', |
| 61 | 'compiler/translator/InitializeVariables.h', |
Daniel Bratell | 73941de | 2015-02-25 14:34:49 +0100 | [diff] [blame] | 62 | 'compiler/translator/IntermNode.h', |
| 63 | 'compiler/translator/IntermNode.cpp', |
Brett Wilson | 04bac60 | 2014-07-16 14:19:18 -0700 | [diff] [blame] | 64 | 'compiler/translator/IntermTraverse.cpp', |
Jamie Madill | b1a85f4 | 2014-08-19 15:23:24 -0400 | [diff] [blame] | 65 | 'compiler/translator/Intermediate.h', |
Brett Wilson | 04bac60 | 2014-07-16 14:19:18 -0700 | [diff] [blame] | 66 | 'compiler/translator/Intermediate.cpp', |
| 67 | 'compiler/translator/LoopInfo.cpp', |
| 68 | 'compiler/translator/LoopInfo.h', |
| 69 | 'compiler/translator/MMap.h', |
| 70 | 'compiler/translator/NodeSearch.h', |
Olli Etuaho | 1033e1d | 2015-02-12 12:03:13 +0200 | [diff] [blame] | 71 | 'compiler/translator/Operator.cpp', |
| 72 | 'compiler/translator/Operator.h', |
Brett Wilson | 04bac60 | 2014-07-16 14:19:18 -0700 | [diff] [blame] | 73 | 'compiler/translator/ParseContext.cpp', |
| 74 | 'compiler/translator/ParseContext.h', |
| 75 | 'compiler/translator/PoolAlloc.cpp', |
| 76 | 'compiler/translator/PoolAlloc.h', |
| 77 | 'compiler/translator/Pragma.h', |
Olli Etuaho | c683311 | 2015-04-22 15:15:54 +0300 | [diff] [blame] | 78 | 'compiler/translator/PruneEmptyDeclarations.cpp', |
| 79 | 'compiler/translator/PruneEmptyDeclarations.h', |
Olli Etuaho | a4aa4e3 | 2015-06-04 15:54:30 +0300 | [diff] [blame] | 80 | 'compiler/translator/RecordConstantPrecision.cpp', |
| 81 | 'compiler/translator/RecordConstantPrecision.h', |
Zhenyao Mo | e740add | 2014-07-18 17:01:01 -0700 | [diff] [blame] | 82 | 'compiler/translator/RegenerateStructNames.cpp', |
| 83 | 'compiler/translator/RegenerateStructNames.h', |
Olli Etuaho | 5c407bb | 2015-06-01 12:20:39 +0300 | [diff] [blame] | 84 | 'compiler/translator/RemovePow.cpp', |
| 85 | 'compiler/translator/RemovePow.h', |
Corentin Wallez | d4b5054 | 2015-09-28 12:19:26 -0700 | [diff] [blame] | 86 | 'compiler/translator/RewriteDoWhile.cpp', |
| 87 | 'compiler/translator/RewriteDoWhile.h', |
Brett Wilson | 04bac60 | 2014-07-16 14:19:18 -0700 | [diff] [blame] | 88 | 'compiler/translator/RenameFunction.h', |
Brett Wilson | 04bac60 | 2014-07-16 14:19:18 -0700 | [diff] [blame] | 89 | 'compiler/translator/ScalarizeVecAndMatConstructorArgs.cpp', |
| 90 | 'compiler/translator/ScalarizeVecAndMatConstructorArgs.h', |
| 91 | 'compiler/translator/SearchSymbol.cpp', |
| 92 | 'compiler/translator/SearchSymbol.h', |
Brett Wilson | 04bac60 | 2014-07-16 14:19:18 -0700 | [diff] [blame] | 93 | 'compiler/translator/SymbolTable.cpp', |
| 94 | 'compiler/translator/SymbolTable.h', |
Brett Wilson | 04bac60 | 2014-07-16 14:19:18 -0700 | [diff] [blame] | 95 | 'compiler/translator/Types.cpp', |
| 96 | 'compiler/translator/Types.h', |
Brett Wilson | 04bac60 | 2014-07-16 14:19:18 -0700 | [diff] [blame] | 97 | 'compiler/translator/UnfoldShortCircuitAST.cpp', |
| 98 | 'compiler/translator/UnfoldShortCircuitAST.h', |
Olli Etuaho | b0c645e | 2015-05-12 14:25:36 +0300 | [diff] [blame] | 99 | 'compiler/translator/ValidateGlobalInitializer.cpp', |
| 100 | 'compiler/translator/ValidateGlobalInitializer.h', |
Brett Wilson | 04bac60 | 2014-07-16 14:19:18 -0700 | [diff] [blame] | 101 | 'compiler/translator/ValidateLimitations.cpp', |
| 102 | 'compiler/translator/ValidateLimitations.h', |
Olli Etuaho | 19d1dc9 | 2016-03-08 17:18:46 +0200 | [diff] [blame] | 103 | 'compiler/translator/ValidateMaxParameters.h', |
| 104 | 'compiler/translator/ValidateMaxParameters.cpp', |
Brett Wilson | 04bac60 | 2014-07-16 14:19:18 -0700 | [diff] [blame] | 105 | 'compiler/translator/ValidateOutputs.cpp', |
| 106 | 'compiler/translator/ValidateOutputs.h', |
Olli Etuaho | ac5274d | 2015-02-20 10:19:08 +0200 | [diff] [blame] | 107 | 'compiler/translator/ValidateSwitch.cpp', |
| 108 | 'compiler/translator/ValidateSwitch.h', |
Brett Wilson | 04bac60 | 2014-07-16 14:19:18 -0700 | [diff] [blame] | 109 | 'compiler/translator/VariableInfo.cpp', |
| 110 | 'compiler/translator/VariableInfo.h', |
| 111 | 'compiler/translator/VariablePacker.cpp', |
| 112 | 'compiler/translator/VariablePacker.h', |
Jamie Madill | 9e0478f | 2015-01-13 11:13:54 -0500 | [diff] [blame] | 113 | 'compiler/translator/blocklayout.cpp', |
| 114 | 'compiler/translator/blocklayout.h', |
Brett Wilson | 04bac60 | 2014-07-16 14:19:18 -0700 | [diff] [blame] | 115 | 'compiler/translator/depgraph/DependencyGraph.cpp', |
| 116 | 'compiler/translator/depgraph/DependencyGraph.h', |
| 117 | 'compiler/translator/depgraph/DependencyGraphBuilder.cpp', |
| 118 | 'compiler/translator/depgraph/DependencyGraphBuilder.h', |
| 119 | 'compiler/translator/depgraph/DependencyGraphOutput.cpp', |
| 120 | 'compiler/translator/depgraph/DependencyGraphOutput.h', |
| 121 | 'compiler/translator/depgraph/DependencyGraphTraverse.cpp', |
| 122 | 'compiler/translator/glslang.h', |
| 123 | 'compiler/translator/glslang.l', |
| 124 | 'compiler/translator/glslang.y', |
| 125 | 'compiler/translator/glslang_lex.cpp', |
| 126 | 'compiler/translator/glslang_tab.cpp', |
| 127 | 'compiler/translator/glslang_tab.h', |
| 128 | 'compiler/translator/intermOut.cpp', |
Brett Wilson | 04bac60 | 2014-07-16 14:19:18 -0700 | [diff] [blame] | 129 | 'compiler/translator/length_limits.h', |
Brett Wilson | 04bac60 | 2014-07-16 14:19:18 -0700 | [diff] [blame] | 130 | 'compiler/translator/timing/RestrictFragmentShaderTiming.cpp', |
| 131 | 'compiler/translator/timing/RestrictFragmentShaderTiming.h', |
| 132 | 'compiler/translator/timing/RestrictVertexShaderTiming.cpp', |
| 133 | 'compiler/translator/timing/RestrictVertexShaderTiming.h', |
| 134 | 'compiler/translator/util.cpp', |
| 135 | 'compiler/translator/util.h', |
| 136 | 'third_party/compiler/ArrayBoundsClamper.cpp', |
| 137 | 'third_party/compiler/ArrayBoundsClamper.h', |
| 138 | ], |
Austin Kinross | 82b5ab6 | 2015-12-11 09:30:15 -0800 | [diff] [blame] | 139 | 'angle_translator_lib_essl_sources': |
| 140 | [ |
| 141 | 'compiler/translator/OutputESSL.cpp', |
| 142 | 'compiler/translator/OutputESSL.h', |
| 143 | 'compiler/translator/TranslatorESSL.cpp', |
| 144 | 'compiler/translator/TranslatorESSL.h', |
| 145 | ], |
| 146 | 'angle_translator_lib_glsl_sources': |
| 147 | [ |
| 148 | 'compiler/translator/BuiltInFunctionEmulatorGLSL.cpp', |
| 149 | 'compiler/translator/BuiltInFunctionEmulatorGLSL.h', |
| 150 | 'compiler/translator/ExtensionGLSL.cpp', |
| 151 | 'compiler/translator/ExtensionGLSL.h', |
| 152 | 'compiler/translator/OutputGLSL.cpp', |
| 153 | 'compiler/translator/OutputGLSL.h', |
| 154 | 'compiler/translator/OutputGLSLBase.cpp', |
| 155 | 'compiler/translator/OutputGLSLBase.h', |
| 156 | 'compiler/translator/TranslatorGLSL.cpp', |
| 157 | 'compiler/translator/TranslatorGLSL.h', |
| 158 | 'compiler/translator/VersionGLSL.cpp', |
| 159 | 'compiler/translator/VersionGLSL.h', |
| 160 | ], |
Daniel Bratell | 73941de | 2015-02-25 14:34:49 +0100 | [diff] [blame] | 161 | 'angle_translator_lib_hlsl_sources': |
| 162 | [ |
Olli Etuaho | a8c414b | 2015-04-16 15:51:03 +0300 | [diff] [blame] | 163 | 'compiler/translator/ArrayReturnValueToOutParameter.cpp', |
| 164 | 'compiler/translator/ArrayReturnValueToOutParameter.h', |
Corentin Wallez | f4eab3b | 2015-03-18 12:55:45 -0700 | [diff] [blame] | 165 | 'compiler/translator/ASTMetadataHLSL.cpp', |
| 166 | 'compiler/translator/ASTMetadataHLSL.h', |
Daniel Bratell | 73941de | 2015-02-25 14:34:49 +0100 | [diff] [blame] | 167 | 'compiler/translator/blocklayoutHLSL.cpp', |
| 168 | 'compiler/translator/blocklayoutHLSL.h', |
| 169 | 'compiler/translator/BuiltInFunctionEmulatorHLSL.cpp', |
| 170 | 'compiler/translator/BuiltInFunctionEmulatorHLSL.h', |
Daniel Bratell | 73941de | 2015-02-25 14:34:49 +0100 | [diff] [blame] | 171 | 'compiler/translator/OutputHLSL.cpp', |
| 172 | 'compiler/translator/OutputHLSL.h', |
Olli Etuaho | 5d91dda | 2015-06-18 15:47:46 +0300 | [diff] [blame] | 173 | 'compiler/translator/RemoveDynamicIndexing.cpp', |
| 174 | 'compiler/translator/RemoveDynamicIndexing.h', |
Olli Etuaho | 2cd7a0e | 2015-02-27 13:57:32 +0200 | [diff] [blame] | 175 | 'compiler/translator/RemoveSwitchFallThrough.cpp', |
| 176 | 'compiler/translator/RemoveSwitchFallThrough.h', |
Daniel Bratell | 73941de | 2015-02-25 14:34:49 +0100 | [diff] [blame] | 177 | 'compiler/translator/RewriteElseBlocks.cpp', |
| 178 | 'compiler/translator/RewriteElseBlocks.h', |
Olli Etuaho | 822fa84 | 2015-04-16 14:26:10 +0300 | [diff] [blame] | 179 | 'compiler/translator/SeparateArrayInitialization.cpp', |
| 180 | 'compiler/translator/SeparateArrayInitialization.h', |
Olli Etuaho | fc0e2bc | 2015-04-16 13:39:56 +0300 | [diff] [blame] | 181 | 'compiler/translator/SeparateDeclarations.cpp', |
| 182 | 'compiler/translator/SeparateDeclarations.h', |
Olli Etuaho | a5316a1 | 2015-05-15 15:25:16 +0300 | [diff] [blame] | 183 | 'compiler/translator/SeparateExpressionsReturningArrays.cpp', |
| 184 | 'compiler/translator/SeparateExpressionsReturningArrays.h', |
Daniel Bratell | 73941de | 2015-02-25 14:34:49 +0100 | [diff] [blame] | 185 | 'compiler/translator/StructureHLSL.cpp', |
| 186 | 'compiler/translator/StructureHLSL.h', |
Olli Etuaho | 5858f7e | 2016-04-08 13:08:46 +0300 | [diff] [blame] | 187 | 'compiler/translator/TextureFunctionHLSL.cpp', |
| 188 | 'compiler/translator/TextureFunctionHLSL.h', |
Daniel Bratell | 73941de | 2015-02-25 14:34:49 +0100 | [diff] [blame] | 189 | 'compiler/translator/TranslatorHLSL.cpp', |
| 190 | 'compiler/translator/TranslatorHLSL.h', |
Olli Etuaho | a6f2209 | 2015-05-08 18:31:10 +0300 | [diff] [blame] | 191 | 'compiler/translator/UnfoldShortCircuitToIf.cpp', |
| 192 | 'compiler/translator/UnfoldShortCircuitToIf.h', |
Daniel Bratell | 73941de | 2015-02-25 14:34:49 +0100 | [diff] [blame] | 193 | 'compiler/translator/UniformHLSL.cpp', |
| 194 | 'compiler/translator/UniformHLSL.h', |
| 195 | 'compiler/translator/UtilsHLSL.cpp', |
| 196 | 'compiler/translator/UtilsHLSL.h', |
| 197 | ], |
Brett Wilson | 04bac60 | 2014-07-16 14:19:18 -0700 | [diff] [blame] | 198 | 'angle_preprocessor_sources': |
| 199 | [ |
| 200 | 'compiler/preprocessor/DiagnosticsBase.cpp', |
| 201 | 'compiler/preprocessor/DiagnosticsBase.h', |
| 202 | 'compiler/preprocessor/DirectiveHandlerBase.cpp', |
| 203 | 'compiler/preprocessor/DirectiveHandlerBase.h', |
| 204 | 'compiler/preprocessor/DirectiveParser.cpp', |
| 205 | 'compiler/preprocessor/DirectiveParser.h', |
| 206 | 'compiler/preprocessor/ExpressionParser.cpp', |
| 207 | 'compiler/preprocessor/ExpressionParser.h', |
| 208 | 'compiler/preprocessor/ExpressionParser.y', |
| 209 | 'compiler/preprocessor/Input.cpp', |
| 210 | 'compiler/preprocessor/Input.h', |
| 211 | 'compiler/preprocessor/Lexer.cpp', |
| 212 | 'compiler/preprocessor/Lexer.h', |
| 213 | 'compiler/preprocessor/Macro.cpp', |
| 214 | 'compiler/preprocessor/Macro.h', |
| 215 | 'compiler/preprocessor/MacroExpander.cpp', |
| 216 | 'compiler/preprocessor/MacroExpander.h', |
| 217 | 'compiler/preprocessor/Preprocessor.cpp', |
| 218 | 'compiler/preprocessor/Preprocessor.h', |
| 219 | 'compiler/preprocessor/SourceLocation.h', |
| 220 | 'compiler/preprocessor/Token.cpp', |
| 221 | 'compiler/preprocessor/Token.h', |
| 222 | 'compiler/preprocessor/Tokenizer.cpp', |
| 223 | 'compiler/preprocessor/Tokenizer.h', |
| 224 | 'compiler/preprocessor/Tokenizer.l', |
| 225 | 'compiler/preprocessor/numeric_lex.h', |
| 226 | 'compiler/preprocessor/pp_utils.h', |
| 227 | ], |
| 228 | }, |
| 229 | # Everything below this is duplicated in the GN build. If you change |
| 230 | # anything also change angle/BUILD.gn |
Geoff Lang | 1773282 | 2013-08-29 13:46:49 -0400 | [diff] [blame] | 231 | 'targets': |
| 232 | [ |
| 233 | { |
| 234 | 'target_name': 'preprocessor', |
| 235 | 'type': 'static_library', |
Geoff Lang | d095bda | 2014-04-07 14:21:14 -0400 | [diff] [blame] | 236 | 'includes': [ '../build/common_defines.gypi', ], |
Brett Wilson | 04bac60 | 2014-07-16 14:19:18 -0700 | [diff] [blame] | 237 | 'sources': [ '<@(angle_preprocessor_sources)', ], |
Geoff Lang | 1773282 | 2013-08-29 13:46:49 -0400 | [diff] [blame] | 238 | }, |
Geoff Lang | 1773282 | 2013-08-29 13:46:49 -0400 | [diff] [blame] | 239 | { |
Jamie Madill | 006ed1e | 2014-04-28 15:47:39 -0400 | [diff] [blame] | 240 | 'target_name': 'translator_lib', |
| 241 | 'type': 'static_library', |
Jamie Madill | 562e81b | 2015-01-14 14:31:02 -0500 | [diff] [blame] | 242 | 'dependencies': [ 'preprocessor', 'angle_common' ], |
Jamie Madill | 8cc03bf | 2014-04-11 13:33:57 -0400 | [diff] [blame] | 243 | 'includes': [ '../build/common_defines.gypi', ], |
| 244 | 'include_dirs': |
| 245 | [ |
| 246 | '.', |
| 247 | '../include', |
| 248 | ], |
Jamie Madill | a2ad4e8 | 2014-07-17 14:16:32 -0400 | [diff] [blame] | 249 | 'defines': |
| 250 | [ |
| 251 | # define the static translator to indicate exported |
| 252 | # classes are (in fact) locally defined |
| 253 | 'ANGLE_TRANSLATOR_STATIC', |
| 254 | ], |
Jamie Madill | 8cc03bf | 2014-04-11 13:33:57 -0400 | [diff] [blame] | 255 | 'sources': |
| 256 | [ |
Brett Wilson | 04bac60 | 2014-07-16 14:19:18 -0700 | [diff] [blame] | 257 | '<@(angle_translator_lib_sources)', |
Jamie Madill | 8cc03bf | 2014-04-11 13:33:57 -0400 | [diff] [blame] | 258 | ], |
Jamie Madill | 8cc03bf | 2014-04-11 13:33:57 -0400 | [diff] [blame] | 259 | 'msvs_settings': |
| 260 | { |
| 261 | 'VCLibrarianTool': |
| 262 | { |
| 263 | 'AdditionalOptions': ['/ignore:4221'] |
| 264 | }, |
| 265 | }, |
Cooper Partin | 88d3b8c | 2014-10-08 10:41:56 -0700 | [diff] [blame] | 266 | 'conditions': |
| 267 | [ |
Austin Kinross | 82b5ab6 | 2015-12-11 09:30:15 -0800 | [diff] [blame] | 268 | ['angle_enable_essl==1', |
| 269 | { |
| 270 | 'defines': |
| 271 | [ |
| 272 | 'ANGLE_ENABLE_ESSL', |
| 273 | ], |
| 274 | 'direct_dependent_settings': |
| 275 | { |
| 276 | 'defines': |
| 277 | [ |
| 278 | 'ANGLE_ENABLE_ESSL', |
| 279 | ], |
| 280 | }, |
| 281 | 'sources': |
| 282 | [ |
| 283 | '<@(angle_translator_lib_essl_sources)', |
| 284 | ], |
| 285 | }], |
| 286 | ['angle_enable_glsl==1', |
| 287 | { |
| 288 | 'defines': |
| 289 | [ |
| 290 | 'ANGLE_ENABLE_GLSL', |
| 291 | ], |
| 292 | 'direct_dependent_settings': |
| 293 | { |
| 294 | 'defines': |
| 295 | [ |
| 296 | 'ANGLE_ENABLE_GLSL', |
| 297 | ], |
| 298 | }, |
| 299 | 'sources': |
| 300 | [ |
| 301 | '<@(angle_translator_lib_glsl_sources)', |
| 302 | ], |
| 303 | }], |
Daniel Bratell | 73941de | 2015-02-25 14:34:49 +0100 | [diff] [blame] | 304 | ['angle_enable_hlsl==1', |
| 305 | { |
| 306 | 'defines': |
| 307 | [ |
| 308 | 'ANGLE_ENABLE_HLSL', |
| 309 | ], |
| 310 | 'direct_dependent_settings': |
| 311 | { |
| 312 | 'defines': |
| 313 | [ |
| 314 | 'ANGLE_ENABLE_HLSL', |
| 315 | ], |
| 316 | }, |
| 317 | 'sources': |
| 318 | [ |
| 319 | '<@(angle_translator_lib_hlsl_sources)', |
| 320 | ], |
| 321 | }], |
Cooper Partin | 88d3b8c | 2014-10-08 10:41:56 -0700 | [diff] [blame] | 322 | ], |
Jamie Madill | 8cc03bf | 2014-04-11 13:33:57 -0400 | [diff] [blame] | 323 | }, |
Geoff Lang | 2b6008c | 2013-10-08 10:44:05 -0400 | [diff] [blame] | 324 | |
Jamie Madill | 8cc03bf | 2014-04-11 13:33:57 -0400 | [diff] [blame] | 325 | { |
Jamie Madill | 006ed1e | 2014-04-28 15:47:39 -0400 | [diff] [blame] | 326 | 'target_name': 'translator', |
| 327 | 'type': '<(component)', |
Jamie Madill | 562e81b | 2015-01-14 14:31:02 -0500 | [diff] [blame] | 328 | 'dependencies': [ 'translator_lib', 'angle_common' ], |
Jamie Madill | 006ed1e | 2014-04-28 15:47:39 -0400 | [diff] [blame] | 329 | 'includes': [ '../build/common_defines.gypi', ], |
| 330 | 'include_dirs': |
| 331 | [ |
| 332 | '.', |
| 333 | '../include', |
| 334 | ], |
| 335 | 'defines': |
| 336 | [ |
| 337 | 'ANGLE_TRANSLATOR_IMPLEMENTATION', |
| 338 | ], |
| 339 | 'sources': |
| 340 | [ |
Jamie Madill | a2ad4e8 | 2014-07-17 14:16:32 -0400 | [diff] [blame] | 341 | 'compiler/translator/ShaderLang.cpp', |
| 342 | 'compiler/translator/ShaderVars.cpp' |
Jamie Madill | 006ed1e | 2014-04-28 15:47:39 -0400 | [diff] [blame] | 343 | ], |
| 344 | }, |
| 345 | |
| 346 | { |
Jamie Madill | 8cc03bf | 2014-04-11 13:33:57 -0400 | [diff] [blame] | 347 | 'target_name': 'translator_static', |
| 348 | 'type': 'static_library', |
Jamie Madill | 006ed1e | 2014-04-28 15:47:39 -0400 | [diff] [blame] | 349 | 'dependencies': [ 'translator_lib' ], |
Jamie Madill | 8cc03bf | 2014-04-11 13:33:57 -0400 | [diff] [blame] | 350 | 'includes': [ '../build/common_defines.gypi', ], |
| 351 | 'include_dirs': |
| 352 | [ |
| 353 | '.', |
| 354 | '../include', |
| 355 | ], |
Geoff Lang | 1773282 | 2013-08-29 13:46:49 -0400 | [diff] [blame] | 356 | 'defines': |
| 357 | [ |
Geoff Lang | 31f0dc0 | 2013-10-08 13:29:13 -0400 | [diff] [blame] | 358 | 'ANGLE_TRANSLATOR_STATIC', |
Geoff Lang | 1773282 | 2013-08-29 13:46:49 -0400 | [diff] [blame] | 359 | ], |
Geoff Lang | 2b6008c | 2013-10-08 10:44:05 -0400 | [diff] [blame] | 360 | 'direct_dependent_settings': |
| 361 | { |
| 362 | 'defines': |
| 363 | [ |
| 364 | 'ANGLE_TRANSLATOR_STATIC', |
| 365 | ], |
| 366 | }, |
Jamie Madill | d51df46 | 2014-02-26 14:18:17 -0500 | [diff] [blame] | 367 | 'sources': |
| 368 | [ |
Jamie Madill | a2ad4e8 | 2014-07-17 14:16:32 -0400 | [diff] [blame] | 369 | 'compiler/translator/ShaderLang.cpp', |
| 370 | 'compiler/translator/ShaderVars.cpp' |
Jamie Madill | d51df46 | 2014-02-26 14:18:17 -0500 | [diff] [blame] | 371 | ], |
Geoff Lang | 1773282 | 2013-08-29 13:46:49 -0400 | [diff] [blame] | 372 | }, |
| 373 | ], |
| 374 | } |