blob: 9c5f0963e3874331840ccc8b23456705cb3ba959 [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 {
24 name: "libnativewindow.ndk",
25 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
37 srcs: [
38 "AHardwareBuffer.cpp",
39 "ANativeWindow.cpp",
40 ],
41
42 shared_libs: [
43 "libhardware",
44 "libcutils",
45 "liblog",
46 "libutils",
47 "libui",
48 ],
49
50 static_libs: [
51 "libarect",
52 ],
53
54 // headers we include in our public headers
55 export_static_lib_headers: [
56 "libarect",
57 ],
58}
Craig Donnera5a719e2017-02-24 16:02:08 -080059
60subdirs = ["tests"]