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 15package { 16 default_applicable_licenses: [ 17 "frameworks_native_libs_nativedisplay_license", 18 ], 19 default_team: "trendy_team_android_core_graphics_stack", 20} 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 35cc_library_headers { 36 name: "libnativedisplay_headers", 37 host_supported: true, 38 export_include_dirs: ["include"], 39 target: { 40 windows: { 41 enabled: true, 42 }, 43 }, 44} 45 46cc_library_shared { 47 name: "libnativedisplay", 48 export_include_dirs: [ 49 "include", 50 "include-private", 51 ], 52 53 cflags: [ 54 "-Wall", 55 "-Werror", 56 "-Wno-enum-compare", 57 "-Wno-unused-function", 58 ], 59 60 version_script: "libnativedisplay.map.txt", 61 62 srcs: [ 63 ":libgui_frame_event_aidl", 64 "AChoreographer.cpp", 65 "ADisplay.cpp", 66 "surfacetexture/surface_texture.cpp", 67 "surfacetexture/SurfaceTexture.cpp", 68 "surfacetexture/ImageConsumer.cpp", 69 "surfacetexture/EGLConsumer.cpp", 70 ], 71 72 shared_libs: [ 73 "libgui", 74 "liblog", 75 "libnativewindow", 76 "libui", 77 "libutils", 78 "libcutils", 79 "libEGL", 80 "libGLESv2", 81 ], 82 83 static_libs: ["libguiflags"], 84 85 export_header_lib_headers: ["jni_headers"], 86 87 header_libs: [ 88 "jni_headers", 89 "libnativedisplay_headers", 90 "libnativehelper_header_only", 91 ], 92} 93