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