GN build (for Chromium): enable HLSL in dependents.
The previous fix for this only enabled HLSL internally in glslang which means that dependent using HLSL, for example shaderc, failed compilation.
This commit is contained in:
parent
d6a5cc6580
commit
9757da4f8e
1 changed files with 8 additions and 7 deletions
11
BUILD.gn
11
BUILD.gn
|
|
@ -37,6 +37,8 @@ spirv_tools_dir = glslang_spirv_tools_dir
|
||||||
|
|
||||||
config("glslang_public") {
|
config("glslang_public") {
|
||||||
include_dirs = [ "." ]
|
include_dirs = [ "." ]
|
||||||
|
|
||||||
|
defines = [ "ENABLE_HLSL=1" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
source_set("glslang_sources") {
|
source_set("glslang_sources") {
|
||||||
|
|
@ -131,10 +133,7 @@ source_set("glslang_sources") {
|
||||||
"glslang/Public/ShaderLang.h",
|
"glslang/Public/ShaderLang.h",
|
||||||
]
|
]
|
||||||
|
|
||||||
defines = [
|
defines = [ "ENABLE_OPT=1" ]
|
||||||
"ENABLE_OPT=1",
|
|
||||||
"ENABLE_HLSL=1",
|
|
||||||
]
|
|
||||||
|
|
||||||
if (is_win) {
|
if (is_win) {
|
||||||
sources += [ "glslang/OSDependent/Windows/ossource.cpp" ]
|
sources += [ "glslang/OSDependent/Windows/ossource.cpp" ]
|
||||||
|
|
@ -173,7 +172,9 @@ source_set("glslang_default_resource_limits_sources") {
|
||||||
"StandAlone/ResourceLimits.cpp",
|
"StandAlone/ResourceLimits.cpp",
|
||||||
"StandAlone/ResourceLimits.h",
|
"StandAlone/ResourceLimits.h",
|
||||||
]
|
]
|
||||||
deps = [ ":glslang_sources" ]
|
deps = [
|
||||||
|
":glslang_sources",
|
||||||
|
]
|
||||||
public_configs = [ ":glslang_public" ]
|
public_configs = [ ":glslang_public" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue