blob: 29f43ce2aa6eeae9b27c0fefd8bb7f74e1efef89 [file] [log] [blame]
Ben Clayton0f9a2dc2019-11-18 11:12:56 +00001package(
2 default_visibility = ["//visibility:public"],
3)
4
5licenses(["notice"])
6
7exports_files(["LICENSE"])
8
9filegroup(
10 name = "spirv_core_grammar_1.0",
11 srcs = ["include/spirv/1.0/spirv.core.grammar.json"],
12)
13
14filegroup(
15 name = "spirv_glsl_grammar_1.0",
16 srcs = ["include/spirv/1.0/extinst.glsl.std.450.grammar.json"],
17)
18
19filegroup(
20 name = "spirv_opencl_grammar_1.0",
21 srcs = ["include/spirv/1.0/extinst.opencl.std.100.grammar.json"],
22)
23
24filegroup(
25 name = "spirv_core_grammar_1.1",
26 srcs = ["include/spirv/1.1/spirv.core.grammar.json"],
27)
28
29filegroup(
30 name = "spirv_glsl_grammar_1.1",
31 srcs = ["include/spirv/1.1/extinst.glsl.std.450.grammar.json"],
32)
33
34filegroup(
35 name = "spirv_opencl_grammar_1.1",
36 srcs = ["include/spirv/1.1/extinst.opencl.std.100.grammar.json"],
37)
38
39filegroup(
40 name = "spirv_core_grammar_1.2",
41 srcs = ["include/spirv/1.2/spirv.core.grammar.json"],
42)
43
44filegroup(
45 name = "spirv_glsl_grammar_1.2",
46 srcs = ["include/spirv/1.2/extinst.glsl.std.450.grammar.json"],
47)
48
49filegroup(
50 name = "spirv_opencl_grammar_1.2",
51 srcs = ["include/spirv/1.2/extinst.opencl.std.100.grammar.json"],
52)
53
54filegroup(
55 name = "spirv_core_grammar_unified1",
56 srcs = ["include/spirv/unified1/spirv.core.grammar.json"],
57)
58
59filegroup(
60 name = "spirv_glsl_grammar_unified1",
61 srcs = ["include/spirv/unified1/extinst.glsl.std.450.grammar.json"],
62)
63
64filegroup(
65 name = "spirv_opencl_grammar_unified1",
66 srcs = ["include/spirv/unified1/extinst.opencl.std.100.grammar.json"],
67)
68
69filegroup(
70 name = "spirv_xml_registry",
71 srcs = ["include/spirv/spir-v.xml"],
72)
73
74cc_library(
75 name = "spirv_common_headers",
76 hdrs = [
77 "include/spirv/1.0/GLSL.std.450.h",
78 "include/spirv/1.0/OpenCL.std.h",
79 "include/spirv/1.1/GLSL.std.450.h",
80 "include/spirv/1.1/OpenCL.std.h",
81 "include/spirv/1.2/GLSL.std.450.h",
82 "include/spirv/1.2/OpenCL.std.h",
83 "include/spirv/unified1/GLSL.std.450.h",
84 "include/spirv/unified1/OpenCL.std.h",
85 ],
86 includes = ["include"],
87)
88
89cc_library(
90 name = "spirv_c_headers",
91 hdrs = [
92 "include/spirv/1.0/spirv.h",
93 "include/spirv/1.1/spirv.h",
94 "include/spirv/1.2/spirv.h",
95 "include/spirv/unified1/spirv.h",
96 ],
97 includes = ["include"],
98 deps = [":spirv_common_headers"],
99)
100
101cc_library(
102 name = "spirv_cpp_headers",
103 hdrs = [
104 "include/spirv/1.0/spirv.hpp",
105 "include/spirv/1.1/spirv.hpp",
106 "include/spirv/1.2/spirv.hpp",
107 "include/spirv/unified1/spirv.hpp",
108 ],
109 includes = ["include"],
110 deps = [":spirv_common_headers"],
111)
112
113cc_library(
114 name = "spirv_cpp11_headers",
115 hdrs = [
116 "include/spirv/1.0/spirv.hpp11",
117 "include/spirv/1.1/spirv.hpp11",
118 "include/spirv/1.2/spirv.hpp11",
119 "include/spirv/unified1/spirv.hpp11",
120 ],
121 includes = ["include"],
122 deps = [":spirv_common_headers"],
123)
124