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    defaults: [
25        "android.hardware.graphics.common-ndk_shared",
26        "vhalclient_defaults",
27    ],
28    local_include_dirs: ["inc"],
29    srcs: ["src/*.cpp"],
30    shared_libs: [
31        "[email protected]",
32        "[email protected]",
33        "libEGL",
34        "libGLESv2",
35        "libbase",
36        "libbinder",
37        "libbinder_ndk",
38        "libcamera_metadata",
39        "libcartelemetry-evs-proto",
40        "libcutils",
41        "libhardware",
42        "libpng",
43        "libprotobuf-cpp-lite",
44        "libui",
45        "libutils",
46    ],
47    static_libs: [
48        "android.frameworks.automotive.telemetry-V1-ndk",
49        "android.hardware.automotive.evs-V2-ndk",
50        "android.hardware.common-V2-ndk",
51        "libaidlcommonsupport",
52        "libmath",
53        "libjsoncpp",
54        "libvhalclient",
55    ],
56    required: [
57        "config.json",
58        "CarFromTop.png",
59        "LabeledChecker.png",
60    ],
61    init_rc: ["evs_app.rc"],
62    cflags: [
63        "-DLOG_TAG=\"EvsApp\"",
64        "-DGL_GLEXT_PROTOTYPES",
65        "-DEGL_EGLEXT_PROTOTYPES",
66        "-Wall",
67        "-Werror",
68        "-Wunused",
69        "-Wunreachable-code",
70    ],
71}
72
73cc_library {
74    name: "libcartelemetry-evs-proto",
75    srcs: [":cartelemetry-evs-proto-srcs"],
76    proto: {
77        export_proto_headers: true,
78        type: "lite",
79    },
80    shared_libs: ["libprotobuf-cpp-lite"],
81}
82
83prebuilt_etc {
84    name: "config.json",
85    src: "res/config.json",
86    sub_dir: "automotive/evs",
87}
88
89prebuilt_etc {
90    name: "CarFromTop.png",
91    src: "res/CarFromTop.png",
92    sub_dir: "automotive/evs",
93}
94
95prebuilt_etc {
96    name: "LabeledChecker.png",
97    src: "res/LabeledChecker.png",
98    sub_dir: "automotive/evs",
99}
100