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