blob: 8675439938b0e572dea57bc396e03b3c5e6db483 [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
Bob Badour3c538232021-02-12 21:26:48 -080015package {
16 default_applicable_licenses: [
17 "frameworks_native_libs_nativewindow_license",
18 ],
19}
20
21// Added automatically by a large-scale-change
22// See: http://go/android-license-faq
23license {
24 name: "frameworks_native_libs_nativewindow_license",
25 visibility: [":__subpackages__"],
26 license_kinds: [
27 "SPDX-license-identifier-Apache-2.0",
28 ],
29 license_text: [
30 "NOTICE",
31 ],
32}
33
Mathias Agopian89ed4c82017-02-09 18:48:34 -080034ndk_headers {
Fan Xub2b9dd72018-10-26 15:24:11 -070035 name: "libnativewindow_ndk_headers",
Mathias Agopian89ed4c82017-02-09 18:48:34 -080036 from: "include/android",
37 to: "android",
38 srcs: ["include/android/*.h"],
39 license: "NOTICE",
40}
41
Fan Xub2b9dd72018-10-26 15:24:11 -070042// TODO(b/118715870): cleanup header files
43cc_library_headers {
44 name: "libnativewindow_headers",
45 export_include_dirs: ["include"],
Pawin Vongmasae672cd02019-02-14 16:01:29 -080046 vendor_available: true,
Victor Khimenkob7322fc2020-06-16 01:01:15 +020047 // TODO(b/153609531): remove when no longer needed.
48 native_bridge_supported: true,
Jooyung Hana395c8d2020-04-16 18:48:32 +090049 min_sdk_version: "29",
Leon Scroggins IIIc1f093f2021-01-08 14:25:31 -050050 host_supported: true,
Fan Xub2b9dd72018-10-26 15:24:11 -070051}
52
Mathias Agopian4a67a5f2017-02-28 17:00:29 -080053ndk_library {
Steven Moreland86444092017-04-10 12:56:54 -070054 name: "libnativewindow",
Mathias Agopian4a67a5f2017-02-28 17:00:29 -080055 symbol_file: "libnativewindow.map.txt",
56
57 // Android O
58 first_version: "26",
59}
60
Mathias Agopian89ed4c82017-02-09 18:48:34 -080061cc_library {
62 name: "libnativewindow",
Colin Cross8af6d1c2020-10-19 13:38:00 -070063 llndk_stubs: "libnativewindow.llndk",
Justin Yunab66edc2017-11-28 16:54:21 +090064 export_include_dirs: [
65 "include",
66 "include-private",
67 ],
Mathias Agopian89ed4c82017-02-09 18:48:34 -080068
69 clang: true,
70
Chih-Hung Hsieh6e367252017-10-05 14:23:38 -070071 cflags: [
72 "-Wall",
73 "-Werror",
Krzysztof KosiƄski7a2bcc52018-11-09 20:25:52 -080074 "-Wno-enum-compare",
Chih-Hung Hsieh6e367252017-10-05 14:23:38 -070075 "-Wno-unused-function",
76 ],
77
dimitryb9fdddb2017-11-21 18:24:36 +010078 version_script: "libnativewindow.map.txt",
79
Mathias Agopian89ed4c82017-02-09 18:48:34 -080080 srcs: [
81 "AHardwareBuffer.cpp",
82 "ANativeWindow.cpp",
83 ],
84
85 shared_libs: [
Mathias Agopian89ed4c82017-02-09 18:48:34 -080086 "libcutils",
87 "liblog",
88 "libutils",
89 "libui",
Craig Donnere6ecb922017-12-27 14:59:29 -080090 "android.hardware.graphics.common@1.1",
Mathias Agopian89ed4c82017-02-09 18:48:34 -080091 ],
92
93 static_libs: [
94 "libarect",
Jesse Hall79927812017-03-23 11:03:23 -070095 "libgrallocusage",
Mathias Agopian89ed4c82017-02-09 18:48:34 -080096 ],
97
Mathias Agopian6a3c05b2017-04-27 20:06:55 -070098 header_libs: [
99 "libnativebase_headers",
Fan Xub2b9dd72018-10-26 15:24:11 -0700100 "libnativewindow_headers",
Mathias Agopian6a3c05b2017-04-27 20:06:55 -0700101 ],
102
Mathias Agopian89ed4c82017-02-09 18:48:34 -0800103 // headers we include in our public headers
104 export_static_lib_headers: [
105 "libarect",
106 ],
Mathias Agopian6a3c05b2017-04-27 20:06:55 -0700107
108 export_header_lib_headers: [
109 "libnativebase_headers",
110 ],
Przemyslaw Szczepaniak7864fbc2019-11-14 16:05:43 +0000111
112 stubs: {
113 symbol_file: "libnativewindow.map.txt",
114 versions: ["29"],
115 },
Mathias Agopian89ed4c82017-02-09 18:48:34 -0800116}
Craig Donnera5a719e2017-02-24 16:02:08 -0800117
Jiyong Park73ac4192017-04-28 20:20:33 +0900118llndk_library {
Colin Cross8af6d1c2020-10-19 13:38:00 -0700119 name: "libnativewindow.llndk",
Jiyong Park8ebc0722017-05-03 11:33:18 +0900120 symbol_file: "libnativewindow.map.txt",
Jiyong Park73ac4192017-04-28 20:20:33 +0900121 unversioned: true,
122 export_include_dirs: ["include"],
123}
124
Craig Donnera5a719e2017-02-24 16:02:08 -0800125subdirs = ["tests"]