blob: bc0bfc52d584b66872ab3c43fb5ba1b00db450da [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",
Ray Essickeed53a02022-02-09 09:40:20 -080050 apex_available: [
51 "//apex_available:platform",
52 "com.android.media.swcodec",
53 "test_com.android.media.swcodec",
54 ],
Leon Scroggins IIIc1f093f2021-01-08 14:25:31 -050055 host_supported: true,
Fan Xub2b9dd72018-10-26 15:24:11 -070056}
57
Mathias Agopian4a67a5f2017-02-28 17:00:29 -080058ndk_library {
Steven Moreland86444092017-04-10 12:56:54 -070059 name: "libnativewindow",
Mathias Agopian4a67a5f2017-02-28 17:00:29 -080060 symbol_file: "libnativewindow.map.txt",
61
62 // Android O
63 first_version: "26",
Spandan Das0bddf152022-09-08 21:44:10 +000064 export_header_libs: [
65 "libnativewindow_ndk_headers",
66 ],
Mathias Agopian4a67a5f2017-02-28 17:00:29 -080067}
68
Mathias Agopian89ed4c82017-02-09 18:48:34 -080069cc_library {
70 name: "libnativewindow",
Colin Cross03943642021-04-21 16:47:25 -070071 llndk: {
72 symbol_file: "libnativewindow.map.txt",
73 unversioned: true,
74 override_export_include_dirs: [
Ray Essickeed53a02022-02-09 09:40:20 -080075 "include",
Colin Cross03943642021-04-21 16:47:25 -070076 ],
Spandan Das0bb757a2022-10-25 00:50:08 +000077 export_llndk_headers: [
78 "libarect_headers",
79 ],
Colin Cross03943642021-04-21 16:47:25 -070080 },
Justin Yunab66edc2017-11-28 16:54:21 +090081 export_include_dirs: [
82 "include",
83 "include-private",
84 ],
Mathias Agopian89ed4c82017-02-09 18:48:34 -080085
Chih-Hung Hsieh6e367252017-10-05 14:23:38 -070086 cflags: [
87 "-Wall",
88 "-Werror",
Krzysztof KosiƄski7a2bcc52018-11-09 20:25:52 -080089 "-Wno-enum-compare",
Chih-Hung Hsieh6e367252017-10-05 14:23:38 -070090 "-Wno-unused-function",
91 ],
92
dimitryb9fdddb2017-11-21 18:24:36 +010093 version_script: "libnativewindow.map.txt",
94
Mathias Agopian89ed4c82017-02-09 18:48:34 -080095 srcs: [
96 "AHardwareBuffer.cpp",
97 "ANativeWindow.cpp",
98 ],
99
100 shared_libs: [
Mathias Agopian89ed4c82017-02-09 18:48:34 -0800101 "libcutils",
102 "liblog",
103 "libutils",
104 "libui",
John Reck5c404f82022-08-24 10:50:10 -0400105 "libbinder",
106 "libbinder_ndk",
Craig Donnere6ecb922017-12-27 14:59:29 -0800107 "android.hardware.graphics.common@1.1",
Mathias Agopian89ed4c82017-02-09 18:48:34 -0800108 ],
109
110 static_libs: [
111 "libarect",
Jesse Hall79927812017-03-23 11:03:23 -0700112 "libgrallocusage",
Sungtak Lee4b3e4a92022-11-01 23:39:37 +0000113 "libgui_aidl_static",
Mathias Agopian89ed4c82017-02-09 18:48:34 -0800114 ],
115
Mathias Agopian6a3c05b2017-04-27 20:06:55 -0700116 header_libs: [
Sungtak Lee4b3e4a92022-11-01 23:39:37 +0000117 "libgui_headers",
Spandan Das0bb757a2022-10-25 00:50:08 +0000118 "libarect_headers",
Mathias Agopian6a3c05b2017-04-27 20:06:55 -0700119 "libnativebase_headers",
Fan Xub2b9dd72018-10-26 15:24:11 -0700120 "libnativewindow_headers",
Mathias Agopian6a3c05b2017-04-27 20:06:55 -0700121 ],
122
Mathias Agopian89ed4c82017-02-09 18:48:34 -0800123 // headers we include in our public headers
Mathias Agopian6a3c05b2017-04-27 20:06:55 -0700124 export_header_lib_headers: [
Spandan Das0bb757a2022-10-25 00:50:08 +0000125 "libarect_headers",
Mathias Agopian6a3c05b2017-04-27 20:06:55 -0700126 "libnativebase_headers",
127 ],
Przemyslaw Szczepaniak7864fbc2019-11-14 16:05:43 +0000128
129 stubs: {
130 symbol_file: "libnativewindow.map.txt",
131 versions: ["29"],
132 },
Mathias Agopian89ed4c82017-02-09 18:48:34 -0800133}
Craig Donnera5a719e2017-02-24 16:02:08 -0800134
135subdirs = ["tests"]