| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//testing/test.gni") | 5 import("//testing/test.gni") |
| 6 | 6 |
| 7 config("glslang_config") { | 7 config("glslang_config") { |
| 8 include_dirs = [ "src" ] | 8 include_dirs = [ "src" ] |
| 9 | 9 |
| 10 defines = [] | 10 defines = [] |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 all_dependent_configs = [ ":glslang_config" ] | 37 all_dependent_configs = [ ":glslang_config" ] |
| 38 configs += [ ":glslang_local_config" ] | 38 configs += [ ":glslang_local_config" ] |
| 39 } | 39 } |
| 40 | 40 |
| 41 static_library("SPIRV") { | 41 static_library("SPIRV") { |
| 42 sources = [ | 42 sources = [ |
| 43 "src/SPIRV/GLSL.std.450.h", | 43 "src/SPIRV/GLSL.std.450.h", |
| 44 "src/SPIRV/GlslangToSpv.cpp", | 44 "src/SPIRV/GlslangToSpv.cpp", |
| 45 "src/SPIRV/GlslangToSpv.h", | 45 "src/SPIRV/GlslangToSpv.h", |
| 46 "src/SPIRV/InReadableOrder.cpp", | 46 "src/SPIRV/InReadableOrder.cpp", |
| 47 "src/SPIRV/Logger.cpp", |
| 48 "src/SPIRV/Logger.h", |
| 47 "src/SPIRV/SPVRemapper.cpp", | 49 "src/SPIRV/SPVRemapper.cpp", |
| 48 "src/SPIRV/SPVRemapper.h", | 50 "src/SPIRV/SPVRemapper.h", |
| 49 "src/SPIRV/SpvBuilder.cpp", | 51 "src/SPIRV/SpvBuilder.cpp", |
| 50 "src/SPIRV/SpvBuilder.h", | 52 "src/SPIRV/SpvBuilder.h", |
| 51 "src/SPIRV/disassemble.cpp", | 53 "src/SPIRV/disassemble.cpp", |
| 52 "src/SPIRV/disassemble.h", | 54 "src/SPIRV/disassemble.h", |
| 53 "src/SPIRV/doc.cpp", | 55 "src/SPIRV/doc.cpp", |
| 54 "src/SPIRV/doc.h", | 56 "src/SPIRV/doc.h", |
| 55 "src/SPIRV/spirv.hpp", | 57 "src/SPIRV/spirv.hpp", |
| 56 "src/SPIRV/spvIR.h", | 58 "src/SPIRV/spvIR.h", |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 "src/glslang/MachineIndependent/parseVersions.h", | 118 "src/glslang/MachineIndependent/parseVersions.h", |
| 117 "src/glslang/MachineIndependent/preprocessor/Pp.cpp", | 119 "src/glslang/MachineIndependent/preprocessor/Pp.cpp", |
| 118 "src/glslang/MachineIndependent/preprocessor/PpAtom.cpp", | 120 "src/glslang/MachineIndependent/preprocessor/PpAtom.cpp", |
| 119 "src/glslang/MachineIndependent/preprocessor/PpContext.cpp", | 121 "src/glslang/MachineIndependent/preprocessor/PpContext.cpp", |
| 120 "src/glslang/MachineIndependent/preprocessor/PpContext.h", | 122 "src/glslang/MachineIndependent/preprocessor/PpContext.h", |
| 121 "src/glslang/MachineIndependent/preprocessor/PpMemory.cpp", | 123 "src/glslang/MachineIndependent/preprocessor/PpMemory.cpp", |
| 122 "src/glslang/MachineIndependent/preprocessor/PpScanner.cpp", | 124 "src/glslang/MachineIndependent/preprocessor/PpScanner.cpp", |
| 123 "src/glslang/MachineIndependent/preprocessor/PpSymbols.cpp", | 125 "src/glslang/MachineIndependent/preprocessor/PpSymbols.cpp", |
| 124 "src/glslang/MachineIndependent/preprocessor/PpTokens.cpp", | 126 "src/glslang/MachineIndependent/preprocessor/PpTokens.cpp", |
| 125 "src/glslang/MachineIndependent/preprocessor/PpTokens.h", | 127 "src/glslang/MachineIndependent/preprocessor/PpTokens.h", |
| 128 "src/glslang/MachineIndependent/propagateNoContraction.cpp", |
| 129 "src/glslang/MachineIndependent/propagateNoContraction.h", |
| 126 "src/glslang/MachineIndependent/reflection.cpp", | 130 "src/glslang/MachineIndependent/reflection.cpp", |
| 127 "src/glslang/MachineIndependent/reflection.h", | 131 "src/glslang/MachineIndependent/reflection.h", |
| 128 "src/glslang/Public/ShaderLang.h", | 132 "src/glslang/Public/ShaderLang.h", |
| 129 ] | 133 ] |
| 130 | 134 |
| 131 if (is_linux || is_android) { | 135 if (is_linux || is_android) { |
| 132 sources += [ "src/glslang/OSDependent/Unix/ossource.cpp" ] | 136 sources += [ "src/glslang/OSDependent/Unix/ossource.cpp" ] |
| 133 } else if (is_win) { | 137 } else if (is_win) { |
| 134 sources += [ | 138 sources += [ |
| 135 "src/glslang/OSDependent/Windows/main.cpp", | 139 "src/glslang/OSDependent/Windows/main.cpp", |
| 136 "src/glslang/OSDependent/Windows/ossource.cpp", | 140 "src/glslang/OSDependent/Windows/ossource.cpp", |
| 137 ] | 141 ] |
| 138 } else { | 142 } else { |
| 139 assert(false, "Unsupported platform.") | 143 assert(false, "Unsupported platform.") |
| 140 } | 144 } |
| 141 | 145 |
| 142 all_dependent_configs = [ ":glslang_config" ] | 146 all_dependent_configs = [ ":glslang_config" ] |
| 143 configs += [ ":glslang_local_config" ] | 147 configs += [ ":glslang_local_config" ] |
| 144 } | 148 } |
| 145 | 149 |
| 146 static_library("HLSL") { | 150 static_library("HLSL") { |
| 147 sources = [ | 151 sources = [ |
| 148 "src/hlsl/hlslGrammar.cpp", | 152 "src/hlsl/hlslGrammar.cpp", |
| 149 "src/hlsl/hlslGrammar.h", | 153 "src/hlsl/hlslGrammar.h", |
| 154 "src/hlsl/hlslOpMap.cpp", |
| 155 "src/hlsl/hlslOpMap.h", |
| 150 "src/hlsl/hlslParseHelper.cpp", | 156 "src/hlsl/hlslParseHelper.cpp", |
| 151 "src/hlsl/hlslParseHelper.h", | 157 "src/hlsl/hlslParseHelper.h", |
| 152 "src/hlsl/hlslScanContext.cpp", | 158 "src/hlsl/hlslScanContext.cpp", |
| 153 "src/hlsl/hlslScanContext.h", | 159 "src/hlsl/hlslScanContext.h", |
| 160 "src/hlsl/hlslTokenStream.cpp", |
| 161 "src/hlsl/hlslTokenStream.h", |
| 154 "src/hlsl/hlslTokens.h", | 162 "src/hlsl/hlslTokens.h", |
| 155 ] | 163 ] |
| 156 | 164 |
| 157 all_dependent_configs = [ ":glslang_config" ] | 165 all_dependent_configs = [ ":glslang_config" ] |
| 158 configs += [ ":glslang_local_config" ] | 166 configs += [ ":glslang_local_config" ] |
| 159 } | 167 } |
| 160 | 168 |
| 161 test("glslang_test") { | 169 test("glslang_test") { |
| 162 sources = [ | 170 sources = [ |
| 163 "src/gtests/AST.FromFile.cpp", | 171 "src/gtests/AST.FromFile.cpp", |
| (...skipping 14 matching lines...) Expand all Loading... |
| 178 ":HLSL", | 186 ":HLSL", |
| 179 ":OGLCompiler", | 187 ":OGLCompiler", |
| 180 ":SPIRV", | 188 ":SPIRV", |
| 181 ":glslang", | 189 ":glslang", |
| 182 ":glslang-default-resource-limits", | 190 ":glslang-default-resource-limits", |
| 183 "//base/test:test_support", | 191 "//base/test:test_support", |
| 184 "//testing/gmock", | 192 "//testing/gmock", |
| 185 "//testing/gtest", | 193 "//testing/gtest", |
| 186 ] | 194 ] |
| 187 } | 195 } |
| OLD | NEW |