1import("../third_party.gni")
2
3spirv_cross = "//third_party/externals/spirv-cross"
4
5third_party("spirv_cross") {
6  public_include_dirs = [
7    "//third_party/externals",
8    "//third_party/externals/spirv-cross",
9  ]
10  public_defines = [ "SPIRV_CROSS_EXCEPTIONS_TO_ASSERTIONS" ]
11
12  sources = rebase_path([
13                          "GLSL.std.450.h",
14                          "spirv.hpp",
15                          "spirv_cfg.cpp",
16                          "spirv_cfg.hpp",
17                          "spirv_common.hpp",
18                          "spirv_cpp.cpp",
19                          "spirv_cpp.hpp",
20                          "spirv_cross.cpp",
21                          "spirv_cross.hpp",
22                          "spirv_cross_parsed_ir.cpp",
23                          "spirv_cross_parsed_ir.hpp",
24                          "spirv_glsl.cpp",
25                          "spirv_glsl.hpp",
26                          "spirv_hlsl.cpp",
27                          "spirv_hlsl.hpp",
28                          "spirv_msl.cpp",
29                          "spirv_msl.hpp",
30                          "spirv_parser.cpp",
31                          "spirv_parser.hpp",
32                          "spirv_reflect.cpp",
33                          "spirv_reflect.hpp",
34                        ],
35                        ".",
36                        "${spirv_cross}")
37}
38