blob: 3d5b7c4956d8cbacd32e5e98ad4b13b457588c85 [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
Hao Chen5ed789c2023-08-24 20:07:29 +000024cc_defaults {
25 name: "android.hardware.automotive.evs-aidl-default-service-default",
Changyeon Jo80189012021-10-10 16:34:21 -070026 defaults: ["EvsHalDefaults"],
Hao Chena15abfc2023-08-24 21:26:38 +000027 header_libs: [
28 "libstagefright_headers",
29 ],
Changyeon Jo7e626312023-03-13 22:44:01 +000030 shared_libs: [
31 "android.hardware.graphics.bufferqueue@1.0",
32 "android.hardware.graphics.bufferqueue@2.0",
33 "android.hidl.token@1.0-utils",
34 "libEGL",
35 "libGLESv2",
Changyeon Jo7e626312023-03-13 22:44:01 +000036 "libbinder_ndk",
37 "libbufferqueueconverter",
38 "libcamera_metadata",
39 "libhardware_legacy",
40 "libhidlbase",
Hao Chena15abfc2023-08-24 21:26:38 +000041 "libmediandk",
Changyeon Jo7e626312023-03-13 22:44:01 +000042 "libnativewindow",
43 "libtinyxml2",
44 "libui",
Changyeon Jo7e626312023-03-13 22:44:01 +000045 "libyuv",
46 ],
Hao Chen5ed789c2023-08-24 20:07:29 +000047}
48
49cc_library {
50 name: "android.hardware.automotive.evs-aidl-default-service-lib",
51 defaults: ["android.hardware.automotive.evs-aidl-default-service-default"],
52 vendor: true,
53 cflags: [
54 "-DGL_GLEXT_PROTOTYPES",
55 "-DEGL_EGLEXT_PROTOTYPES",
56 ],
57 srcs: [
58 ":libgui_frame_event_aidl",
59 "src/*.cpp",
60 ],
61 exclude_srcs: ["src/service.cpp"],
62 whole_static_libs: [
Changyeon Jo130d5a32023-08-29 14:55:03 -070063 "android.frameworks.automotive.display-V2-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 ],
Changyeon Jo130d5a32023-08-29 14:55:03 -070069 header_libs: [
70 "libgui_aidl_headers",
71 ],
Changyeon Jo7e626312023-03-13 22:44:01 +000072 local_include_dirs: ["include"],
73 include_dirs: ["frameworks/native/include/"],
Hao Chen5ed789c2023-08-24 20:07:29 +000074 export_include_dirs: ["include"],
75}
76
77cc_binary {
78 name: "android.hardware.automotive.evs-aidl-default-service",
79 defaults: ["android.hardware.automotive.evs-aidl-default-service-default"],
80 vintf_fragments: ["manifest_evs-default-service.xml"],
81 init_rc: ["evs-default-service.rc"],
82 vendor: true,
83 relative_install_path: "hw",
84 cflags: [
85 "-DGL_GLEXT_PROTOTYPES",
86 "-DEGL_EGLEXT_PROTOTYPES",
87 ],
88 srcs: ["src/service.cpp"],
89 static_libs: [
90 "android.hardware.automotive.evs-aidl-default-service-lib",
91 ],
92 include_dirs: ["frameworks/native/include/"],
Changyeon Jo7e626312023-03-13 22:44:01 +000093 required: ["evs_mock_hal_configuration.xml"],
94}
95
96prebuilt_etc {
97 name: "evs_mock_hal_configuration.xml",
98 soc_specific: true,
99 src: "resources/evs_mock_configuration.xml",
100 sub_dir: "automotive/evs",
Changyeon Jo80189012021-10-10 16:34:21 -0700101}
Hao Chen5ed789c2023-08-24 20:07:29 +0000102
103cc_test {
104 name: "android.hardware.automotive.evs-aidl-default-service_cam_buffer_test",
105 defaults: ["android.hardware.automotive.evs-aidl-default-service-default"],
106 vendor: true,
107 srcs: ["tests/EvsCameraBufferTest.cpp"],
108 static_libs: [
109 "android.hardware.automotive.evs-aidl-default-service-lib",
110 "libgmock",
111 ],
Hao Chen0d14a822023-08-29 20:34:08 +0000112 test_suites: [
113 "general-tests",
114 ],
115}
116
117cc_test {
118 name: "android.hardware.automotive.evs-aidl-default-service_cam_state_test",
119 defaults: ["android.hardware.automotive.evs-aidl-default-service-default"],
120 vendor: true,
121 srcs: ["tests/EvsCameraStateTest.cpp"],
122 static_libs: [
123 "android.hardware.automotive.evs-aidl-default-service-lib",
124 "libgmock",
125 ],
126 test_suites: [
127 "general-tests",
128 ],
Hao Chen5ed789c2023-08-24 20:07:29 +0000129}