blob: f1c4c83a61d68f60423e9ecabba6442f99e8339a [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 {
17 name: "libvulkan.ndk",
18 symbol_file: "libvulkan.map.txt",
19 first_version: "24",
20}
Colin Cross7884c192016-12-05 13:26:22 -080021
22cc_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",
Dan Stoza71bded52016-10-19 11:10:33 -070049 "-Wno-float-equal",
Colin Cross7884c192016-12-05 13:26:22 -080050 "-Wno-global-constructors",
51 "-Wno-zero-length-array",
52 ],
53
54 srcs: [
55 "api.cpp",
56 "api_gen.cpp",
57 "debug_report.cpp",
58 "driver.cpp",
59 "driver_gen.cpp",
60 "layers_extensions.cpp",
61 "stubhal.cpp",
62 "swapchain.cpp",
63 "vulkan_loader_data.cpp",
64 ],
65
66 export_static_lib_headers: ["vulkan_headers"],
67 static_libs: [
68 "vulkan_headers",
Colin Cross7884c192016-12-05 13:26:22 -080069 ],
70 shared_libs: [
Jaekyun Seokd56dec82016-11-25 16:20:40 +090071 "libziparchive",
Colin Cross7884c192016-12-05 13:26:22 -080072 "libhardware",
73 "libsync",
74 "libbase",
75 "liblog",
76 "libutils",
77 "libcutils",
78 "libz",
79 ],
80}