1//
2// Copyright (C) 2019 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    default_team: "trendy_team_camera_framework",
19    default_applicable_licenses: ["Android-Apache-2.0"],
20}
21
22filegroup {
23    name: "cameraservice_vts_default_map",
24    srcs: ["cameraservice_vts_default.map"],
25}
26
27cc_test {
28    name: "VtsHalCameraServiceV2_0TargetTest",
29    defaults: ["VtsHalTargetTestDefaults"],
30
31    vendor: true,
32    srcs: ["VtsHalCameraServiceV2_0TargetTest.cpp"],
33    static_libs: [
34        "android.hardware.camera.common@1.0-helper",
35        "android.frameworks.cameraservice.device@2.0",
36        "android.frameworks.cameraservice.device@2.1",
37        "android.frameworks.cameraservice.service@2.0",
38        "android.frameworks.cameraservice.service@2.1",
39        "android.frameworks.cameraservice.service@2.2",
40        "android.frameworks.cameraservice.common@2.0",
41        "libfmq",
42        "libarect",
43        "libcamera_metadata",
44    ],
45
46    // This is a vendor test that needs can be run on older devices
47    // so should be built with a static stl as well, since if its built
48    // with a newer shared libc++, the older device may not have some symbols.
49    // b/333438055 elaborates on what can go wrong when libc++ is partially
50    // exported.
51    version_script: ":cameraservice_vts_default_map",
52    stl: "libc++_static",
53    shared_libs: [
54        "libmediandk",
55        "libnativewindow",
56        "liblog",
57    ],
58
59    test_suites: ["vts"],
60}
61
62cc_test {
63    name: "VtsAidlCameraServiceTargetTest",
64    defaults: [
65        "VtsHalTargetTestDefaults",
66    ],
67
68    vendor: true,
69    srcs: ["VtsAidlCameraServiceTargetTest.cpp"],
70    static_libs: [
71        "android.hardware.common-V2-ndk",
72        "android.hardware.common.fmq-V1-ndk",
73        "android.hardware.camera.common-helper",
74        "android.frameworks.cameraservice.common-V1-ndk",
75        "android.frameworks.cameraservice.device-V2-ndk",
76        "android.frameworks.cameraservice.service-V2-ndk",
77        "libaidlcommonsupport",
78        "libfmq",
79        "libarect",
80        "libcamera_metadata",
81    ],
82    version_script: ":cameraservice_vts_default_map",
83    stl: "libc++_static",
84    shared_libs: [
85        "libbinder_ndk",
86        "libmediandk",
87        "libnativewindow",
88        "liblog",
89    ],
90
91    test_config: "VtsAidlCameraServiceTargetTest.xml",
92    test_suites: ["vts"],
93}
94