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    // 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_google_camera_license"
21    // to get the below license kinds:
22    //   SPDX-license-identifier-Apache-2.0
23    default_applicable_licenses: ["hardware_google_camera_license"],
24}
25
26cc_library_headers {
27    name: "libgoogle_camera_hal_tests_headers",
28    vendor: true,
29    export_include_dirs: [
30        ".",
31    ],
32}
33
34cc_library_shared {
35    name: "libgoogle_camera_hal_tests",
36    defaults: ["google_camera_hal_defaults"],
37    compile_multilib: "first",
38    owner: "google",
39    vendor: true,
40    srcs: [
41        "camera_device_session_tests.cc",
42        "camera_device_tests.cc",
43        "camera_id_manager_tests.cc",
44        "camera_provider_tests.cc",
45        "gralloc_buffer_allocator_tests.cc",
46        "hal_camera_metadata_tests.cc",
47        "hwl_buffer_allocator_tests.cc",
48        "internal_stream_manager_tests.cc",
49        "mock_device_session_hwl.cc",
50        "pipeline_request_id_manager_tests.cc",
51        "process_block_tests.cc",
52        "request_processor_tests.cc",
53        "result_dispatcher_tests.cc",
54        "result_processor_tests.cc",
55        "stream_buffer_cache_manager_tests.cc",
56        "test_utils.cc",
57        "vendor_tag_tests.cc",
58        "zsl_buffer_manager_tests.cc",
59    ],
60    shared_libs: [
61        "android.hardware.camera.provider@2.4",
62        "android.hardware.graphics.mapper@2.0",
63        "android.hardware.graphics.mapper@3.0",
64        "android.hardware.graphics.mapper@4.0",
65        "lib_profiler",
66        "libcamera_metadata",
67        "libcutils",
68        "libgooglecamerahal",
69        "libgooglecamerahalutils",
70        "libhardware",
71        "libhidlbase",
72        "liblog",
73        "libutils",
74    ],
75    static_libs: [
76        "libgmock",
77        "libgtest",
78    ],
79    header_libs: [
80        "libhardware_headers",
81    ],
82    export_shared_lib_headers: [
83        "lib_profiler",
84    ],
85    export_include_dirs: ["."],
86}
87
88cc_test {
89    name: "google_camera_hal_tests",
90    compile_multilib: "first",
91    owner: "google",
92    vendor: true,
93    gtest: true,
94    srcs: [
95        "google_camera_hal_tests.cc",
96    ],
97    shared_libs: [
98        "libgoogle_camera_hal_tests",
99        "liblog",
100        "libutils",
101    ],
102    local_include_dirs: ["."],
103}
104