1// 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 default_team: "trendy_team_automotive", 17 // 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_defaults { 26 name: "android.hardware.automotive.evs-aidl-default-service-default", 27 defaults: ["EvsHalDefaults"], 28 header_libs: [ 29 "libstagefright_headers", 30 ], 31 shared_libs: [ 32 "android.hardware.graphics.bufferqueue@1.0", 33 "android.hardware.graphics.bufferqueue@2.0", 34 "android.hidl.token@1.0-utils", 35 "libEGL", 36 "libGLESv2", 37 "libbinder_ndk", 38 "libbufferqueueconverter", 39 "libcamera_metadata", 40 "libhardware_legacy", 41 "libhidlbase", 42 "libmediandk", 43 "libnativewindow", 44 "libtinyxml2", 45 "libui", 46 "libyuv", 47 ], 48} 49 50cc_library { 51 name: "android.hardware.automotive.evs-aidl-default-service-lib", 52 defaults: ["android.hardware.automotive.evs-aidl-default-service-default"], 53 vendor: true, 54 cflags: [ 55 "-DGL_GLEXT_PROTOTYPES", 56 "-DEGL_EGLEXT_PROTOTYPES", 57 ], 58 srcs: [ 59 ":libgui_frame_event_aidl", 60 "src/*.cpp", 61 ], 62 exclude_srcs: ["src/service.cpp"], 63 whole_static_libs: [ 64 "android.frameworks.automotive.display-V2-ndk", 65 "android.hardware.automotive.evs-V2-ndk", 66 "android.hardware.common-V2-ndk", 67 "libaidlcommonsupport", 68 "libcutils", 69 ], 70 header_libs: [ 71 "libgui_aidl_headers", 72 ], 73 local_include_dirs: ["include"], 74 include_dirs: ["frameworks/native/include/"], 75 export_include_dirs: ["include"], 76} 77 78cc_binary { 79 name: "android.hardware.automotive.evs-aidl-default-service", 80 defaults: ["android.hardware.automotive.evs-aidl-default-service-default"], 81 vintf_fragments: ["manifest_evs-default-service.xml"], 82 init_rc: ["evs-default-service.rc"], 83 vendor: true, 84 relative_install_path: "hw", 85 cflags: [ 86 "-DGL_GLEXT_PROTOTYPES", 87 "-DEGL_EGLEXT_PROTOTYPES", 88 ], 89 srcs: ["src/service.cpp"], 90 static_libs: [ 91 "android.hardware.automotive.evs-aidl-default-service-lib", 92 ], 93 include_dirs: ["frameworks/native/include/"], 94 required: ["evs_mock_hal_configuration.xml"], 95} 96 97prebuilt_etc { 98 name: "evs_mock_hal_configuration.xml", 99 soc_specific: true, 100 src: "resources/evs_mock_configuration.xml", 101 sub_dir: "automotive/evs", 102} 103 104cc_test { 105 name: "android.hardware.automotive.evs-aidl-default-service_cam_buffer_test", 106 defaults: ["android.hardware.automotive.evs-aidl-default-service-default"], 107 vendor: true, 108 srcs: ["tests/EvsCameraBufferTest.cpp"], 109 static_libs: [ 110 "android.hardware.automotive.evs-aidl-default-service-lib", 111 "libgmock", 112 ], 113 test_suites: [ 114 "general-tests", 115 ], 116} 117 118cc_test { 119 name: "android.hardware.automotive.evs-aidl-default-service_cam_state_test", 120 defaults: ["android.hardware.automotive.evs-aidl-default-service-default"], 121 vendor: true, 122 srcs: ["tests/EvsCameraStateTest.cpp"], 123 static_libs: [ 124 "android.hardware.automotive.evs-aidl-default-service-lib", 125 "libgmock", 126 ], 127 test_suites: [ 128 "general-tests", 129 ], 130} 131