695f57da6c
Add Dawn's dependencies shaderc and glslang, and roll SPIRV. Update the BUILD.gn files to match upstream changes. Bug: skia:9939, chromium:1064563 Change-Id: Ie9720806efe823312da10f7911688f12cad0713e Reviewed-on: https://skia-review.googlesource.com/c/skia/+/278770 Commit-Queue: Mike Klein <mtklein@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com> Reviewed-by: Weston Tracey <westont@google.com>
38 lines
1.3 KiB
Plaintext
38 lines
1.3 KiB
Plaintext
import("../third_party.gni")
|
|
|
|
spirv_cross = "//third_party/externals/spirv-cross"
|
|
|
|
third_party("spirv_cross") {
|
|
public_include_dirs = [
|
|
"//third_party/externals",
|
|
"//third_party/externals/spirv-cross",
|
|
]
|
|
public_defines = [ "SPIRV_CROSS_EXCEPTIONS_TO_ASSERTIONS" ]
|
|
|
|
sources = rebase_path([
|
|
"GLSL.std.450.h",
|
|
"spirv.hpp",
|
|
"spirv_cfg.cpp",
|
|
"spirv_cfg.hpp",
|
|
"spirv_common.hpp",
|
|
"spirv_cpp.cpp",
|
|
"spirv_cpp.hpp",
|
|
"spirv_cross.cpp",
|
|
"spirv_cross.hpp",
|
|
"spirv_cross_parsed_ir.cpp",
|
|
"spirv_cross_parsed_ir.hpp",
|
|
"spirv_glsl.cpp",
|
|
"spirv_glsl.hpp",
|
|
"spirv_hlsl.cpp",
|
|
"spirv_hlsl.hpp",
|
|
"spirv_msl.cpp",
|
|
"spirv_msl.hpp",
|
|
"spirv_parser.cpp",
|
|
"spirv_parser.hpp",
|
|
"spirv_reflect.cpp",
|
|
"spirv_reflect.hpp",
|
|
],
|
|
".",
|
|
"${spirv_cross}")
|
|
}
|