blob: 64eb11019887220c7b83bd6304a3e6629e46eadd [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 {
Craig Donnera5a719e2017-02-24 16:02:08 -080016 name: "libnativewindow_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
Mathias Agopian4a67a5f2017-02-28 17:00:29 -080023ndk_library {
Steven Moreland86444092017-04-10 12:56:54 -070024 name: "libnativewindow",
Mathias Agopian4a67a5f2017-02-28 17:00:29 -080025 symbol_file: "libnativewindow.map.txt",
26
27 // Android O
28 first_version: "26",
29}
30
Mathias Agopian89ed4c82017-02-09 18:48:34 -080031cc_library {
32 name: "libnativewindow",
33 export_include_dirs: ["include"],
34
35 clang: true,
36
Chih-Hung Hsieh6e367252017-10-05 14:23:38 -070037 cflags: [
38 "-Wall",
39 "-Werror",
40 "-Wno-unused-function",
41 ],
42
Jesse Hall09932ec2017-03-13 11:36:05 -070043 cppflags: [
44 "-std=c++1z"
45 ],
46
Mathias Agopian89ed4c82017-02-09 18:48:34 -080047 srcs: [
48 "AHardwareBuffer.cpp",
49 "ANativeWindow.cpp",
50 ],
51
52 shared_libs: [
53 "libhardware",
54 "libcutils",
55 "liblog",
56 "libutils",
57 "libui",
Mathias Agopian2c38b562017-04-20 16:35:39 -070058 "android.hardware.graphics.common@1.0",
Mathias Agopian89ed4c82017-02-09 18:48:34 -080059 ],
60
61 static_libs: [
62 "libarect",
Jesse Hall79927812017-03-23 11:03:23 -070063 "libgrallocusage",
Mathias Agopian89ed4c82017-02-09 18:48:34 -080064 ],
65
Mathias Agopian6a3c05b2017-04-27 20:06:55 -070066 header_libs: [
67 "libnativebase_headers",
68 ],
69
Mathias Agopian89ed4c82017-02-09 18:48:34 -080070 // headers we include in our public headers
71 export_static_lib_headers: [
72 "libarect",
73 ],
Mathias Agopian6a3c05b2017-04-27 20:06:55 -070074
75 export_header_lib_headers: [
76 "libnativebase_headers",
77 ],
Mathias Agopian89ed4c82017-02-09 18:48:34 -080078}
Craig Donnera5a719e2017-02-24 16:02:08 -080079
Jiyong Park73ac4192017-04-28 20:20:33 +090080llndk_library {
81 name: "libnativewindow",
Jiyong Park8ebc0722017-05-03 11:33:18 +090082 symbol_file: "libnativewindow.map.txt",
Jiyong Park73ac4192017-04-28 20:20:33 +090083 unversioned: true,
84 export_include_dirs: ["include"],
85}
86
Craig Donnera5a719e2017-02-24 16:02:08 -080087subdirs = ["tests"]