Merge pull request #1664 from null77/support-angle
Fix a few GN build issues.
This commit is contained in:
commit
6a9df5f48f
27
BUILD.gn
27
BUILD.gn
@ -141,8 +141,9 @@ source_set("glslang_sources") {
|
|||||||
|
|
||||||
if (is_clang) {
|
if (is_clang) {
|
||||||
cflags_cc = [
|
cflags_cc = [
|
||||||
"-Wno-implicit-fallthrough",
|
|
||||||
"-Wno-ignored-qualifiers",
|
"-Wno-ignored-qualifiers",
|
||||||
|
"-Wno-implicit-fallthrough",
|
||||||
|
"-Wno-sign-compare",
|
||||||
"-Wno-unused-variable",
|
"-Wno-unused-variable",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -151,3 +152,27 @@ source_set("glslang_sources") {
|
|||||||
"${spirv_tools_dir}:spvtools_opt",
|
"${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…
x
Reference in New Issue
Block a user