blob: 0e90327a17eaff7a0beb6635f9cbb06e4a2af525 [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 ],
John Reck38bc8a82024-02-21 17:08:27 -050019 default_team: "trendy_team_android_core_graphics_stack",
Bob Badour3c538232021-02-12 21:26:48 -080020}
21
22// Added automatically by a large-scale-change
23// See: http://go/android-license-faq
24license {
25 name: "frameworks_native_libs_nativewindow_license",
26 visibility: [":__subpackages__"],
27 license_kinds: [
28 "SPDX-license-identifier-Apache-2.0",
29 ],
30 license_text: [
31 "NOTICE",
32 ],
33}
34
Mathias Agopian89ed4c82017-02-09 18:48:34 -080035ndk_headers {
Fan Xub2b9dd72018-10-26 15:24:11 -070036 name: "libnativewindow_ndk_headers",
Mathias Agopian89ed4c82017-02-09 18:48:34 -080037 from: "include/android",
38 to: "android",
39 srcs: ["include/android/*.h"],
40 license: "NOTICE",
41}
42
Fan Xub2b9dd72018-10-26 15:24:11 -070043// TODO(b/118715870): cleanup header files
44cc_library_headers {
45 name: "libnativewindow_headers",
46 export_include_dirs: ["include"],
Pawin Vongmasae672cd02019-02-14 16:01:29 -080047 vendor_available: true,
Victor Khimenkob7322fc2020-06-16 01:01:15 +020048 // TODO(b/153609531): remove when no longer needed.
49 native_bridge_supported: true,
Jooyung Hana395c8d2020-04-16 18:48:32 +090050 min_sdk_version: "29",
Ray Essickeed53a02022-02-09 09:40:20 -080051 apex_available: [
52 "//apex_available:platform",
53 "com.android.media.swcodec",
54 "test_com.android.media.swcodec",
55 ],
Leon Scroggins IIIc1f093f2021-01-08 14:25:31 -050056 host_supported: true,
Fan Xub2b9dd72018-10-26 15:24:11 -070057}
58
Mathias Agopian4a67a5f2017-02-28 17:00:29 -080059ndk_library {
Steven Moreland86444092017-04-10 12:56:54 -070060 name: "libnativewindow",
Mathias Agopian4a67a5f2017-02-28 17:00:29 -080061 symbol_file: "libnativewindow.map.txt",
62
63 // Android O
64 first_version: "26",
Spandan Das0bddf152022-09-08 21:44:10 +000065 export_header_libs: [
66 "libnativewindow_ndk_headers",
67 ],
Mathias Agopian4a67a5f2017-02-28 17:00:29 -080068}
69
Mathias Agopian89ed4c82017-02-09 18:48:34 -080070cc_library {
71 name: "libnativewindow",
Colin Cross03943642021-04-21 16:47:25 -070072 llndk: {
73 symbol_file: "libnativewindow.map.txt",
74 unversioned: true,
75 override_export_include_dirs: [
Ray Essickeed53a02022-02-09 09:40:20 -080076 "include",
Colin Cross03943642021-04-21 16:47:25 -070077 ],
Spandan Das0bb757a2022-10-25 00:50:08 +000078 export_llndk_headers: [
79 "libarect_headers",
80 ],
Colin Cross03943642021-04-21 16:47:25 -070081 },
Justin Yunab66edc2017-11-28 16:54:21 +090082 export_include_dirs: [
83 "include",
84 "include-private",
85 ],
Mathias Agopian89ed4c82017-02-09 18:48:34 -080086
Chih-Hung Hsieh6e367252017-10-05 14:23:38 -070087 cflags: [
88 "-Wall",
89 "-Werror",
Krzysztof KosiƄski7a2bcc52018-11-09 20:25:52 -080090 "-Wno-enum-compare",
Chih-Hung Hsieh6e367252017-10-05 14:23:38 -070091 "-Wno-unused-function",
92 ],
93
dimitryb9fdddb2017-11-21 18:24:36 +010094 version_script: "libnativewindow.map.txt",
95
Mathias Agopian89ed4c82017-02-09 18:48:34 -080096 srcs: [
97 "AHardwareBuffer.cpp",
98 "ANativeWindow.cpp",
99 ],
100
101 shared_libs: [
Mathias Agopian89ed4c82017-02-09 18:48:34 -0800102 "libcutils",
103 "liblog",
104 "libutils",
105 "libui",
John Reck5c404f82022-08-24 10:50:10 -0400106 "libbinder",
107 "libbinder_ndk",
Craig Donnere6ecb922017-12-27 14:59:29 -0800108 "android.hardware.graphics.common@1.1",
Mathias Agopian89ed4c82017-02-09 18:48:34 -0800109 ],
110
111 static_libs: [
112 "libarect",
Jesse Hall79927812017-03-23 11:03:23 -0700113 "libgrallocusage",
Sungtak Lee4b3e4a92022-11-01 23:39:37 +0000114 "libgui_aidl_static",
Mathias Agopian89ed4c82017-02-09 18:48:34 -0800115 ],
116
Mathias Agopian6a3c05b2017-04-27 20:06:55 -0700117 header_libs: [
Sungtak Lee4b3e4a92022-11-01 23:39:37 +0000118 "libgui_headers",
Spandan Das0bb757a2022-10-25 00:50:08 +0000119 "libarect_headers",
Mathias Agopian6a3c05b2017-04-27 20:06:55 -0700120 "libnativebase_headers",
Fan Xub2b9dd72018-10-26 15:24:11 -0700121 "libnativewindow_headers",
Mathias Agopian6a3c05b2017-04-27 20:06:55 -0700122 ],
123
Mathias Agopian89ed4c82017-02-09 18:48:34 -0800124 // headers we include in our public headers
Mathias Agopian6a3c05b2017-04-27 20:06:55 -0700125 export_header_lib_headers: [
Spandan Das0bb757a2022-10-25 00:50:08 +0000126 "libarect_headers",
Mathias Agopian6a3c05b2017-04-27 20:06:55 -0700127 "libnativebase_headers",
128 ],
Przemyslaw Szczepaniak7864fbc2019-11-14 16:05:43 +0000129
130 stubs: {
131 symbol_file: "libnativewindow.map.txt",
132 versions: ["29"],
133 },
Mathias Agopian89ed4c82017-02-09 18:48:34 -0800134}
Craig Donnera5a719e2017-02-24 16:02:08 -0800135
136subdirs = ["tests"]