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 15cc_library_headers { 16 name: "libnativedisplay_headers", 17 export_include_dirs: ["include",], 18} 19 20cc_library_shared { 21 name: "libnativedisplay", 22 export_include_dirs: [ 23 "include", 24 "include-private", 25 ], 26 27 clang: true, 28 29 cflags: [ 30 "-Wall", 31 "-Werror", 32 "-Wno-enum-compare", 33 "-Wno-unused-function", 34 ], 35 36 version_script: "libnativedisplay.map.txt", 37 38 srcs: [ 39 "AChoreographer.cpp", 40 "ADisplay.cpp", 41 "surfacetexture/surface_texture.cpp", 42 "surfacetexture/SurfaceTexture.cpp", 43 "surfacetexture/ImageConsumer.cpp", 44 "surfacetexture/EGLConsumer.cpp", 45 ], 46 47 shared_libs: [ 48 "libgui", 49 "liblog", 50 "libnativewindow", 51 "libui", 52 "libutils", 53 "libcutils", 54 "libEGL", 55 "libGLESv2", 56 "libnativehelper", 57 ], 58 59 export_shared_lib_headers: [ 60 "libnativehelper", 61 ], 62 63 header_libs: [ 64 "libnativedisplay_headers", 65 ], 66 67} 68