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