blob: a8a86ba1a9af98e62fe64cb1d88d5f09c3d76319 [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,
Jerome Gaillard8bd0bab2024-02-26 19:00:43 +000057 target: {
58 windows: {
59 enabled: true,
60 },
61 },
Fan Xub2b9dd72018-10-26 15:24:11 -070062}
63
Mathias Agopian4a67a5f2017-02-28 17:00:29 -080064ndk_library {
Steven Moreland86444092017-04-10 12:56:54 -070065 name: "libnativewindow",
Mathias Agopian4a67a5f2017-02-28 17:00:29 -080066 symbol_file: "libnativewindow.map.txt",
67
68 // Android O
69 first_version: "26",
70}
71
Mathias Agopian89ed4c82017-02-09 18:48:34 -080072cc_library {
73 name: "libnativewindow",
Colin Cross03943642021-04-21 16:47:25 -070074 llndk: {
75 symbol_file: "libnativewindow.map.txt",
76 unversioned: true,
77 override_export_include_dirs: [
Ray Essickeed53a02022-02-09 09:40:20 -080078 "include",
Colin Cross03943642021-04-21 16:47:25 -070079 ],
Spandan Das0bb757a2022-10-25 00:50:08 +000080 export_llndk_headers: [
81 "libarect_headers",
82 ],
Colin Cross03943642021-04-21 16:47:25 -070083 },
Justin Yunab66edc2017-11-28 16:54:21 +090084 export_include_dirs: [
85 "include",
86 "include-private",
87 ],
Mathias Agopian89ed4c82017-02-09 18:48:34 -080088
Chih-Hung Hsieh6e367252017-10-05 14:23:38 -070089 cflags: [
90 "-Wall",
91 "-Werror",
Krzysztof KosiƄski7a2bcc52018-11-09 20:25:52 -080092 "-Wno-enum-compare",
Chih-Hung Hsieh6e367252017-10-05 14:23:38 -070093 "-Wno-unused-function",
94 ],
95
dimitryb9fdddb2017-11-21 18:24:36 +010096 version_script: "libnativewindow.map.txt",
97
Mathias Agopian89ed4c82017-02-09 18:48:34 -080098 srcs: [
99 "AHardwareBuffer.cpp",
100 "ANativeWindow.cpp",
101 ],
102
103 shared_libs: [
Mathias Agopian89ed4c82017-02-09 18:48:34 -0800104 "libcutils",
105 "liblog",
106 "libutils",
107 "libui",
John Reck5c404f82022-08-24 10:50:10 -0400108 "libbinder",
109 "libbinder_ndk",
Craig Donnere6ecb922017-12-27 14:59:29 -0800110 "android.hardware.graphics.common@1.1",
Mathias Agopian89ed4c82017-02-09 18:48:34 -0800111 ],
112
113 static_libs: [
114 "libarect",
Jesse Hall79927812017-03-23 11:03:23 -0700115 "libgrallocusage",
Sungtak Lee4b3e4a92022-11-01 23:39:37 +0000116 "libgui_aidl_static",
Mathias Agopian89ed4c82017-02-09 18:48:34 -0800117 ],
118
Mathias Agopian6a3c05b2017-04-27 20:06:55 -0700119 header_libs: [
Sungtak Lee4b3e4a92022-11-01 23:39:37 +0000120 "libgui_headers",
Spandan Das0bb757a2022-10-25 00:50:08 +0000121 "libarect_headers",
Mathias Agopian6a3c05b2017-04-27 20:06:55 -0700122 "libnativebase_headers",
Fan Xub2b9dd72018-10-26 15:24:11 -0700123 "libnativewindow_headers",
Mathias Agopian6a3c05b2017-04-27 20:06:55 -0700124 ],
125
Mathias Agopian89ed4c82017-02-09 18:48:34 -0800126 // headers we include in our public headers
Mathias Agopian6a3c05b2017-04-27 20:06:55 -0700127 export_header_lib_headers: [
Spandan Das0bb757a2022-10-25 00:50:08 +0000128 "libarect_headers",
Mathias Agopian6a3c05b2017-04-27 20:06:55 -0700129 "libnativebase_headers",
130 ],
Przemyslaw Szczepaniak7864fbc2019-11-14 16:05:43 +0000131
132 stubs: {
133 symbol_file: "libnativewindow.map.txt",
134 versions: ["29"],
135 },
Mathias Agopian89ed4c82017-02-09 18:48:34 -0800136}
Craig Donnera5a719e2017-02-24 16:02:08 -0800137
138subdirs = ["tests"]