blob: 342f5de337dc45937f6910224c65a274ea3a2af8 [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 ],
19}
20
21// Added automatically by a large-scale-change
22// See: http://go/android-license-faq
23license {
24 name: "frameworks_native_libs_nativedisplay_license",
25 visibility: [":__subpackages__"],
26 license_kinds: [
27 "SPDX-license-identifier-Apache-2.0",
28 ],
29 license_text: [
30 "NOTICE",
31 ],
32}
33
Alec Mouri671d0f52019-09-05 13:59:19 -070034cc_library_headers {
35 name: "libnativedisplay_headers",
Huihong Luo0a81aa32022-02-22 16:02:36 -080036 export_include_dirs: ["include"],
Alec Mouri671d0f52019-09-05 13:59:19 -070037}
38
Alec Mouri271de042020-04-27 22:38:19 -070039cc_library_shared {
Alec Mouri671d0f52019-09-05 13:59:19 -070040 name: "libnativedisplay",
41 export_include_dirs: [
42 "include",
Alec Mouri271de042020-04-27 22:38:19 -070043 "include-private",
Alec Mouri671d0f52019-09-05 13:59:19 -070044 ],
45
Alec Mouri671d0f52019-09-05 13:59:19 -070046 cflags: [
47 "-Wall",
48 "-Werror",
49 "-Wno-enum-compare",
50 "-Wno-unused-function",
51 ],
52
Alec Mourid9ff3272019-11-19 16:23:59 -080053 version_script: "libnativedisplay.map.txt",
54
Alec Mouri671d0f52019-09-05 13:59:19 -070055 srcs: [
Huihong Luo0a81aa32022-02-22 16:02:36 -080056 ":libgui_frame_event_aidl",
Alec Mouricc445222019-10-22 10:19:17 -070057 "AChoreographer.cpp",
Alec Mouri671d0f52019-09-05 13:59:19 -070058 "ADisplay.cpp",
Stan Iliev5d6bdb02020-01-13 11:19:44 -050059 "surfacetexture/surface_texture.cpp",
60 "surfacetexture/SurfaceTexture.cpp",
61 "surfacetexture/ImageConsumer.cpp",
62 "surfacetexture/EGLConsumer.cpp",
Alec Mouri671d0f52019-09-05 13:59:19 -070063 ],
64
65 shared_libs: [
Alec Mouri671d0f52019-09-05 13:59:19 -070066 "libgui",
67 "liblog",
Alec Mouri46170512019-11-20 11:04:55 -080068 "libnativewindow",
Alec Mouri671d0f52019-09-05 13:59:19 -070069 "libui",
70 "libutils",
Stan Iliev5d6bdb02020-01-13 11:19:44 -050071 "libcutils",
72 "libEGL",
73 "libGLESv2",
Alec Mouri671d0f52019-09-05 13:59:19 -070074 ],
75
Ady Abraham19260522023-09-22 12:18:53 -070076 static_libs: ["libguiflags"],
77
Orion Hodsone53587b2021-02-02 15:33:33 +000078 export_header_lib_headers: ["jni_headers"],
Alec Mouri271de042020-04-27 22:38:19 -070079
Alec Mouri671d0f52019-09-05 13:59:19 -070080 header_libs: [
Orion Hodsone53587b2021-02-02 15:33:33 +000081 "jni_headers",
Alec Mouri671d0f52019-09-05 13:59:19 -070082 "libnativedisplay_headers",
Orion Hodsone53587b2021-02-02 15:33:33 +000083 "libnativehelper_header_only",
Alec Mouri671d0f52019-09-05 13:59:19 -070084 ],
Alec Mouri671d0f52019-09-05 13:59:19 -070085}