blob: 70c523b5faff4076a7e9b314ac53b349188168b7 [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 {
16 // See: http://go/android-license-faq
17 // A large-scale-change added 'default_applicable_licenses' to import
18 // all of the 'license_kinds' from "hardware_interfaces_license"
19 // to get the below license kinds:
20 // SPDX-license-identifier-Apache-2.0
21 default_applicable_licenses: ["hardware_interfaces_license"],
22}
23
24cc_binary {
25 name: "android.hardware.automotive.evs-aidl-default-service",
26 defaults: ["EvsHalDefaults"],
Changyeon Jo7e626312023-03-13 22:44:01 +000027 vintf_fragments: ["manifest_evs-default-service.xml"],
Changyeon Jo80189012021-10-10 16:34:21 -070028 init_rc: ["evs-default-service.rc"],
29 vendor: true,
30 relative_install_path: "hw",
Changyeon Jo7e626312023-03-13 22:44:01 +000031 cflags: [
32 "-DGL_GLEXT_PROTOTYPES",
33 "-DEGL_EGLEXT_PROTOTYPES",
34 "-Wall",
35 "-Wextra",
36 "-Werror",
37 "-Wthread-safety",
Changyeon Jo20dbc582023-02-23 18:20:15 +000038 ],
Changyeon Jo7e626312023-03-13 22:44:01 +000039 srcs: [
40 ":libgui_frame_event_aidl",
Hao Chenac8e6962023-03-29 11:20:56 -070041 "src/*.cpp",
Changyeon Jo7e626312023-03-13 22:44:01 +000042 ],
43 shared_libs: [
44 "android.hardware.graphics.bufferqueue@1.0",
45 "android.hardware.graphics.bufferqueue@2.0",
46 "android.hidl.token@1.0-utils",
47 "libEGL",
48 "libGLESv2",
49 "libbase",
50 "libbinder_ndk",
51 "libbufferqueueconverter",
52 "libcamera_metadata",
53 "libhardware_legacy",
54 "libhidlbase",
55 "liblog",
56 "libnativewindow",
57 "libtinyxml2",
58 "libui",
59 "libutils",
60 "libyuv",
61 ],
62 static_libs: [
63 "android.frameworks.automotive.display-V1-ndk",
Hao Chenac8e6962023-03-29 11:20:56 -070064 "android.hardware.automotive.evs-V2-ndk",
Changyeon Jo7e626312023-03-13 22:44:01 +000065 "android.hardware.common-V2-ndk",
66 "libaidlcommonsupport",
67 "libcutils",
68 ],
69 local_include_dirs: ["include"],
70 include_dirs: ["frameworks/native/include/"],
71 required: ["evs_mock_hal_configuration.xml"],
72}
73
74prebuilt_etc {
75 name: "evs_mock_hal_configuration.xml",
76 soc_specific: true,
77 src: "resources/evs_mock_configuration.xml",
78 sub_dir: "automotive/evs",
Changyeon Jo80189012021-10-10 16:34:21 -070079}