Alec Mouri | 671d0f5 | 2019-09-05 13:59:19 -0700 | [diff] [blame] | 1 | // 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 Badour | 3306e49 | 2021-02-25 15:35:37 -0800 | [diff] [blame] | 15 | package { |
| 16 | default_applicable_licenses: [ |
| 17 | "frameworks_native_libs_nativedisplay_license", |
| 18 | ], |
John Reck | 38bc8a8 | 2024-02-21 17:08:27 -0500 | [diff] [blame] | 19 | default_team: "trendy_team_android_core_graphics_stack", |
Bob Badour | 3306e49 | 2021-02-25 15:35:37 -0800 | [diff] [blame] | 20 | } |
| 21 | |
| 22 | // Added automatically by a large-scale-change |
| 23 | // See: http://go/android-license-faq |
| 24 | license { |
| 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 Mouri | 671d0f5 | 2019-09-05 13:59:19 -0700 | [diff] [blame] | 35 | cc_library_headers { |
| 36 | name: "libnativedisplay_headers", |
Jerome Gaillard | 8bd0bab | 2024-02-26 19:00:43 +0000 | [diff] [blame] | 37 | host_supported: true, |
Huihong Luo | 0a81aa3 | 2022-02-22 16:02:36 -0800 | [diff] [blame] | 38 | export_include_dirs: ["include"], |
Jerome Gaillard | 8bd0bab | 2024-02-26 19:00:43 +0000 | [diff] [blame] | 39 | target: { |
| 40 | windows: { |
| 41 | enabled: true, |
| 42 | }, |
| 43 | }, |
Alec Mouri | 671d0f5 | 2019-09-05 13:59:19 -0700 | [diff] [blame] | 44 | } |
| 45 | |
Alec Mouri | 271de04 | 2020-04-27 22:38:19 -0700 | [diff] [blame] | 46 | cc_library_shared { |
Alec Mouri | 671d0f5 | 2019-09-05 13:59:19 -0700 | [diff] [blame] | 47 | name: "libnativedisplay", |
| 48 | export_include_dirs: [ |
| 49 | "include", |
Alec Mouri | 271de04 | 2020-04-27 22:38:19 -0700 | [diff] [blame] | 50 | "include-private", |
Alec Mouri | 671d0f5 | 2019-09-05 13:59:19 -0700 | [diff] [blame] | 51 | ], |
| 52 | |
Alec Mouri | 671d0f5 | 2019-09-05 13:59:19 -0700 | [diff] [blame] | 53 | cflags: [ |
| 54 | "-Wall", |
| 55 | "-Werror", |
| 56 | "-Wno-enum-compare", |
| 57 | "-Wno-unused-function", |
| 58 | ], |
| 59 | |
Alec Mouri | d9ff327 | 2019-11-19 16:23:59 -0800 | [diff] [blame] | 60 | version_script: "libnativedisplay.map.txt", |
| 61 | |
Alec Mouri | 671d0f5 | 2019-09-05 13:59:19 -0700 | [diff] [blame] | 62 | srcs: [ |
Huihong Luo | 0a81aa3 | 2022-02-22 16:02:36 -0800 | [diff] [blame] | 63 | ":libgui_frame_event_aidl", |
Alec Mouri | cc44522 | 2019-10-22 10:19:17 -0700 | [diff] [blame] | 64 | "AChoreographer.cpp", |
Alec Mouri | 671d0f5 | 2019-09-05 13:59:19 -0700 | [diff] [blame] | 65 | "ADisplay.cpp", |
Stan Iliev | 5d6bdb0 | 2020-01-13 11:19:44 -0500 | [diff] [blame] | 66 | "surfacetexture/surface_texture.cpp", |
| 67 | "surfacetexture/SurfaceTexture.cpp", |
| 68 | "surfacetexture/ImageConsumer.cpp", |
| 69 | "surfacetexture/EGLConsumer.cpp", |
Alec Mouri | 671d0f5 | 2019-09-05 13:59:19 -0700 | [diff] [blame] | 70 | ], |
| 71 | |
| 72 | shared_libs: [ |
Alec Mouri | 671d0f5 | 2019-09-05 13:59:19 -0700 | [diff] [blame] | 73 | "libgui", |
| 74 | "liblog", |
Alec Mouri | 4617051 | 2019-11-20 11:04:55 -0800 | [diff] [blame] | 75 | "libnativewindow", |
Alec Mouri | 671d0f5 | 2019-09-05 13:59:19 -0700 | [diff] [blame] | 76 | "libui", |
| 77 | "libutils", |
Stan Iliev | 5d6bdb0 | 2020-01-13 11:19:44 -0500 | [diff] [blame] | 78 | "libcutils", |
| 79 | "libEGL", |
| 80 | "libGLESv2", |
Alec Mouri | 671d0f5 | 2019-09-05 13:59:19 -0700 | [diff] [blame] | 81 | ], |
| 82 | |
Ady Abraham | 1926052 | 2023-09-22 12:18:53 -0700 | [diff] [blame] | 83 | static_libs: ["libguiflags"], |
| 84 | |
Orion Hodson | e53587b | 2021-02-02 15:33:33 +0000 | [diff] [blame] | 85 | export_header_lib_headers: ["jni_headers"], |
Alec Mouri | 271de04 | 2020-04-27 22:38:19 -0700 | [diff] [blame] | 86 | |
Alec Mouri | 671d0f5 | 2019-09-05 13:59:19 -0700 | [diff] [blame] | 87 | header_libs: [ |
Orion Hodson | e53587b | 2021-02-02 15:33:33 +0000 | [diff] [blame] | 88 | "jni_headers", |
Alec Mouri | 671d0f5 | 2019-09-05 13:59:19 -0700 | [diff] [blame] | 89 | "libnativedisplay_headers", |
Orion Hodson | e53587b | 2021-02-02 15:33:33 +0000 | [diff] [blame] | 90 | "libnativehelper_header_only", |
Alec Mouri | 671d0f5 | 2019-09-05 13:59:19 -0700 | [diff] [blame] | 91 | ], |
Alec Mouri | 671d0f5 | 2019-09-05 13:59:19 -0700 | [diff] [blame] | 92 | } |