blob: ad4e300ffd7a1daa119c820ce31ed3b062c67618 [file] [log] [blame]
Dan Albert0fbb5322016-10-04 17:49:33 -07001// Copyright (C) 2016 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
Jesse Hall408eda02019-04-12 15:39:16 -070015// This module defines which headers are included in the NDK sysroot during
16// the NDK build process.
Dan Albert0fbb5322016-10-04 17:49:33 -070017ndk_headers {
Jesse Hall408eda02019-04-12 15:39:16 -070018 name: "ndk_vulkan_headers",
Dan Albert0fbb5322016-10-04 17:49:33 -070019 from: "include",
20 to: "",
Dan Alberte4d4b1c2017-03-14 14:22:05 -070021 srcs: [
22 "include/vulkan/vk_platform.h",
23 "include/vulkan/vulkan.h",
Jesse Hall35b4de12018-01-17 22:06:20 -080024 "include/vulkan/vulkan_core.h",
25 "include/vulkan/vulkan_android.h",
Dan Alberte4d4b1c2017-03-14 14:22:05 -070026 ],
Dan Albert96b55092016-10-20 10:14:30 -070027 license: "include/vulkan/NOTICE",
Dan Albert0fbb5322016-10-04 17:49:33 -070028}
29
Jesse Hall408eda02019-04-12 15:39:16 -070030// This module makes Vulkan headers available to other modules without
31// having to link against libvulkan.so, e.g. for the Vulkan loader and
32// drivers, or things that dlopen libvulkan.so. It's available to system
33// modules, as part of the VNDK, and to unbundled modules.
Stephen Kiazyke77dce22017-03-14 15:38:12 -070034cc_library_headers {
Colin Cross7884c192016-12-05 13:26:22 -080035 name: "vulkan_headers",
Jesse Hall408eda02019-04-12 15:39:16 -070036 export_include_dirs: ["include"],
37 vendor_available: true,
38 sdk_version: "24",
39}
40
41// This module makes Vulkan headers available to vendor code that is
42// restricted to LLNDK dependencies.
43llndk_headers {
44 name: "vulkan_headers_llndk",
45 export_include_dirs: ["include"],
46}
47
48// This module makes the Vulkan libhardware HAL headers available, for
49// the loader and for HAL/driver implementations.
50cc_library_headers {
51 name: "hwvulkan_headers",
Dan Willemsenf74a0a52017-04-07 14:14:08 -070052 vendor_available: true,
Steven Moreland54409a32017-07-17 11:49:21 -070053 header_libs: [
54 "libcutils_headers",
55 "libhardware_headers",
56 ],
57 export_header_lib_headers: [
58 "libcutils_headers",
59 "libhardware_headers",
60 ],
61 export_include_dirs: ["include"],
Colin Cross7884c192016-12-05 13:26:22 -080062}
63
Dan Albert0fbb5322016-10-04 17:49:33 -070064subdirs = [
Colin Cross7884c192016-12-05 13:26:22 -080065 "nulldrv",
Dan Albert0fbb5322016-10-04 17:49:33 -070066 "libvulkan",
Colin Cross7884c192016-12-05 13:26:22 -080067 "tools",
Yiwei Zhangf9a57e62018-04-05 00:17:22 -070068 "vkjson",
Dan Albert0fbb5322016-10-04 17:49:33 -070069]