Mike Schuchardt | c277ce5 | 2019-04-19 08:39:51 -0700 | [diff] [blame] | 1 | # Copyright (C) 2018-2019 The ANGLE Project Authors. |
| 2 | # Copyright (C) 2019 LunarG, Inc. |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # https://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | |
| 16 | config("vulkan_headers_config") { |
| 17 | include_dirs = [ "include" ] |
| 18 | |
| 19 | if (is_win) { |
| 20 | defines = [ "VK_USE_PLATFORM_WIN32_KHR" ] |
| 21 | } |
| 22 | if (is_linux) { |
| 23 | defines = [ "VK_USE_PLATFORM_XCB_KHR" ] |
| 24 | } |
| 25 | if (is_android) { |
| 26 | defines = [ "VK_USE_PLATFORM_ANDROID_KHR" ] |
| 27 | } |
| 28 | if (is_fuchsia) { |
| 29 | defines = [ "VK_USE_PLATFORM_FUCHSIA" ] |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | # Vulkan headers only, no compiled sources. |
| 34 | source_set("vulkan_headers") { |
| 35 | sources = [ |
| 36 | "include/vulkan/vk_icd.h", |
| 37 | "include/vulkan/vk_layer.h", |
| 38 | "include/vulkan/vk_platform.h", |
| 39 | "include/vulkan/vk_sdk_platform.h", |
| 40 | "include/vulkan/vulkan.h", |
| 41 | "include/vulkan/vulkan.hpp", |
| 42 | "include/vulkan/vulkan_core.h", |
| 43 | ] |
| 44 | public_configs = [ ":vulkan_headers_config" ] |
| 45 | } |
| 46 | |