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