blob: f7f8b1dcb3daadbb801da93d827cfd2e96064009 [file] [log] [blame]
Changyeon Jo80189012021-10-10 16:34:21 -07001// Copyright (C) 2022 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
15package {
Aditya Choudhary04ef2122024-02-02 14:00:43 +000016 default_team: "trendy_team_automotive",
Changyeon Jo80189012021-10-10 16:34:21 -070017 // See: http://go/android-license-faq
18 // A large-scale-change added 'default_applicable_licenses' to import
19 // all of the 'license_kinds' from "hardware_interfaces_license"
20 // to get the below license kinds:
21 // SPDX-license-identifier-Apache-2.0
22 default_applicable_licenses: ["hardware_interfaces_license"],
23}
24
25cc_binary {
26 name: "android.hardware.automotive.evs-aidl-default-service",
27 defaults: ["EvsHalDefaults"],
Changyeon Jo7e626312023-03-13 22:44:01 +000028 vintf_fragments: ["manifest_evs-default-service.xml"],
Changyeon Jo80189012021-10-10 16:34:21 -070029 init_rc: ["evs-default-service.rc"],
30 vendor: true,
31 relative_install_path: "hw",
Changyeon Jo7e626312023-03-13 22:44:01 +000032 cflags: [
33 "-DGL_GLEXT_PROTOTYPES",
34 "-DEGL_EGLEXT_PROTOTYPES",
35 "-Wall",
36 "-Wextra",
37 "-Werror",
38 "-Wthread-safety",
Changyeon Jo20dbc582023-02-23 18:20:15 +000039 ],
Changyeon Jo7e626312023-03-13 22:44:01 +000040 srcs: [
41 ":libgui_frame_event_aidl",
Hao Chenac8e6962023-03-29 11:20:56 -070042 "src/*.cpp",
Changyeon Jo7e626312023-03-13 22:44:01 +000043 ],
44 shared_libs: [
45 "android.hardware.graphics.bufferqueue@1.0",
46 "android.hardware.graphics.bufferqueue@2.0",
47 "android.hidl.token@1.0-utils",
48 "libEGL",
49 "libGLESv2",
50 "libbase",
51 "libbinder_ndk",
52 "libbufferqueueconverter",
53 "libcamera_metadata",
54 "libhardware_legacy",
55 "libhidlbase",
56 "liblog",
57 "libnativewindow",
58 "libtinyxml2",
59 "libui",
60 "libutils",
61 "libyuv",
62 ],
63 static_libs: [
64 "android.frameworks.automotive.display-V1-ndk",
Hao Chenac8e6962023-03-29 11:20:56 -070065 "android.hardware.automotive.evs-V2-ndk",
Changyeon Jo7e626312023-03-13 22:44:01 +000066 "android.hardware.common-V2-ndk",
67 "libaidlcommonsupport",
68 "libcutils",
69 ],
70 local_include_dirs: ["include"],
71 include_dirs: ["frameworks/native/include/"],
72 required: ["evs_mock_hal_configuration.xml"],
73}
74
75prebuilt_etc {
76 name: "evs_mock_hal_configuration.xml",
77 soc_specific: true,
78 src: "resources/evs_mock_configuration.xml",
79 sub_dir: "automotive/evs",
Changyeon Jo80189012021-10-10 16:34:21 -070080}