blob: 206c8eb37936fa0aef0ff3e3922e95dea6c714e6 [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
15// Headers module is in frameworks/native/vulkan/Android.bp.
16ndk_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
23cc_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
dimitrya7cc50d2018-12-10 17:06:07 +010042 // Have clang emit complete debug_info.
43 "-fstandalone-debug",
44
Colin Cross7884c192016-12-05 13:26:22 -080045 //"-DLOG_NDEBUG=0",
46 ],
47
48 cppflags: [
Colin Cross7884c192016-12-05 13:26:22 -080049 "-Wno-c99-extensions",
50 "-Wno-c++98-compat-pedantic",
51 "-Wno-exit-time-destructors",
Dan Stoza71bded52016-10-19 11:10:33 -070052 "-Wno-float-equal",
Colin Cross7884c192016-12-05 13:26:22 -080053 "-Wno-global-constructors",
54 "-Wno-zero-length-array",
55 ],
56
57 srcs: [
58 "api.cpp",
59 "api_gen.cpp",
60 "debug_report.cpp",
61 "driver.cpp",
62 "driver_gen.cpp",
63 "layers_extensions.cpp",
64 "stubhal.cpp",
65 "swapchain.cpp",
Colin Cross7884c192016-12-05 13:26:22 -080066 ],
67
Stephen Kiazyke77dce22017-03-14 15:38:12 -070068 export_header_lib_headers: ["vulkan_headers"],
69 header_libs: [
Colin Cross7884c192016-12-05 13:26:22 -080070 "vulkan_headers",
Colin Cross7884c192016-12-05 13:26:22 -080071 ],
72 shared_libs: [
Courtney Goeltzenleuchter7671d462018-01-24 11:51:01 -080073 "android.hardware.configstore@1.0",
74 "android.hardware.configstore-utils",
Jaekyun Seokd56dec82016-11-25 16:20:40 +090075 "libziparchive",
Colin Cross7884c192016-12-05 13:26:22 -080076 "libhardware",
77 "libsync",
78 "libbase",
Courtney Goeltzenleuchter7671d462018-01-24 11:51:01 -080079 "libhidlbase",
80 "libhidltransport",
Colin Cross7884c192016-12-05 13:26:22 -080081 "liblog",
Mathias Agopian991d2542017-02-06 13:51:32 -080082 "libui",
Jiyong Park27c39e12017-05-08 13:00:02 +090083 "libgraphicsenv",
Colin Cross7884c192016-12-05 13:26:22 -080084 "libutils",
85 "libcutils",
86 "libz",
Jiyong Park2d81f3c2019-01-29 00:36:19 +090087 "libnativebridge_lazy",
88 "libnativeloader_lazy",
Brian Andersondc96fdf2017-03-20 16:54:25 -070089 "libnativewindow",
Daniel Kochf25f5bb2017-10-05 00:26:58 -040090 "android.hardware.graphics.common@1.0",
Colin Cross7884c192016-12-05 13:26:22 -080091 ],
Jesse Hall79927812017-03-23 11:03:23 -070092 static_libs: ["libgrallocusage"],
Colin Cross7884c192016-12-05 13:26:22 -080093}