xref: /aosp_15_r20/external/swiftshader/third_party/SPIRV-Headers/Android.bp (revision 03ce13f70fcc45d86ee91b7ee4cab1936a95046e)
1*03ce13f7SAndroid Build Coastguard Worker//
2*03ce13f7SAndroid Build Coastguard Worker// Copyright (C) 2020 The Android Open Source Project
3*03ce13f7SAndroid Build Coastguard Worker//
4*03ce13f7SAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License");
5*03ce13f7SAndroid Build Coastguard Worker// you may not use this file except in compliance with the License.
6*03ce13f7SAndroid Build Coastguard Worker// You may obtain a copy of the License at
7*03ce13f7SAndroid Build Coastguard Worker//
8*03ce13f7SAndroid Build Coastguard Worker//      http://www.apache.org/licenses/LICENSE-2.0
9*03ce13f7SAndroid Build Coastguard Worker//
10*03ce13f7SAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software
11*03ce13f7SAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS,
12*03ce13f7SAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*03ce13f7SAndroid Build Coastguard Worker// See the License for the specific language governing permissions and
14*03ce13f7SAndroid Build Coastguard Worker// limitations under the License.
15*03ce13f7SAndroid Build Coastguard Worker//
16*03ce13f7SAndroid Build Coastguard Worker
17*03ce13f7SAndroid Build Coastguard Workerpackage {
18*03ce13f7SAndroid Build Coastguard Worker    default_applicable_licenses: [
19*03ce13f7SAndroid Build Coastguard Worker        "external_swiftshader_third_party_SPIRV-Headers_license",
20*03ce13f7SAndroid Build Coastguard Worker    ],
21*03ce13f7SAndroid Build Coastguard Worker}
22*03ce13f7SAndroid Build Coastguard Worker
23*03ce13f7SAndroid Build Coastguard Worker// Added automatically by a large-scale-change that took the approach of
24*03ce13f7SAndroid Build Coastguard Worker// 'apply every license found to every target'. While this makes sure we respect
25*03ce13f7SAndroid Build Coastguard Worker// every license restriction, it may not be entirely correct.
26*03ce13f7SAndroid Build Coastguard Worker//
27*03ce13f7SAndroid Build Coastguard Worker// e.g. GPL in an MIT project might only apply to the contrib/ directory.
28*03ce13f7SAndroid Build Coastguard Worker//
29*03ce13f7SAndroid Build Coastguard Worker// Please consider splitting the single license below into multiple licenses,
30*03ce13f7SAndroid Build Coastguard Worker// taking care not to lose any license_kind information, and overriding the
31*03ce13f7SAndroid Build Coastguard Worker// default license using the 'licenses: [...]' property on targets as needed.
32*03ce13f7SAndroid Build Coastguard Worker//
33*03ce13f7SAndroid Build Coastguard Worker// For unused files, consider creating a 'filegroup' with "//visibility:private"
34*03ce13f7SAndroid Build Coastguard Worker// to attach the license to, and including a comment whether the files may be
35*03ce13f7SAndroid Build Coastguard Worker// used in the current project.
36*03ce13f7SAndroid Build Coastguard Worker// http://go/android-license-faq
37*03ce13f7SAndroid Build Coastguard Workerlicense {
38*03ce13f7SAndroid Build Coastguard Worker    name: "external_swiftshader_third_party_SPIRV-Headers_license",
39*03ce13f7SAndroid Build Coastguard Worker    visibility: [":__subpackages__"],
40*03ce13f7SAndroid Build Coastguard Worker    license_kinds: [
41*03ce13f7SAndroid Build Coastguard Worker        "SPDX-license-identifier-MIT",
42*03ce13f7SAndroid Build Coastguard Worker        "legacy_unencumbered",
43*03ce13f7SAndroid Build Coastguard Worker    ],
44*03ce13f7SAndroid Build Coastguard Worker    license_text: [
45*03ce13f7SAndroid Build Coastguard Worker        "LICENSE",
46*03ce13f7SAndroid Build Coastguard Worker    ],
47*03ce13f7SAndroid Build Coastguard Worker}
48*03ce13f7SAndroid Build Coastguard Worker
49*03ce13f7SAndroid Build Coastguard Workerfilegroup {
50*03ce13f7SAndroid Build Coastguard Worker    name: "swiftshader_spirv_headers_unified1_spirv.core.grammar.json",
51*03ce13f7SAndroid Build Coastguard Worker    srcs: ["include/spirv/unified1/spirv.core.grammar.json"],
52*03ce13f7SAndroid Build Coastguard Worker}
53*03ce13f7SAndroid Build Coastguard Worker
54*03ce13f7SAndroid Build Coastguard Workerfilegroup {
55*03ce13f7SAndroid Build Coastguard Worker    name: "swiftshader_spirv_headers_unified1_extinst.opencl.std.100.grammar.json",
56*03ce13f7SAndroid Build Coastguard Worker    srcs: ["include/spirv/unified1/extinst.opencl.std.100.grammar.json"],
57*03ce13f7SAndroid Build Coastguard Worker}
58*03ce13f7SAndroid Build Coastguard Worker
59*03ce13f7SAndroid Build Coastguard Workerfilegroup {
60*03ce13f7SAndroid Build Coastguard Worker    name: "swiftshader_spirv_headers_unified1_extinst.glsl.std.450.grammar.json",
61*03ce13f7SAndroid Build Coastguard Worker    srcs: ["include/spirv/unified1/extinst.glsl.std.450.grammar.json"],
62*03ce13f7SAndroid Build Coastguard Worker}
63*03ce13f7SAndroid Build Coastguard Worker
64*03ce13f7SAndroid Build Coastguard Workerfilegroup {
65*03ce13f7SAndroid Build Coastguard Worker    name: "swiftshader_spirv_headers_unified1_extinst.debuginfo.grammar.json",
66*03ce13f7SAndroid Build Coastguard Worker    srcs: ["include/spirv/unified1/extinst.debuginfo.grammar.json"],
67*03ce13f7SAndroid Build Coastguard Worker}
68*03ce13f7SAndroid Build Coastguard Worker
69*03ce13f7SAndroid Build Coastguard Workerfilegroup {
70*03ce13f7SAndroid Build Coastguard Worker    name: "swiftshader_spirv_headers_unified1_extinst.opencl.debuginfo.100.grammar.json",
71*03ce13f7SAndroid Build Coastguard Worker    srcs: ["include/spirv/unified1/extinst.opencl.debuginfo.100.grammar.json"],
72*03ce13f7SAndroid Build Coastguard Worker}
73*03ce13f7SAndroid Build Coastguard Worker
74*03ce13f7SAndroid Build Coastguard Workerfilegroup {
75*03ce13f7SAndroid Build Coastguard Worker    name: "swiftshader_spirv_headers_unified1_extinst.spv-amd-gcn-shader.grammar.json",
76*03ce13f7SAndroid Build Coastguard Worker    srcs: ["include/spirv/unified1/extinst.spv-amd-gcn-shader.grammar.json"],
77*03ce13f7SAndroid Build Coastguard Worker}
78*03ce13f7SAndroid Build Coastguard Worker
79*03ce13f7SAndroid Build Coastguard Workerfilegroup {
80*03ce13f7SAndroid Build Coastguard Worker    name: "swiftshader_spirv_headers_unified1_extinst.spv-amd-shader-ballot.grammar.json",
81*03ce13f7SAndroid Build Coastguard Worker    srcs: ["include/spirv/unified1/extinst.spv-amd-shader-ballot.grammar.json"],
82*03ce13f7SAndroid Build Coastguard Worker}
83*03ce13f7SAndroid Build Coastguard Worker
84*03ce13f7SAndroid Build Coastguard Workerfilegroup {
85*03ce13f7SAndroid Build Coastguard Worker    name: "swiftshader_spirv_headers_unified1_extinst.spv-amd-shader-explicit-vertex-parameter.grammar.json",
86*03ce13f7SAndroid Build Coastguard Worker    srcs: ["include/spirv/unified1/extinst.spv-amd-shader-explicit-vertex-parameter.grammar.json"],
87*03ce13f7SAndroid Build Coastguard Worker}
88*03ce13f7SAndroid Build Coastguard Worker
89*03ce13f7SAndroid Build Coastguard Workerfilegroup {
90*03ce13f7SAndroid Build Coastguard Worker    name: "swiftshader_spirv_headers_unified1_extinst.spv-amd-shader-trinary-minmax.grammar.json",
91*03ce13f7SAndroid Build Coastguard Worker    srcs: ["include/spirv/unified1/extinst.spv-amd-shader-trinary-minmax.grammar.json"],
92*03ce13f7SAndroid Build Coastguard Worker}
93*03ce13f7SAndroid Build Coastguard Worker
94*03ce13f7SAndroid Build Coastguard Workerfilegroup {
95*03ce13f7SAndroid Build Coastguard Worker    name: "swiftshader_spirv_headers_unified1_extinst.nonsemantic.clspvreflection.grammar.json",
96*03ce13f7SAndroid Build Coastguard Worker    srcs: ["include/spirv/unified1/extinst.nonsemantic.clspvreflection.grammar.json"],
97*03ce13f7SAndroid Build Coastguard Worker}
98*03ce13f7SAndroid Build Coastguard Worker
99*03ce13f7SAndroid Build Coastguard Workerfilegroup {
100*03ce13f7SAndroid Build Coastguard Worker    name: "swiftshader_spirv_headers_unified1_extinst.nonsemantic.vkspreflection.grammar.json",
101*03ce13f7SAndroid Build Coastguard Worker    srcs: ["include/spirv/unified1/extinst.nonsemantic.vkspreflection.grammar.json"],
102*03ce13f7SAndroid Build Coastguard Worker}
103*03ce13f7SAndroid Build Coastguard Worker
104*03ce13f7SAndroid Build Coastguard Workerfilegroup {
105*03ce13f7SAndroid Build Coastguard Worker    name: "swiftshader_spirv_headers_unified1_extinst.nonsemantic.shader.debuginfo.100.grammar.json",
106*03ce13f7SAndroid Build Coastguard Worker    srcs: ["include/spirv/unified1/extinst.nonsemantic.shader.debuginfo.100.grammar.json"],
107*03ce13f7SAndroid Build Coastguard Worker}
108*03ce13f7SAndroid Build Coastguard Worker
109*03ce13f7SAndroid Build Coastguard Workerfilegroup {
110*03ce13f7SAndroid Build Coastguard Worker    name: "swiftshader_spirv_headers_spir-v.xml",
111*03ce13f7SAndroid Build Coastguard Worker    srcs: ["include/spirv/spir-v.xml"],
112*03ce13f7SAndroid Build Coastguard Worker}
113