mirror of
https://github.com/KhronosGroup/glslang
synced 2024-09-19 12:19:53 +00:00
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
11
BUILD.gn
11
BUILD.gn
@ -148,6 +148,7 @@ source_set("glslang_sources") {
|
||||
"-Wno-inconsistent-missing-override",
|
||||
"-Wno-sign-compare",
|
||||
"-Wno-unused-variable",
|
||||
"-Wno-missing-field-initializers",
|
||||
]
|
||||
}
|
||||
if (is_win && !is_clang) {
|
||||
@ -186,3 +187,13 @@ executable("glslang_validator") {
|
||||
":glslang_sources",
|
||||
]
|
||||
}
|
||||
|
||||
executable("spirv-remap") {
|
||||
sources = [
|
||||
"StandAlone/spirv-remap.cpp",
|
||||
]
|
||||
defines = [ "ENABLE_OPT=1" ]
|
||||
deps = [
|
||||
":glslang_sources",
|
||||
]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user