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} 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 34cc_library_headers { 35 name: "libnativedisplay_headers", 36 export_include_dirs: ["include",], 37} 38 39cc_library_shared { 40 name: "libnativedisplay", 41 export_include_dirs: [ 42 "include", 43 "include-private", 44 ], 45 46 clang: true, 47 48 cflags: [ 49 "-Wall", 50 "-Werror", 51 "-Wno-enum-compare", 52 "-Wno-unused-function", 53 ], 54 55 version_script: "libnativedisplay.map.txt", 56 57 srcs: [ 58 "AChoreographer.cpp", 59 "ADisplay.cpp", 60 "surfacetexture/surface_texture.cpp", 61 "surfacetexture/SurfaceTexture.cpp", 62 "surfacetexture/ImageConsumer.cpp", 63 "surfacetexture/EGLConsumer.cpp", 64 ], 65 66 shared_libs: [ 67 "libgui", 68 "liblog", 69 "libnativewindow", 70 "libui", 71 "libutils", 72 "libcutils", 73 "libEGL", 74 "libGLESv2", 75 ], 76 77 export_header_lib_headers: ["jni_headers"], 78 79 header_libs: [ 80 "jni_headers", 81 "libnativedisplay_headers", 82 "libnativehelper_header_only", 83 ], 84} 85