blob: 3011dccf1e2e0c3fde37d959ba207bf838df17e5 [file] [log] [blame]
Mathias Agopian89ed4c82017-02-09 18:48:34 -08001// Copyright (C) 2017 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
15ndk_headers {
Fan Xub2b9dd72018-10-26 15:24:11 -070016 name: "libnativewindow_ndk_headers",
Mathias Agopian89ed4c82017-02-09 18:48:34 -080017 from: "include/android",
18 to: "android",
19 srcs: ["include/android/*.h"],
20 license: "NOTICE",
21}
22
Fan Xub2b9dd72018-10-26 15:24:11 -070023// TODO(b/118715870): cleanup header files
24cc_library_headers {
25 name: "libnativewindow_headers",
26 export_include_dirs: ["include"],
Pawin Vongmasae672cd02019-02-14 16:01:29 -080027 vendor_available: true,
Victor Khimenkob7322fc2020-06-16 01:01:15 +020028 // TODO(b/153609531): remove when no longer needed.
29 native_bridge_supported: true,
Jooyung Hana395c8d2020-04-16 18:48:32 +090030 min_sdk_version: "29",
Leon Scroggins IIIc1f093f2021-01-08 14:25:31 -050031 host_supported: true,
Fan Xub2b9dd72018-10-26 15:24:11 -070032}
33
Mathias Agopian4a67a5f2017-02-28 17:00:29 -080034ndk_library {
Steven Moreland86444092017-04-10 12:56:54 -070035 name: "libnativewindow",
Mathias Agopian4a67a5f2017-02-28 17:00:29 -080036 symbol_file: "libnativewindow.map.txt",
37
38 // Android O
39 first_version: "26",
40}
41
Mathias Agopian89ed4c82017-02-09 18:48:34 -080042cc_library {
43 name: "libnativewindow",
Colin Cross8af6d1c2020-10-19 13:38:00 -070044 llndk_stubs: "libnativewindow.llndk",
Justin Yunab66edc2017-11-28 16:54:21 +090045 export_include_dirs: [
46 "include",
47 "include-private",
48 ],
Mathias Agopian89ed4c82017-02-09 18:48:34 -080049
50 clang: true,
51
Chih-Hung Hsieh6e367252017-10-05 14:23:38 -070052 cflags: [
53 "-Wall",
54 "-Werror",
Krzysztof KosiƄski7a2bcc52018-11-09 20:25:52 -080055 "-Wno-enum-compare",
Chih-Hung Hsieh6e367252017-10-05 14:23:38 -070056 "-Wno-unused-function",
57 ],
58
dimitryb9fdddb2017-11-21 18:24:36 +010059 version_script: "libnativewindow.map.txt",
60
Mathias Agopian89ed4c82017-02-09 18:48:34 -080061 srcs: [
62 "AHardwareBuffer.cpp",
63 "ANativeWindow.cpp",
64 ],
65
66 shared_libs: [
Mathias Agopian89ed4c82017-02-09 18:48:34 -080067 "libcutils",
68 "liblog",
69 "libutils",
70 "libui",
Craig Donnere6ecb922017-12-27 14:59:29 -080071 "android.hardware.graphics.common@1.1",
Mathias Agopian89ed4c82017-02-09 18:48:34 -080072 ],
73
74 static_libs: [
75 "libarect",
Jesse Hall79927812017-03-23 11:03:23 -070076 "libgrallocusage",
Mathias Agopian89ed4c82017-02-09 18:48:34 -080077 ],
78
Mathias Agopian6a3c05b2017-04-27 20:06:55 -070079 header_libs: [
80 "libnativebase_headers",
Fan Xub2b9dd72018-10-26 15:24:11 -070081 "libnativewindow_headers",
Mathias Agopian6a3c05b2017-04-27 20:06:55 -070082 ],
83
Mathias Agopian89ed4c82017-02-09 18:48:34 -080084 // headers we include in our public headers
85 export_static_lib_headers: [
86 "libarect",
87 ],
Mathias Agopian6a3c05b2017-04-27 20:06:55 -070088
89 export_header_lib_headers: [
90 "libnativebase_headers",
91 ],
Przemyslaw Szczepaniak7864fbc2019-11-14 16:05:43 +000092
93 stubs: {
94 symbol_file: "libnativewindow.map.txt",
95 versions: ["29"],
96 },
Mathias Agopian89ed4c82017-02-09 18:48:34 -080097}
Craig Donnera5a719e2017-02-24 16:02:08 -080098
Jiyong Park73ac4192017-04-28 20:20:33 +090099llndk_library {
Colin Cross8af6d1c2020-10-19 13:38:00 -0700100 name: "libnativewindow.llndk",
Jiyong Park8ebc0722017-05-03 11:33:18 +0900101 symbol_file: "libnativewindow.map.txt",
Jiyong Park73ac4192017-04-28 20:20:33 +0900102 unversioned: true,
103 export_include_dirs: ["include"],
104}
105
Craig Donnera5a719e2017-02-24 16:02:08 -0800106subdirs = ["tests"]