Merge pull request #1882 from Kangz/fix-chrome

GN build (for Chromium): enable HLSL in dependents.
This commit is contained in:
John Kessenich 2019-08-26 07:47:30 -06:00 committed by GitHub
commit 32d18c552b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,6 +37,8 @@ spirv_tools_dir = glslang_spirv_tools_dir
config("glslang_public") {
include_dirs = [ "." ]
defines = [ "ENABLE_HLSL=1" ]
}
source_set("glslang_sources") {
@ -131,10 +133,7 @@ source_set("glslang_sources") {
"glslang/Public/ShaderLang.h",
]
defines = [
"ENABLE_OPT=1",
"ENABLE_HLSL=1",
]
defines = [ "ENABLE_OPT=1" ]
if (is_win) {
sources += [ "glslang/OSDependent/Windows/ossource.cpp" ]
@ -173,7 +172,9 @@ source_set("glslang_default_resource_limits_sources") {
"StandAlone/ResourceLimits.cpp",
"StandAlone/ResourceLimits.h",
]
deps = [ ":glslang_sources" ]
deps = [
":glslang_sources",
]
public_configs = [ ":glslang_public" ]
}