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