blob: 647fe867acf96ff2bdfb6bbb46000b5c38b6755d [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"],
27 vendor_available: false,
28}
29
Mathias Agopian4a67a5f2017-02-28 17:00:29 -080030ndk_library {
Steven Moreland86444092017-04-10 12:56:54 -070031 name: "libnativewindow",
Mathias Agopian4a67a5f2017-02-28 17:00:29 -080032 symbol_file: "libnativewindow.map.txt",
33
34 // Android O
35 first_version: "26",
36}
37
Mathias Agopian89ed4c82017-02-09 18:48:34 -080038cc_library {
39 name: "libnativewindow",
Justin Yunab66edc2017-11-28 16:54:21 +090040 export_include_dirs: [
41 "include",
42 "include-private",
43 ],
Mathias Agopian89ed4c82017-02-09 18:48:34 -080044
45 clang: true,
46
Chih-Hung Hsieh6e367252017-10-05 14:23:38 -070047 cflags: [
48 "-Wall",
49 "-Werror",
50 "-Wno-unused-function",
51 ],
52
Jesse Hall09932ec2017-03-13 11:36:05 -070053 cppflags: [
54 "-std=c++1z"
55 ],
56
dimitryb9fdddb2017-11-21 18:24:36 +010057 version_script: "libnativewindow.map.txt",
58
Mathias Agopian89ed4c82017-02-09 18:48:34 -080059 srcs: [
60 "AHardwareBuffer.cpp",
61 "ANativeWindow.cpp",
62 ],
63
64 shared_libs: [
65 "libhardware",
66 "libcutils",
67 "liblog",
68 "libutils",
69 "libui",
Craig Donnere6ecb922017-12-27 14:59:29 -080070 "android.hardware.graphics.common@1.1",
Mathias Agopian89ed4c82017-02-09 18:48:34 -080071 ],
72
73 static_libs: [
74 "libarect",
Jesse Hall79927812017-03-23 11:03:23 -070075 "libgrallocusage",
Mathias Agopian89ed4c82017-02-09 18:48:34 -080076 ],
77
Mathias Agopian6a3c05b2017-04-27 20:06:55 -070078 header_libs: [
79 "libnativebase_headers",
Fan Xub2b9dd72018-10-26 15:24:11 -070080 "libnativewindow_headers",
Mathias Agopian6a3c05b2017-04-27 20:06:55 -070081 ],
82
Mathias Agopian89ed4c82017-02-09 18:48:34 -080083 // headers we include in our public headers
84 export_static_lib_headers: [
85 "libarect",
86 ],
Mathias Agopian6a3c05b2017-04-27 20:06:55 -070087
88 export_header_lib_headers: [
89 "libnativebase_headers",
90 ],
Mathias Agopian89ed4c82017-02-09 18:48:34 -080091}
Craig Donnera5a719e2017-02-24 16:02:08 -080092
Jiyong Park73ac4192017-04-28 20:20:33 +090093llndk_library {
94 name: "libnativewindow",
Jiyong Park8ebc0722017-05-03 11:33:18 +090095 symbol_file: "libnativewindow.map.txt",
Jiyong Park73ac4192017-04-28 20:20:33 +090096 unversioned: true,
97 export_include_dirs: ["include"],
98}
99
Craig Donnera5a719e2017-02-24 16:02:08 -0800100subdirs = ["tests"]