blob: 993b751747413dae3c8a5fb85d37d79195ff318f [file] [log] [blame]
Dan Albert0fbb5322016-10-04 17:49:33 -07001// 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 Hallc6882b482019-04-12 16:05:37 -070015// Headers module is in external/vulkan-headers/Android.bp.
Dan Albert0fbb5322016-10-04 17:49:33 -070016ndk_library {
Dan Willemsen219db6c2017-04-07 15:48:39 -070017 name: "libvulkan",
Dan Albert0fbb5322016-10-04 17:49:33 -070018 symbol_file: "libvulkan.map.txt",
19 first_version: "24",
Dan Albertb9c62a62017-01-05 15:58:50 -080020 unversioned_until: "current",
Dan Albert0fbb5322016-10-04 17:49:33 -070021}
Colin Cross7884c192016-12-05 13:26:22 -080022
Jesse Hallc3d6de22019-04-12 15:39:16 -070023llndk_library {
24 name: "libvulkan",
25 symbol_file: "libvulkan.map.txt",
26 export_llndk_headers: [
27 "vulkan_headers_llndk",
28 ],
29}
30
Colin Cross7884c192016-12-05 13:26:22 -080031cc_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",
44 "-Weverything",
45 "-Werror",
46 "-Wno-padded",
47 "-Wno-switch-enum",
48 "-Wno-undef",
49
dimitrya7cc50d2018-12-10 17:06:07 +010050 // Have clang emit complete debug_info.
51 "-fstandalone-debug",
52
Colin Cross7884c192016-12-05 13:26:22 -080053 //"-DLOG_NDEBUG=0",
54 ],
55
56 cppflags: [
Colin Cross7884c192016-12-05 13:26:22 -080057 "-Wno-c99-extensions",
58 "-Wno-c++98-compat-pedantic",
59 "-Wno-exit-time-destructors",
Dan Stoza71bded52016-10-19 11:10:33 -070060 "-Wno-float-equal",
Colin Cross7884c192016-12-05 13:26:22 -080061 "-Wno-global-constructors",
62 "-Wno-zero-length-array",
63 ],
64
65 srcs: [
66 "api.cpp",
67 "api_gen.cpp",
68 "debug_report.cpp",
69 "driver.cpp",
70 "driver_gen.cpp",
71 "layers_extensions.cpp",
72 "stubhal.cpp",
73 "swapchain.cpp",
Colin Cross7884c192016-12-05 13:26:22 -080074 ],
75
Stephen Kiazyke77dce22017-03-14 15:38:12 -070076 header_libs: [
Jesse Hallc3d6de22019-04-12 15:39:16 -070077 "hwvulkan_headers",
Colin Cross7884c192016-12-05 13:26:22 -080078 "vulkan_headers",
Colin Cross7884c192016-12-05 13:26:22 -080079 ],
Jesse Hallc3d6de22019-04-12 15:39:16 -070080 export_header_lib_headers: ["vulkan_headers"],
Colin Cross7884c192016-12-05 13:26:22 -080081 shared_libs: [
Courtney Goeltzenleuchter7671d462018-01-24 11:51:01 -080082 "android.hardware.configstore@1.0",
83 "android.hardware.configstore-utils",
Jaekyun Seokd56dec82016-11-25 16:20:40 +090084 "libziparchive",
Colin Cross7884c192016-12-05 13:26:22 -080085 "libhardware",
86 "libsync",
87 "libbase",
dimitry6d235292019-03-19 12:29:27 +010088 "libdl_android",
Courtney Goeltzenleuchter7671d462018-01-24 11:51:01 -080089 "libhidlbase",
90 "libhidltransport",
Colin Cross7884c192016-12-05 13:26:22 -080091 "liblog",
Mathias Agopian991d2542017-02-06 13:51:32 -080092 "libui",
Jiyong Park27c39e12017-05-08 13:00:02 +090093 "libgraphicsenv",
Colin Cross7884c192016-12-05 13:26:22 -080094 "libutils",
95 "libcutils",
96 "libz",
Jiyong Park2d81f3c2019-01-29 00:36:19 +090097 "libnativebridge_lazy",
98 "libnativeloader_lazy",
Brian Andersondc96fdf2017-03-20 16:54:25 -070099 "libnativewindow",
Daniel Kochf25f5bb2017-10-05 00:26:58 -0400100 "android.hardware.graphics.common@1.0",
Colin Cross7884c192016-12-05 13:26:22 -0800101 ],
Jesse Hall79927812017-03-23 11:03:23 -0700102 static_libs: ["libgrallocusage"],
Colin Cross7884c192016-12-05 13:26:22 -0800103}