blob: d0e4161d0420dc768222970f3a94c0b29e8f87aa [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
23cc_library {
24 name: "libnativewindow",
25 export_include_dirs: ["include"],
26
27 clang: true,
28
29 srcs: [
30 "AHardwareBuffer.cpp",
31 "ANativeWindow.cpp",
32 ],
33
34 shared_libs: [
35 "libhardware",
36 "libcutils",
37 "liblog",
38 "libutils",
39 "libui",
40 ],
41
42 static_libs: [
43 "libarect",
44 ],
45
46 // headers we include in our public headers
47 export_static_lib_headers: [
48 "libarect",
49 ],
50}
Craig Donnera5a719e2017-02-24 16:02:08 -080051
52subdirs = ["tests"]