blob: 727ef03e72909730b3a8c2c8274e92a7202377e3 [file] [log] [blame]
Avichal Rakesh362242f2022-02-08 12:40:53 -08001//
2// Copyright (C) 2022 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17package {
18 // See: http://go/android-license-faq
19 // A large-scale-change added 'default_applicable_licenses' to import
20 // all of the 'license_kinds' from "hardware_interfaces_license"
21 // to get the below license kinds:
22 // SPDX-license-identifier-Apache-2.0
23 default_applicable_licenses: ["hardware_interfaces_license"],
24}
25
26cc_test {
27 name: "VtsAidlHalCameraProvider_TargetTest",
28 defaults: [
29 "VtsHalTargetTestDefaults",
30 "use_libaidlvintf_gtest_helper_static",
31 ],
32 srcs: [
33 "camera_aidl_test.cpp",
34 "device_cb.cpp",
35 "empty_device_cb.cpp",
36 "simple_device_cb.cpp",
37 "torch_provider_cb.cpp",
38 "VtsAidlHalCameraProvider_TargetTest.cpp",
39 ],
40
41 // TODO(b/64437680): Assume these are always available on the device.
42 shared_libs: [
43 "libbinder_ndk",
44 "libcamera_metadata",
45 "libcutils",
46 "libfmq",
47 "libgui",
48 "libui",
49 "libbase",
50 "android.hardware.common-V2-ndk",
51 "android.hardware.common.fmq-V1-ndk",
52 "android.hardware.graphics.mapper@2.0",
53 "android.hardware.graphics.mapper@3.0",
54 "android.hardware.graphics.mapper@4.0",
55 ],
56
57 // Statically link to libs not guaranteed to be present on the device.
58 static_libs: [
59 "android.hardware.camera.common@1.0-helper",
60 "android.hardware.camera.common-V1-ndk",
61 "android.hardware.camera.device-V1-ndk",
62 "android.hardware.camera.metadata-V1-ndk",
63 "android.hardware.camera.provider-V1-ndk",
64 "android.hardware.graphics.common-V3-ndk",
65 "android.hidl.allocator@1.0",
66 "libgrallocusage",
67 "libhidlmemory",
68 "libgralloctypes",
69 "libaidlcommonsupport",
70 ],
71 test_suites: [
72 "general-tests",
73 "vts",
74 ],
75}