blob: 03f4f399d08376b0d78607709ba8e5ab54c18fc5 [file] [log] [blame]
Alec Mouri671d0f52019-09-05 13:59:19 -07001// Copyright 2019 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 Badour3306e492021-02-25 15:35:37 -080015package {
16 default_applicable_licenses: [
17 "frameworks_native_libs_nativedisplay_license",
18 ],
John Reck38bc8a82024-02-21 17:08:27 -050019 default_team: "trendy_team_android_core_graphics_stack",
Bob Badour3306e492021-02-25 15:35:37 -080020}
21
22// Added automatically by a large-scale-change
23// See: http://go/android-license-faq
24license {
25 name: "frameworks_native_libs_nativedisplay_license",
26 visibility: [":__subpackages__"],
27 license_kinds: [
28 "SPDX-license-identifier-Apache-2.0",
29 ],
30 license_text: [
31 "NOTICE",
32 ],
33}
34
Alec Mouri671d0f52019-09-05 13:59:19 -070035cc_library_headers {
36 name: "libnativedisplay_headers",
Jerome Gaillard8bd0bab2024-02-26 19:00:43 +000037 host_supported: true,
Huihong Luo0a81aa32022-02-22 16:02:36 -080038 export_include_dirs: ["include"],
Jerome Gaillard8bd0bab2024-02-26 19:00:43 +000039 target: {
40 windows: {
41 enabled: true,
42 },
43 },
Alec Mouri671d0f52019-09-05 13:59:19 -070044}
45
Alec Mouri271de042020-04-27 22:38:19 -070046cc_library_shared {
Alec Mouri671d0f52019-09-05 13:59:19 -070047 name: "libnativedisplay",
48 export_include_dirs: [
49 "include",
Alec Mouri271de042020-04-27 22:38:19 -070050 "include-private",
Alec Mouri671d0f52019-09-05 13:59:19 -070051 ],
52
Alec Mouri671d0f52019-09-05 13:59:19 -070053 cflags: [
54 "-Wall",
55 "-Werror",
56 "-Wno-enum-compare",
57 "-Wno-unused-function",
58 ],
59
Alec Mourid9ff3272019-11-19 16:23:59 -080060 version_script: "libnativedisplay.map.txt",
61
Alec Mouri671d0f52019-09-05 13:59:19 -070062 srcs: [
Huihong Luo0a81aa32022-02-22 16:02:36 -080063 ":libgui_frame_event_aidl",
Alec Mouricc445222019-10-22 10:19:17 -070064 "AChoreographer.cpp",
Alec Mouri671d0f52019-09-05 13:59:19 -070065 "ADisplay.cpp",
Stan Iliev5d6bdb02020-01-13 11:19:44 -050066 "surfacetexture/surface_texture.cpp",
67 "surfacetexture/SurfaceTexture.cpp",
68 "surfacetexture/ImageConsumer.cpp",
69 "surfacetexture/EGLConsumer.cpp",
Alec Mouri671d0f52019-09-05 13:59:19 -070070 ],
71
72 shared_libs: [
Alec Mouri671d0f52019-09-05 13:59:19 -070073 "libgui",
74 "liblog",
Alec Mouri46170512019-11-20 11:04:55 -080075 "libnativewindow",
Alec Mouri671d0f52019-09-05 13:59:19 -070076 "libui",
77 "libutils",
Stan Iliev5d6bdb02020-01-13 11:19:44 -050078 "libcutils",
79 "libEGL",
80 "libGLESv2",
Alec Mouri671d0f52019-09-05 13:59:19 -070081 ],
82
Ady Abraham19260522023-09-22 12:18:53 -070083 static_libs: ["libguiflags"],
84
Orion Hodsone53587b2021-02-02 15:33:33 +000085 export_header_lib_headers: ["jni_headers"],
Alec Mouri271de042020-04-27 22:38:19 -070086
Alec Mouri671d0f52019-09-05 13:59:19 -070087 header_libs: [
Orion Hodsone53587b2021-02-02 15:33:33 +000088 "jni_headers",
Alec Mouri671d0f52019-09-05 13:59:19 -070089 "libnativedisplay_headers",
Orion Hodsone53587b2021-02-02 15:33:33 +000090 "libnativehelper_header_only",
Alec Mouri671d0f52019-09-05 13:59:19 -070091 ],
Alec Mouri671d0f52019-09-05 13:59:19 -070092}