| // Copyright (C) 2022 The Android Open Source Project |
| // |
| // Licensed under the Apache License, Version 2.0 (the "License"); |
| // you may not use this file except in compliance with the License. |
| // You may obtain a copy of the License at |
| // |
| // http://www.apache.org/licenses/LICENSE-2.0 |
| // |
| // Unless required by applicable law or agreed to in writing, software |
| // distributed under the License is distributed on an "AS IS" BASIS, |
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| // See the License for the specific language governing permissions and |
| // limitations under the License. |
| |
| package { |
| default_team: "trendy_team_automotive", |
| // See: http://go/android-license-faq |
| // A large-scale-change added 'default_applicable_licenses' to import |
| // all of the 'license_kinds' from "hardware_interfaces_license" |
| // to get the below license kinds: |
| // SPDX-license-identifier-Apache-2.0 |
| default_applicable_licenses: ["hardware_interfaces_license"], |
| } |
| |
| cc_defaults { |
| name: "android.hardware.automotive.evs-aidl-default-service-default", |
| defaults: ["EvsHalDefaults"], |
| header_libs: [ |
| "libstagefright_headers", |
| ], |
| shared_libs: [ |
| "android.hardware.graphics.bufferqueue@1.0", |
| "android.hardware.graphics.bufferqueue@2.0", |
| "android.hidl.token@1.0-utils", |
| "libEGL", |
| "libGLESv2", |
| "libbinder_ndk", |
| "libbufferqueueconverter", |
| "libcamera_metadata", |
| "libhardware_legacy", |
| "libhidlbase", |
| "libmediandk", |
| "libnativewindow", |
| "libtinyxml2", |
| "libui", |
| "libyuv", |
| ], |
| } |
| |
| cc_library { |
| name: "android.hardware.automotive.evs-aidl-default-service-lib", |
| defaults: ["android.hardware.automotive.evs-aidl-default-service-default"], |
| vendor: true, |
| cflags: [ |
| "-DGL_GLEXT_PROTOTYPES", |
| "-DEGL_EGLEXT_PROTOTYPES", |
| ], |
| srcs: [ |
| ":libgui_frame_event_aidl", |
| "src/*.cpp", |
| ], |
| exclude_srcs: ["src/service.cpp"], |
| whole_static_libs: [ |
| "android.frameworks.automotive.display-V2-ndk", |
| "android.hardware.automotive.evs-V2-ndk", |
| "android.hardware.common-V2-ndk", |
| "libaidlcommonsupport", |
| "libcutils", |
| ], |
| header_libs: [ |
| "libgui_aidl_headers", |
| ], |
| local_include_dirs: ["include"], |
| include_dirs: ["frameworks/native/include/"], |
| export_include_dirs: ["include"], |
| } |
| |
| cc_binary { |
| name: "android.hardware.automotive.evs-aidl-default-service", |
| defaults: ["android.hardware.automotive.evs-aidl-default-service-default"], |
| vintf_fragments: ["manifest_evs-default-service.xml"], |
| init_rc: ["evs-default-service.rc"], |
| vendor: true, |
| relative_install_path: "hw", |
| cflags: [ |
| "-DGL_GLEXT_PROTOTYPES", |
| "-DEGL_EGLEXT_PROTOTYPES", |
| ], |
| srcs: ["src/service.cpp"], |
| static_libs: [ |
| "android.hardware.automotive.evs-aidl-default-service-lib", |
| ], |
| include_dirs: ["frameworks/native/include/"], |
| required: ["evs_mock_hal_configuration.xml"], |
| } |
| |
| prebuilt_etc { |
| name: "evs_mock_hal_configuration.xml", |
| soc_specific: true, |
| src: "resources/evs_mock_configuration.xml", |
| sub_dir: "automotive/evs", |
| } |
| |
| cc_test { |
| name: "android.hardware.automotive.evs-aidl-default-service_cam_buffer_test", |
| defaults: ["android.hardware.automotive.evs-aidl-default-service-default"], |
| vendor: true, |
| srcs: ["tests/EvsCameraBufferTest.cpp"], |
| static_libs: [ |
| "android.hardware.automotive.evs-aidl-default-service-lib", |
| "libgmock", |
| ], |
| test_suites: [ |
| "general-tests", |
| ], |
| } |
| |
| cc_test { |
| name: "android.hardware.automotive.evs-aidl-default-service_cam_state_test", |
| defaults: ["android.hardware.automotive.evs-aidl-default-service-default"], |
| vendor: true, |
| srcs: ["tests/EvsCameraStateTest.cpp"], |
| static_libs: [ |
| "android.hardware.automotive.evs-aidl-default-service-lib", |
| "libgmock", |
| ], |
| test_suites: [ |
| "general-tests", |
| ], |
| } |