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 | |
| 15 | // Headers module is in frameworks/native/vulkan/Android.bp. |
| 16 | ndk_library { |
| 17 | name: "libvulkan.ndk", |
| 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 | |
| 23 | cc_library_shared { |
| 24 | name: "libvulkan", |
| 25 | clang: true, |
| 26 | sanitize: { |
| 27 | misc_undefined: ["integer"], |
| 28 | }, |
| 29 | |
| 30 | cflags: [ |
| 31 | "-DLOG_TAG=\"vulkan\"", |
| 32 | "-DVK_USE_PLATFORM_ANDROID_KHR", |
| 33 | "-DVK_NO_PROTOTYPES", |
| 34 | "-fvisibility=hidden", |
| 35 | "-fstrict-aliasing", |
| 36 | "-Weverything", |
| 37 | "-Werror", |
| 38 | "-Wno-padded", |
| 39 | "-Wno-switch-enum", |
| 40 | "-Wno-undef", |
| 41 | |
| 42 | //"-DLOG_NDEBUG=0", |
| 43 | ], |
| 44 | |
| 45 | cppflags: [ |
| 46 | "-std=c++14", |
| 47 | "-Wno-c99-extensions", |
| 48 | "-Wno-c++98-compat-pedantic", |
| 49 | "-Wno-exit-time-destructors", |
Dan Stoza | 71bded5 | 2016-10-19 11:10:33 -0700 | [diff] [blame] | 50 | "-Wno-float-equal", |
Colin Cross | 7884c19 | 2016-12-05 13:26:22 -0800 | [diff] [blame] | 51 | "-Wno-global-constructors", |
| 52 | "-Wno-zero-length-array", |
| 53 | ], |
| 54 | |
| 55 | srcs: [ |
| 56 | "api.cpp", |
| 57 | "api_gen.cpp", |
| 58 | "debug_report.cpp", |
| 59 | "driver.cpp", |
| 60 | "driver_gen.cpp", |
| 61 | "layers_extensions.cpp", |
| 62 | "stubhal.cpp", |
| 63 | "swapchain.cpp", |
| 64 | "vulkan_loader_data.cpp", |
| 65 | ], |
| 66 | |
| 67 | export_static_lib_headers: ["vulkan_headers"], |
| 68 | static_libs: [ |
| 69 | "vulkan_headers", |
Colin Cross | 7884c19 | 2016-12-05 13:26:22 -0800 | [diff] [blame] | 70 | ], |
| 71 | shared_libs: [ |
Jaekyun Seok | d56dec8 | 2016-11-25 16:20:40 +0900 | [diff] [blame] | 72 | "libziparchive", |
Colin Cross | 7884c19 | 2016-12-05 13:26:22 -0800 | [diff] [blame] | 73 | "libhardware", |
| 74 | "libsync", |
| 75 | "libbase", |
| 76 | "liblog", |
Mathias Agopian | 991d254 | 2017-02-06 13:51:32 -0800 | [diff] [blame] | 77 | "libui", |
Colin Cross | 7884c19 | 2016-12-05 13:26:22 -0800 | [diff] [blame] | 78 | "libutils", |
| 79 | "libcutils", |
| 80 | "libz", |
| 81 | ], |
| 82 | } |