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_binary {
23    name: "evs_app",
24
25    srcs: [
26        "evs_app.cpp",
27        "EvsStateControl.cpp",
28        "EvsStats.cpp",
29        "RenderBase.cpp",
30        "RenderDirectView.cpp",
31        "RenderTopView.cpp",
32        "ConfigManager.cpp",
33        "glError.cpp",
34        "shader.cpp",
35        "TexWrapper.cpp",
36        "VideoTex.cpp",
37        "StreamHandler.cpp",
38        "FormatConvert.cpp",
39        "RenderPixelCopy.cpp",
40    ],
41
42    shared_libs: [
43        "libbase",
44        "libbinder_ndk",
45        "libcutils",
46        "libutils",
47        "libui",
48        "libhidlbase",
49        "libEGL",
50        "libGLESv2",
51        "libhardware",
52        "libpng",
53        "libcamera_metadata",
54        "android.frameworks.automotive.telemetry-V1-ndk_platform",
55        "android.hardware.camera.device@3.2",
56        "android.hardware.automotive.evs@1.0",
57        "android.hardware.automotive.evs@1.1",
58        "android.hardware.automotive.vehicle@2.0",
59        "libcartelemetry-evs-proto",
60        "libprotobuf-cpp-lite",
61    ],
62
63    static_libs: [
64        "libmath",
65        "libjsoncpp",
66    ],
67
68    required: [
69        "config.json",
70        "CarFromTop.png",
71        "LabeledChecker.png",
72    ],
73
74    init_rc: ["evs_app.rc"],
75
76    cflags: ["-DLOG_TAG=\"EvsApp\""] + [
77        "-DGL_GLEXT_PROTOTYPES",
78        "-DEGL_EGLEXT_PROTOTYPES",
79    ] + [
80        "-Wall",
81        "-Werror",
82        "-Wunused",
83        "-Wunreachable-code",
84    ],
85
86}
87
88cc_library {
89    name: "libcartelemetry-evs-proto",
90    srcs: [
91        ":cartelemetry-evs-proto-srcs",
92    ],
93    proto: {
94        export_proto_headers: true,
95        type: "lite",
96    },
97    shared_libs: [
98        "libprotobuf-cpp-lite",
99    ],
100}
101
102prebuilt_etc {
103    name: "config.json",
104
105    src: "config.json",
106    sub_dir: "automotive/evs",
107
108}
109
110prebuilt_etc {
111    name: "CarFromTop.png",
112
113    src: "CarFromTop.png",
114    sub_dir: "automotive/evs",
115
116}
117
118prebuilt_etc {
119    name: "LabeledChecker.png",
120
121    src: "LabeledChecker.png",
122    sub_dir: "automotive/evs",
123
124}
125