Commit 1f5799c1 by David 'Digit' Turner

BUILD.gn: Fix file for use with Fuchsia platform build.

In order to upgrade the version of glslang used by the Fuchsia platform source tree, BUILD.gn needs to be slightly modified to care about the case where it is not used with the Chromium //build configuration: - Remove a new compiler warning to ensure proper compilation with -Werror (which is the default). - Add a build target for spirv-remap, which is used by Fuchsia at build time to optimize the precompiled shaders of some of its graphics libraries.
parent f9d08a25
...@@ -148,6 +148,7 @@ source_set("glslang_sources") { ...@@ -148,6 +148,7 @@ source_set("glslang_sources") {
"-Wno-inconsistent-missing-override", "-Wno-inconsistent-missing-override",
"-Wno-sign-compare", "-Wno-sign-compare",
"-Wno-unused-variable", "-Wno-unused-variable",
"-Wno-missing-field-initializers",
] ]
} }
if (is_win && !is_clang) { if (is_win && !is_clang) {
...@@ -186,3 +187,13 @@ executable("glslang_validator") { ...@@ -186,3 +187,13 @@ executable("glslang_validator") {
":glslang_sources", ":glslang_sources",
] ]
} }
executable("spirv-remap") {
sources = [
"StandAlone/spirv-remap.cpp",
]
defines = [ "ENABLE_OPT=1" ]
deps = [
":glslang_sources",
]
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment