1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
// Copyright (C) 2016 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Headers module is in external/vulkan-headers/Android.bp.
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "frameworks_native_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["frameworks_native_license"],
}
ndk_library {
name: "libvulkan",
symbol_file: "libvulkan.map.txt",
first_version: "24",
unversioned_until: "current",
}
cc_library_shared {
name: "libvulkan",
llndk: {
symbol_file: "libvulkan.map.txt",
export_llndk_headers: [
"vulkan_headers",
],
},
clang: true,
sanitize: {
misc_undefined: ["integer"],
},
cflags: [
"-DLOG_TAG=\"vulkan\"",
"-DVK_USE_PLATFORM_ANDROID_KHR",
"-DVK_NO_PROTOTYPES",
"-fvisibility=hidden",
"-fstrict-aliasing",
"-Wextra",
"-Werror",
"-Wno-padded",
"-Wno-sign-compare",
"-Wno-switch-enum",
"-Wno-unused-variable",
"-Wno-unused-function",
// Have clang emit complete debug_info.
"-fstandalone-debug",
//"-DLOG_NDEBUG=0",
],
cppflags: [
"-Wno-c99-extensions",
"-Wno-c++98-compat-pedantic",
"-Wno-exit-time-destructors",
"-Wno-float-equal",
"-Wno-global-constructors",
"-Wno-zero-length-array",
],
srcs: [
"api.cpp",
"api_gen.cpp",
"debug_report.cpp",
"driver.cpp",
"driver_gen.cpp",
"layers_extensions.cpp",
"stubhal.cpp",
"swapchain.cpp",
],
header_libs: [
"hwvulkan_headers",
"libnativeloader-headers",
"vulkan_headers",
"libsurfaceflinger_headers",
],
export_header_lib_headers: ["vulkan_headers"],
shared_libs: [
"android.hardware.configstore@1.0",
"android.hardware.configstore-utils",
"libziparchive",
"libhardware",
"libsync",
"libbase",
"libhidlbase",
"liblog",
"libui",
"libgraphicsenv",
"libutils",
"libcutils",
"libz",
"libnativebridge_lazy",
"libnativeloader_lazy",
"libnativewindow",
"libvndksupport",
"android.hardware.graphics.common@1.0",
"libSurfaceFlingerProp",
],
static_libs: ["libgrallocusage"],
}
|