Dan Albert | 0fbb532 | 2016-10-04 17:49:33 -0700 | [diff] [blame] | 1 | // 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 Hall | 408eda0 | 2019-04-12 15:39:16 -0700 | [diff] [blame^] | 15 | // This module defines which headers are included in the NDK sysroot during |
| 16 | // the NDK build process. |
Dan Albert | 0fbb532 | 2016-10-04 17:49:33 -0700 | [diff] [blame] | 17 | ndk_headers { |
Jesse Hall | 408eda0 | 2019-04-12 15:39:16 -0700 | [diff] [blame^] | 18 | name: "ndk_vulkan_headers", |
Dan Albert | 0fbb532 | 2016-10-04 17:49:33 -0700 | [diff] [blame] | 19 | from: "include", |
| 20 | to: "", |
Dan Albert | e4d4b1c | 2017-03-14 14:22:05 -0700 | [diff] [blame] | 21 | srcs: [ |
| 22 | "include/vulkan/vk_platform.h", |
| 23 | "include/vulkan/vulkan.h", |
Jesse Hall | 35b4de1 | 2018-01-17 22:06:20 -0800 | [diff] [blame] | 24 | "include/vulkan/vulkan_core.h", |
| 25 | "include/vulkan/vulkan_android.h", |
Dan Albert | e4d4b1c | 2017-03-14 14:22:05 -0700 | [diff] [blame] | 26 | ], |
Dan Albert | 96b5509 | 2016-10-20 10:14:30 -0700 | [diff] [blame] | 27 | license: "include/vulkan/NOTICE", |
Dan Albert | 0fbb532 | 2016-10-04 17:49:33 -0700 | [diff] [blame] | 28 | } |
| 29 | |
Jesse Hall | 408eda0 | 2019-04-12 15:39:16 -0700 | [diff] [blame^] | 30 | // 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 Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 34 | cc_library_headers { |
Colin Cross | 7884c19 | 2016-12-05 13:26:22 -0800 | [diff] [blame] | 35 | name: "vulkan_headers", |
Jesse Hall | 408eda0 | 2019-04-12 15:39:16 -0700 | [diff] [blame^] | 36 | 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. |
| 43 | llndk_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. |
| 50 | cc_library_headers { |
| 51 | name: "hwvulkan_headers", |
Dan Willemsen | f74a0a5 | 2017-04-07 14:14:08 -0700 | [diff] [blame] | 52 | vendor_available: true, |
Steven Moreland | 54409a3 | 2017-07-17 11:49:21 -0700 | [diff] [blame] | 53 | 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 Cross | 7884c19 | 2016-12-05 13:26:22 -0800 | [diff] [blame] | 62 | } |
| 63 | |
Dan Albert | 0fbb532 | 2016-10-04 17:49:33 -0700 | [diff] [blame] | 64 | subdirs = [ |
Colin Cross | 7884c19 | 2016-12-05 13:26:22 -0800 | [diff] [blame] | 65 | "nulldrv", |
Dan Albert | 0fbb532 | 2016-10-04 17:49:33 -0700 | [diff] [blame] | 66 | "libvulkan", |
Colin Cross | 7884c19 | 2016-12-05 13:26:22 -0800 | [diff] [blame] | 67 | "tools", |
Yiwei Zhang | f9a57e6 | 2018-04-05 00:17:22 -0700 | [diff] [blame] | 68 | "vkjson", |
Dan Albert | 0fbb532 | 2016-10-04 17:49:33 -0700 | [diff] [blame] | 69 | ] |