1// 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 { 16 name: "libnativewindow_headers", 17 from: "include/android", 18 to: "android", 19 srcs: ["include/android/*.h"], 20 license: "NOTICE", 21} 22 23ndk_library { 24 name: "libnativewindow", 25 symbol_file: "libnativewindow.map.txt", 26 27 // Android O 28 first_version: "26", 29} 30 31cc_library { 32 name: "libnativewindow", 33 export_include_dirs: [ 34 "include", 35 "include-private", 36 ], 37 38 clang: true, 39 40 cflags: [ 41 "-Wall", 42 "-Werror", 43 "-Wno-unused-function", 44 ], 45 46 cppflags: [ 47 "-std=c++1z" 48 ], 49 50 version_script: "libnativewindow.map.txt", 51 52 srcs: [ 53 "AHardwareBuffer.cpp", 54 "ANativeWindow.cpp", 55 ], 56 57 shared_libs: [ 58 "libhardware", 59 "libcutils", 60 "liblog", 61 "libutils", 62 "libui", 63 "android.hardware.graphics.common@1.1", 64 ], 65 66 static_libs: [ 67 "libarect", 68 "libgrallocusage", 69 ], 70 71 header_libs: [ 72 "libnativebase_headers", 73 ], 74 75 // headers we include in our public headers 76 export_static_lib_headers: [ 77 "libarect", 78 ], 79 80 export_header_lib_headers: [ 81 "libnativebase_headers", 82 ], 83} 84 85llndk_library { 86 name: "libnativewindow", 87 symbol_file: "libnativewindow.map.txt", 88 unversioned: true, 89 export_include_dirs: ["include"], 90} 91 92subdirs = ["tests"] 93