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    //   legacy_unencumbered
24    default_applicable_licenses: ["hardware_google_camera_license"],
25}
26
27cc_library_shared {
28    name: "libgooglecamerahalutils",
29    defaults: ["google_camera_hal_defaults"],
30    owner: "google",
31    vendor: true,
32    srcs: [
33        "camera_id_manager.cc",
34        "gralloc_buffer_allocator.cc",
35        "hal_camera_metadata.cc",
36        "hal_utils.cc",
37        "hdrplus_process_block.cc",
38        "hdrplus_request_processor.cc",
39        "hdrplus_result_processor.cc",
40        "hwl_buffer_allocator.cc",
41        "internal_stream_manager.cc",
42        "multicam_realtime_process_block.cc",
43        "pipeline_request_id_manager.cc",
44        "result_dispatcher.cc",
45        "stream_buffer_cache_manager.cc",
46        "utils.cc",
47        "vendor_tag_utils.cc",
48        "zoom_ratio_mapper.cc",
49        "zsl_buffer_manager.cc",
50        "zsl_result_dispatcher.cc",
51    ],
52    shared_libs: [
53        "lib_profiler",
54        "libcamera_metadata",
55        "libcutils",
56        "libgrallocusage",
57        "libhardware",
58        "liblog",
59        "libutils",
60        "libui",
61        "libsync",
62    ],
63    export_shared_lib_headers: [
64        "lib_profiler",
65    ],
66    export_include_dirs: ["."],
67    include_dirs: [
68        "system/media/private/camera/include"
69    ],
70}
71