Ehsan Nasiri | 4163b36 | 2019-09-18 16:30:29 -0400 | [diff] [blame] | 1 | package( |
| 2 | default_visibility = ["//visibility:public"], |
| 3 | ) |
| 4 | |
| 5 | licenses(["notice"]) |
| 6 | |
| 7 | exports_files(["LICENSE"]) |
| 8 | |
| 9 | filegroup( |
| 10 | name = "spirv_core_grammar_1.0", |
| 11 | srcs = ["include/spirv/1.0/spirv.core.grammar.json"], |
| 12 | ) |
| 13 | |
| 14 | filegroup( |
| 15 | name = "spirv_glsl_grammar_1.0", |
| 16 | srcs = ["include/spirv/1.0/extinst.glsl.std.450.grammar.json"], |
| 17 | ) |
| 18 | |
| 19 | filegroup( |
| 20 | name = "spirv_opencl_grammar_1.0", |
| 21 | srcs = ["include/spirv/1.0/extinst.opencl.std.100.grammar.json"], |
| 22 | ) |
| 23 | |
| 24 | filegroup( |
| 25 | name = "spirv_core_grammar_1.1", |
| 26 | srcs = ["include/spirv/1.1/spirv.core.grammar.json"], |
| 27 | ) |
| 28 | |
| 29 | filegroup( |
| 30 | name = "spirv_glsl_grammar_1.1", |
| 31 | srcs = ["include/spirv/1.1/extinst.glsl.std.450.grammar.json"], |
| 32 | ) |
| 33 | |
| 34 | filegroup( |
| 35 | name = "spirv_opencl_grammar_1.1", |
| 36 | srcs = ["include/spirv/1.1/extinst.opencl.std.100.grammar.json"], |
| 37 | ) |
| 38 | |
| 39 | filegroup( |
| 40 | name = "spirv_core_grammar_1.2", |
| 41 | srcs = ["include/spirv/1.2/spirv.core.grammar.json"], |
| 42 | ) |
| 43 | |
| 44 | filegroup( |
| 45 | name = "spirv_glsl_grammar_1.2", |
| 46 | srcs = ["include/spirv/1.2/extinst.glsl.std.450.grammar.json"], |
| 47 | ) |
| 48 | |
| 49 | filegroup( |
| 50 | name = "spirv_opencl_grammar_1.2", |
| 51 | srcs = ["include/spirv/1.2/extinst.opencl.std.100.grammar.json"], |
| 52 | ) |
| 53 | |
| 54 | filegroup( |
| 55 | name = "spirv_core_grammar_unified1", |
| 56 | srcs = ["include/spirv/unified1/spirv.core.grammar.json"], |
| 57 | ) |
| 58 | |
| 59 | filegroup( |
| 60 | name = "spirv_glsl_grammar_unified1", |
| 61 | srcs = ["include/spirv/unified1/extinst.glsl.std.450.grammar.json"], |
| 62 | ) |
| 63 | |
| 64 | filegroup( |
| 65 | name = "spirv_opencl_grammar_unified1", |
| 66 | srcs = ["include/spirv/unified1/extinst.opencl.std.100.grammar.json"], |
| 67 | ) |
| 68 | |
| 69 | filegroup( |
| 70 | name = "spirv_xml_registry", |
| 71 | srcs = ["include/spirv/spir-v.xml"], |
| 72 | ) |
| 73 | |
alan-baker | 5538bf4 | 2020-07-29 16:56:17 -0400 | [diff] [blame] | 74 | filegroup( |
| 75 | name = "spirv_ext_inst_debuginfo_grammar_unified1", |
| 76 | srcs = ["include/spirv/unified1/extinst.debuginfo.grammar.json"], |
| 77 | ) |
| 78 | |
| 79 | filegroup( |
| 80 | name = "spirv_ext_inst_nonsemantic_clspvreflection_grammar_unified1", |
| 81 | srcs = ["include/spirv/unified1/extinst.nonsemantic.clspvreflection.grammar.json"], |
| 82 | ) |
| 83 | |
| 84 | filegroup( |
| 85 | name = "spirv_ext_inst_nonsemantic_debugprintf_grammar_unified1", |
| 86 | srcs = ["include/spirv/unified1/extinst.nonsemantic.debugprintf.grammar.json"], |
| 87 | ) |
| 88 | |
| 89 | filegroup( |
| 90 | name = "spirv_ext_inst_opencl_debuginfo_100_grammar_unified1", |
| 91 | srcs = ["include/spirv/unified1/extinst.opencl.debuginfo.100.grammar.json"], |
| 92 | ) |
| 93 | |
| 94 | filegroup( |
Greg Fischer | 4dcae48 | 2021-08-27 18:32:59 -0600 | [diff] [blame] | 95 | name = "spirv_ext_inst_nonsemantic_shader_debuginfo_100_grammar_unified1", |
| 96 | srcs = ["include/spirv/unified1/extinst.nonsemantic.shader.debuginfo.100.grammar.json"], |
| 97 | ) |
| 98 | |
| 99 | filegroup( |
alan-baker | 5538bf4 | 2020-07-29 16:56:17 -0400 | [diff] [blame] | 100 | name = "spirv_ext_inst_spv_amd_gcn_shader_grammar_unified1", |
| 101 | srcs = ["include/spirv/unified1/extinst.spv-amd-gcn-shader.grammar.json"], |
| 102 | ) |
| 103 | |
| 104 | filegroup( |
| 105 | name = "spirv_ext_inst_spv_amd_shader_ballot_grammar_unified1", |
| 106 | srcs = ["include/spirv/unified1/extinst.spv-amd-shader-ballot.grammar.json"], |
| 107 | ) |
| 108 | |
| 109 | filegroup( |
| 110 | name = "spirv_ext_inst_spv_amd_shader_explicit_vertex_parameter_grammar_unified1", |
| 111 | srcs = ["include/spirv/unified1/extinst.spv-amd-shader-explicit-vertex-parameter.grammar.json"], |
| 112 | ) |
| 113 | |
| 114 | filegroup( |
| 115 | name = "spirv_ext_inst_spv_amd_shader_trinary_minmax_grammar_unified1", |
| 116 | srcs = ["include/spirv/unified1/extinst.spv-amd-shader-trinary-minmax.grammar.json"], |
| 117 | ) |
| 118 | |
Ehsan Nasiri | 4163b36 | 2019-09-18 16:30:29 -0400 | [diff] [blame] | 119 | cc_library( |
| 120 | name = "spirv_common_headers", |
| 121 | hdrs = [ |
| 122 | "include/spirv/1.0/GLSL.std.450.h", |
| 123 | "include/spirv/1.0/OpenCL.std.h", |
| 124 | "include/spirv/1.1/GLSL.std.450.h", |
| 125 | "include/spirv/1.1/OpenCL.std.h", |
| 126 | "include/spirv/1.2/GLSL.std.450.h", |
| 127 | "include/spirv/1.2/OpenCL.std.h", |
| 128 | "include/spirv/unified1/GLSL.std.450.h", |
alan-baker | 5538bf4 | 2020-07-29 16:56:17 -0400 | [diff] [blame] | 129 | "include/spirv/unified1/NonSemanticClspvReflection.h", |
Steven Perron | 0d334e4 | 2020-03-09 14:23:42 -0400 | [diff] [blame] | 130 | "include/spirv/unified1/NonSemanticDebugPrintf.h", |
Ehsan Nasiri | 4163b36 | 2019-09-18 16:30:29 -0400 | [diff] [blame] | 131 | "include/spirv/unified1/OpenCL.std.h", |
| 132 | ], |
| 133 | includes = ["include"], |
| 134 | ) |
| 135 | |
| 136 | cc_library( |
| 137 | name = "spirv_c_headers", |
| 138 | hdrs = [ |
| 139 | "include/spirv/1.0/spirv.h", |
| 140 | "include/spirv/1.1/spirv.h", |
| 141 | "include/spirv/1.2/spirv.h", |
| 142 | "include/spirv/unified1/spirv.h", |
| 143 | ], |
| 144 | includes = ["include"], |
| 145 | deps = [":spirv_common_headers"], |
| 146 | ) |
| 147 | |
| 148 | cc_library( |
| 149 | name = "spirv_cpp_headers", |
| 150 | hdrs = [ |
| 151 | "include/spirv/1.0/spirv.hpp", |
| 152 | "include/spirv/1.1/spirv.hpp", |
| 153 | "include/spirv/1.2/spirv.hpp", |
| 154 | "include/spirv/unified1/spirv.hpp", |
| 155 | ], |
| 156 | includes = ["include"], |
| 157 | deps = [":spirv_common_headers"], |
| 158 | ) |
| 159 | |
| 160 | cc_library( |
| 161 | name = "spirv_cpp11_headers", |
| 162 | hdrs = [ |
| 163 | "include/spirv/1.0/spirv.hpp11", |
| 164 | "include/spirv/1.1/spirv.hpp11", |
| 165 | "include/spirv/1.2/spirv.hpp11", |
| 166 | "include/spirv/unified1/spirv.hpp11", |
| 167 | ], |
| 168 | includes = ["include"], |
| 169 | deps = [":spirv_common_headers"], |
| 170 | ) |
| 171 | |