blob: 5f5cb9e288e1ad86dfd164f264b824652dc77ec6 [file] [log] [blame]
Austin Borger485c2472021-12-01 05:08:12 +00001// Copyright 2021 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_applicable_licenses: [
17 "frameworks_av_services_camera_libcameraservice_license",
18 ],
19}
20
21cc_test {
22 name: "cameraservice_test",
23
24 include_dirs: [
25 "system/media/private/camera/include",
26 "external/dynamic_depth/includes",
27 "external/dynamic_depth/internal",
28 ],
29
30 shared_libs: [
31 "libbase",
32 "libcutils",
33 "libcameraservice",
34 "libhidlbase",
35 "liblog",
36 "libcamera_client",
37 "libcamera_metadata",
38 "libui",
39 "libutils",
40 "libjpeg",
41 "libexif",
42 "android.hardware.camera.common@1.0",
43 "android.hardware.camera.provider@2.4",
44 "android.hardware.camera.provider@2.5",
45 "android.hardware.camera.provider@2.6",
46 "android.hardware.camera.provider@2.7",
47 "android.hardware.camera.device@1.0",
48 "android.hardware.camera.device@3.2",
49 "android.hardware.camera.device@3.4",
50 "android.hardware.camera.device@3.7",
51 "android.hidl.token@1.0-utils",
52 ],
53
54 static_libs: [
55 "libgmock",
56 ],
57
58 srcs: [
59 "CameraProviderManagerTest.cpp",
60 "ClientManagerTest.cpp",
61 "DepthProcessorTest.cpp",
62 "DistortionMapperTest.cpp",
63 "ExifUtilsTest.cpp",
64 "NV12Compressor.cpp",
65 "RotateAndCropMapperTest.cpp",
66 "ZoomRatioTest.cpp",
67 ],
68
69 cflags: [
70 "-Wall",
71 "-Wextra",
72 "-Werror",
73 ],
74
75 test_suites: ["device-tests"],
76
Austin Borger6db81852021-12-08 20:51:54 +000077}
78
79cc_test_host {
80 name: "cameraservice_test_host",
81
82 include_dirs: [
83 "frameworks/av/camera/include",
84 "frameworks/av/camera/include/camera",
Austin Borgerb6c06822021-12-13 20:23:35 +000085 "frameworks/native/libs/binder/include_activitymanager"
Austin Borger6db81852021-12-08 20:51:54 +000086 ],
87
88 shared_libs: [
Austin Borgerb6c06822021-12-13 20:23:35 +000089 "libactivity_manager_procstate_aidl-cpp",
Austin Borger6db81852021-12-08 20:51:54 +000090 "libbase",
91 "libbinder",
92 "libcamera_metadata",
93 "libexif",
94 "liblog",
95 "libutils",
96 ],
97
98 static_libs: [
99 "libcamera_client_host",
100 "libcameraservice_host",
101 "libgmock",
102 ],
103
104 srcs: [
Austin Borgerb6c06822021-12-13 20:23:35 +0000105 "ClientManagerTest.cpp",
Austin Borger6db81852021-12-08 20:51:54 +0000106 "ExifUtilsTest.cpp",
107 ],
108
109 cflags: [
110 "-Wall",
111 "-Wextra",
112 "-Werror",
113 ],
114
115 test_suites: ["device-tests"],
116
Austin Borger485c2472021-12-01 05:08:12 +0000117}