1// Copyright (C) 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// 15// 16 17//################################# 18package { 19 default_applicable_licenses: ["Android-Apache-2.0"], 20} 21 22cc_library_shared { 23 name: "libevssupport", 24 25 srcs: [ 26 "RenderBase.cpp", 27 "RenderDirectView.cpp", 28 "ConfigManager.cpp", 29 "glError.cpp", 30 "shader.cpp", 31 "TexWrapper.cpp", 32 "VideoTex.cpp", 33 "StreamHandler.cpp", 34 "ResourceManager.cpp", 35 "FormatConvert.cpp", 36 "DisplayUseCase.cpp", 37 "AnalyzeUseCase.cpp", 38 "Utils.cpp", 39 ], 40 41 shared_libs: [ 42 "libcutils", 43 "liblog", 44 "libutils", 45 "libui", 46 "libhidlbase", 47 "libEGL", 48 "libGLESv2", 49 "libhardware", 50 "libpng", 51 "android.hardware.automotive.evs@1.0", 52 ], 53 54 static_libs: [ 55 "libmath", 56 "libjsoncpp", 57 ], 58 59 required: [ 60 "camera_config.json", 61 ], 62 63 cflags: ["-DLOG_TAG=\"libevssupport\""] + [ 64 "-DGL_GLEXT_PROTOTYPES", 65 "-DEGL_EGLEXT_PROTOTYPES", 66 ] + [ 67 "-Wall", 68 "-Werror", 69 "-Wunused", 70 "-Wunreachable-code", 71 ], 72} 73 74prebuilt_etc { 75 name: "camera_config.json", 76 77 src: "config.json", 78 sub_dir: "automotive/evs_support_lib", 79} 80