xref: /aosp_15_r20/external/swiftshader/third_party/SPIRV-Headers/BUILD.gn (revision 03ce13f70fcc45d86ee91b7ee4cab1936a95046e)
1*03ce13f7SAndroid Build Coastguard Worker# Copyright (c) 2020-2024 Google LLC
2*03ce13f7SAndroid Build Coastguard Worker#
3*03ce13f7SAndroid Build Coastguard Worker# Permission is hereby granted, free of charge, to any person obtaining a copy
4*03ce13f7SAndroid Build Coastguard Worker# of this software and/or associated documentation files (the "Materials"),
5*03ce13f7SAndroid Build Coastguard Worker# to deal in the Materials without restriction, including without limitation
6*03ce13f7SAndroid Build Coastguard Worker# the rights to use, copy, modify, merge, publish, distribute, sublicense,
7*03ce13f7SAndroid Build Coastguard Worker# and/or sell copies of the Materials, and to permit persons to whom the
8*03ce13f7SAndroid Build Coastguard Worker# Materials are furnished to do so, subject to the following conditions:
9*03ce13f7SAndroid Build Coastguard Worker#
10*03ce13f7SAndroid Build Coastguard Worker# The above copyright notice and this permission notice shall be included in
11*03ce13f7SAndroid Build Coastguard Worker# all copies or substantial portions of the Materials.
12*03ce13f7SAndroid Build Coastguard Worker#
13*03ce13f7SAndroid Build Coastguard Worker# MODIFICATIONS TO THIS FILE MAY MEAN IT NO LONGER ACCURATELY REFLECTS KHRONOS
14*03ce13f7SAndroid Build Coastguard Worker# STANDARDS. THE UNMODIFIED, NORMATIVE VERSIONS OF KHRONOS SPECIFICATIONS AND
15*03ce13f7SAndroid Build Coastguard Worker# HEADER INFORMATION ARE LOCATED AT https://www.khronos.org/registry/
16*03ce13f7SAndroid Build Coastguard Worker#
17*03ce13f7SAndroid Build Coastguard Worker# THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
18*03ce13f7SAndroid Build Coastguard Worker# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19*03ce13f7SAndroid Build Coastguard Worker# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20*03ce13f7SAndroid Build Coastguard Worker# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21*03ce13f7SAndroid Build Coastguard Worker# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22*03ce13f7SAndroid Build Coastguard Worker# FROM,OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS
23*03ce13f7SAndroid Build Coastguard Worker# IN THE MATERIALS.
24*03ce13f7SAndroid Build Coastguard Worker
25*03ce13f7SAndroid Build Coastguard Workerconfig("spv_headers_public_config") {
26*03ce13f7SAndroid Build Coastguard Worker  include_dirs = [ "include" ]
27*03ce13f7SAndroid Build Coastguard Worker}
28*03ce13f7SAndroid Build Coastguard Worker
29*03ce13f7SAndroid Build Coastguard Workersource_set("spv_headers") {
30*03ce13f7SAndroid Build Coastguard Worker  sources = [
31*03ce13f7SAndroid Build Coastguard Worker    "include/spirv/1.2/GLSL.std.450.h",
32*03ce13f7SAndroid Build Coastguard Worker    "include/spirv/1.2/OpenCL.std.h",
33*03ce13f7SAndroid Build Coastguard Worker    "include/spirv/1.2/spirv.h",
34*03ce13f7SAndroid Build Coastguard Worker    "include/spirv/1.2/spirv.hpp",
35*03ce13f7SAndroid Build Coastguard Worker    "include/spirv/unified1/GLSL.std.450.h",
36*03ce13f7SAndroid Build Coastguard Worker    "include/spirv/unified1/NonSemanticClspvReflection.h",
37*03ce13f7SAndroid Build Coastguard Worker    "include/spirv/unified1/NonSemanticDebugPrintf.h",
38*03ce13f7SAndroid Build Coastguard Worker    "include/spirv/unified1/NonSemanticVkspReflection.h",
39*03ce13f7SAndroid Build Coastguard Worker    "include/spirv/unified1/OpenCL.std.h",
40*03ce13f7SAndroid Build Coastguard Worker    "include/spirv/unified1/spirv.h",
41*03ce13f7SAndroid Build Coastguard Worker    "include/spirv/unified1/spirv.hpp",
42*03ce13f7SAndroid Build Coastguard Worker  ]
43*03ce13f7SAndroid Build Coastguard Worker
44*03ce13f7SAndroid Build Coastguard Worker  public_configs = [ ":spv_headers_public_config" ]
45*03ce13f7SAndroid Build Coastguard Worker}
46