2020-02-19 14:40:35 +00:00
|
|
|
import("../third_party.gni")
|
|
|
|
|
2019-08-27 16:24:45 +00:00
|
|
|
spirv_cross = "//third_party/externals/spirv-cross"
|
|
|
|
|
2020-02-19 14:40:35 +00:00
|
|
|
third_party("spirv_cross") {
|
|
|
|
public_include_dirs = [
|
2019-10-15 17:35:37 +00:00
|
|
|
"//third_party/externals",
|
|
|
|
"//third_party/externals/spirv-cross",
|
|
|
|
]
|
2020-02-19 14:40:35 +00:00
|
|
|
public_defines = [ "SPIRV_CROSS_EXCEPTIONS_TO_ASSERTIONS" ]
|
2019-08-27 16:24:45 +00:00
|
|
|
|
|
|
|
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",
|
2020-03-30 17:23:00 +00:00
|
|
|
"spirv_reflect.cpp",
|
|
|
|
"spirv_reflect.hpp",
|
2019-08-27 16:24:45 +00:00
|
|
|
],
|
|
|
|
".",
|
|
|
|
"${spirv_cross}")
|
|
|
|
}
|