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.
This commit is contained in:
parent
f9d08a25fb
commit
1f5799c155
1 changed files with 11 additions and 0 deletions
11
BUILD.gn
11
BUILD.gn
|
|
@ -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") {
|
||||||
":glslang_sources",
|
":glslang_sources",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
executable("spirv-remap") {
|
||||||
|
sources = [
|
||||||
|
"StandAlone/spirv-remap.cpp",
|
||||||
|
]
|
||||||
|
defines = [ "ENABLE_OPT=1" ]
|
||||||
|
deps = [
|
||||||
|
":glslang_sources",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue