mirror of
https://github.com/RPCS3/glslang.git
synced 2024-11-23 11:19:40 +00:00
Fix a few GN build issues.
* adds a source set for default resource limits to mirror CMake * adds a target executable for the standalone validator * fixes a missing warning Allows ANGLE to use the integrated BUILD.gn instead of a custom one. ANGLE bug: 3088
This commit is contained in:
parent
493dee0ade
commit
0ceaebcff9
27
BUILD.gn
27
BUILD.gn
@ -141,8 +141,9 @@ source_set("glslang_sources") {
|
||||
|
||||
if (is_clang) {
|
||||
cflags_cc = [
|
||||
"-Wno-implicit-fallthrough",
|
||||
"-Wno-ignored-qualifiers",
|
||||
"-Wno-implicit-fallthrough",
|
||||
"-Wno-sign-compare",
|
||||
"-Wno-unused-variable",
|
||||
]
|
||||
}
|
||||
@ -151,3 +152,27 @@ source_set("glslang_sources") {
|
||||
"${spirv_tools_dir}:spvtools_opt",
|
||||
]
|
||||
}
|
||||
|
||||
source_set("glslang_default_resource_limits_sources") {
|
||||
sources = [
|
||||
"StandAlone/ResourceLimits.cpp",
|
||||
"StandAlone/ResourceLimits.h",
|
||||
]
|
||||
deps = [ ":glslang_sources" ]
|
||||
public_configs = [ ":glslang_public" ]
|
||||
}
|
||||
|
||||
source_set("glslang_validator") {
|
||||
sources = [
|
||||
"StandAlone/DirStackFileIncluder.h",
|
||||
"StandAlone/StandAlone.cpp",
|
||||
]
|
||||
if (!is_win) {
|
||||
cflags = [ "-Woverflow" ]
|
||||
}
|
||||
defines = [ "ENABLE_OPT=0" ]
|
||||
deps = [
|
||||
":glslang_default_resource_limits_sources",
|
||||
":glslang_sources",
|
||||
]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user