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 | b9d7b81 | 2019-04-12 16:05:37 -0700 | [diff] [blame] | 15 | // Headers module is in external/vulkan-headers/Android.bp. |
Dan Albert | 0fbb532 | 2016-10-04 17:49:33 -0700 | [diff] [blame] | 16 | ndk_library { |
Dan Willemsen | 219db6c | 2017-04-07 15:48:39 -0700 | [diff] [blame] | 17 | name: "libvulkan", |
Dan Albert | 0fbb532 | 2016-10-04 17:49:33 -0700 | [diff] [blame] | 18 | symbol_file: "libvulkan.map.txt", |
| 19 | first_version: "24", |
Dan Albert | b9c62a6 | 2017-01-05 15:58:50 -0800 | [diff] [blame] | 20 | unversioned_until: "current", |
Dan Albert | 0fbb532 | 2016-10-04 17:49:33 -0700 | [diff] [blame] | 21 | } |
Colin Cross | 7884c19 | 2016-12-05 13:26:22 -0800 | [diff] [blame] | 22 | |
Jesse Hall | 408eda0 | 2019-04-12 15:39:16 -0700 | [diff] [blame] | 23 | llndk_library { |
| 24 | name: "libvulkan", |
| 25 | symbol_file: "libvulkan.map.txt", |
| 26 | export_llndk_headers: [ |
| 27 | "vulkan_headers_llndk", |
| 28 | ], |
| 29 | } |
| 30 | |
Colin Cross | 7884c19 | 2016-12-05 13:26:22 -0800 | [diff] [blame] | 31 | cc_library_shared { |
| 32 | name: "libvulkan", |
| 33 | clang: true, |
| 34 | sanitize: { |
| 35 | misc_undefined: ["integer"], |
| 36 | }, |
| 37 | |
| 38 | cflags: [ |
| 39 | "-DLOG_TAG=\"vulkan\"", |
| 40 | "-DVK_USE_PLATFORM_ANDROID_KHR", |
| 41 | "-DVK_NO_PROTOTYPES", |
| 42 | "-fvisibility=hidden", |
| 43 | "-fstrict-aliasing", |
Colin Cross | 1383d9f | 2019-11-06 13:33:40 -0800 | [diff] [blame] | 44 | "-Wextra", |
Colin Cross | 7884c19 | 2016-12-05 13:26:22 -0800 | [diff] [blame] | 45 | "-Werror", |
| 46 | "-Wno-padded", |
Colin Cross | 1383d9f | 2019-11-06 13:33:40 -0800 | [diff] [blame] | 47 | "-Wno-sign-compare", |
Colin Cross | 7884c19 | 2016-12-05 13:26:22 -0800 | [diff] [blame] | 48 | "-Wno-switch-enum", |
Colin Cross | 1383d9f | 2019-11-06 13:33:40 -0800 | [diff] [blame] | 49 | "-Wno-unused-variable", |
| 50 | "-Wno-unused-function", |
Colin Cross | 7884c19 | 2016-12-05 13:26:22 -0800 | [diff] [blame] | 51 | |
dimitry | a7cc50d | 2018-12-10 17:06:07 +0100 | [diff] [blame] | 52 | // Have clang emit complete debug_info. |
| 53 | "-fstandalone-debug", |
| 54 | |
Colin Cross | 7884c19 | 2016-12-05 13:26:22 -0800 | [diff] [blame] | 55 | //"-DLOG_NDEBUG=0", |
| 56 | ], |
| 57 | |
| 58 | cppflags: [ |
Colin Cross | 7884c19 | 2016-12-05 13:26:22 -0800 | [diff] [blame] | 59 | "-Wno-c99-extensions", |
| 60 | "-Wno-c++98-compat-pedantic", |
| 61 | "-Wno-exit-time-destructors", |
Dan Stoza | 71bded5 | 2016-10-19 11:10:33 -0700 | [diff] [blame] | 62 | "-Wno-float-equal", |
Colin Cross | 7884c19 | 2016-12-05 13:26:22 -0800 | [diff] [blame] | 63 | "-Wno-global-constructors", |
| 64 | "-Wno-zero-length-array", |
| 65 | ], |
| 66 | |
| 67 | srcs: [ |
| 68 | "api.cpp", |
| 69 | "api_gen.cpp", |
| 70 | "debug_report.cpp", |
| 71 | "driver.cpp", |
| 72 | "driver_gen.cpp", |
| 73 | "layers_extensions.cpp", |
| 74 | "stubhal.cpp", |
| 75 | "swapchain.cpp", |
Colin Cross | 7884c19 | 2016-12-05 13:26:22 -0800 | [diff] [blame] | 76 | ], |
| 77 | |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 78 | header_libs: [ |
Jesse Hall | 408eda0 | 2019-04-12 15:39:16 -0700 | [diff] [blame] | 79 | "hwvulkan_headers", |
Paul Duffin | 0802618 | 2019-09-12 15:01:28 +0100 | [diff] [blame] | 80 | "libnativeloader-headers", |
Colin Cross | 7884c19 | 2016-12-05 13:26:22 -0800 | [diff] [blame] | 81 | "vulkan_headers", |
Sundong Ahn | bc37dd5 | 2020-04-23 21:21:00 +0900 | [diff] [blame] | 82 | "libsurfaceflinger_headers", |
Colin Cross | 7884c19 | 2016-12-05 13:26:22 -0800 | [diff] [blame] | 83 | ], |
Jesse Hall | 408eda0 | 2019-04-12 15:39:16 -0700 | [diff] [blame] | 84 | export_header_lib_headers: ["vulkan_headers"], |
Colin Cross | 7884c19 | 2016-12-05 13:26:22 -0800 | [diff] [blame] | 85 | shared_libs: [ |
Courtney Goeltzenleuchter | 7671d46 | 2018-01-24 11:51:01 -0800 | [diff] [blame] | 86 | "android.hardware.configstore@1.0", |
| 87 | "android.hardware.configstore-utils", |
Jaekyun Seok | d56dec8 | 2016-11-25 16:20:40 +0900 | [diff] [blame] | 88 | "libziparchive", |
Colin Cross | 7884c19 | 2016-12-05 13:26:22 -0800 | [diff] [blame] | 89 | "libhardware", |
| 90 | "libsync", |
| 91 | "libbase", |
dimitry | 4fdaa43 | 2019-03-19 12:29:27 +0100 | [diff] [blame] | 92 | "libdl_android", |
Courtney Goeltzenleuchter | 7671d46 | 2018-01-24 11:51:01 -0800 | [diff] [blame] | 93 | "libhidlbase", |
Colin Cross | 7884c19 | 2016-12-05 13:26:22 -0800 | [diff] [blame] | 94 | "liblog", |
Mathias Agopian | 991d254 | 2017-02-06 13:51:32 -0800 | [diff] [blame] | 95 | "libui", |
Jiyong Park | 27c39e1 | 2017-05-08 13:00:02 +0900 | [diff] [blame] | 96 | "libgraphicsenv", |
Colin Cross | 7884c19 | 2016-12-05 13:26:22 -0800 | [diff] [blame] | 97 | "libutils", |
| 98 | "libcutils", |
| 99 | "libz", |
Jiyong Park | 2d81f3c | 2019-01-29 00:36:19 +0900 | [diff] [blame] | 100 | "libnativebridge_lazy", |
| 101 | "libnativeloader_lazy", |
Brian Anderson | dc96fdf | 2017-03-20 16:54:25 -0700 | [diff] [blame] | 102 | "libnativewindow", |
Daniel Koch | f25f5bb | 2017-10-05 00:26:58 -0400 | [diff] [blame] | 103 | "android.hardware.graphics.common@1.0", |
Sundong Ahn | bc37dd5 | 2020-04-23 21:21:00 +0900 | [diff] [blame] | 104 | "libSurfaceFlingerProp", |
Colin Cross | 7884c19 | 2016-12-05 13:26:22 -0800 | [diff] [blame] | 105 | ], |
Jesse Hall | 7992781 | 2017-03-23 11:03:23 -0700 | [diff] [blame] | 106 | static_libs: ["libgrallocusage"], |
Colin Cross | 7884c19 | 2016-12-05 13:26:22 -0800 | [diff] [blame] | 107 | } |