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
17cc_library_shared {
18    name: "libgooglecamerahal",
19    defaults: ["google_camera_hal_defaults"],
20    owner: "google",
21    vendor_available: true,
22    ldflags: [
23        "-Wl,--rpath,/system/${LIB}/camera/capture_sessions",
24        "-Wl,--rpath,/vendor/${LIB}/camera/capture_sessions",
25    ],
26    srcs: [
27        "basic_capture_session.cc",
28        "basic_request_processor.cc",
29        "basic_result_processor.cc",
30        "camera_device.cc",
31        "camera_device_session.cc",
32        "camera_provider.cc",
33        "depth_process_block.cc",
34        "dual_ir_capture_session.cc",
35        "dual_ir_depth_result_processor.cc",
36        "dual_ir_request_processor.cc",
37        "dual_ir_result_request_processor.cc",
38        "hal_utils.cc",
39        "hdrplus_capture_session.cc",
40        "hdrplus_process_block.cc",
41        "hdrplus_request_processor.cc",
42        "hdrplus_result_processor.cc",
43        "hwl_buffer_allocator.cc",
44        "internal_stream_manager.cc",
45        "multicam_realtime_process_block.cc",
46        "pending_requests_tracker.cc",
47        "realtime_process_block.cc",
48        "realtime_zsl_request_processor.cc",
49        "realtime_zsl_result_processor.cc",
50        "rgbird_capture_session.cc",
51        "rgbird_depth_result_processor.cc",
52        "rgbird_result_request_processor.cc",
53        "rgbird_rt_request_processor.cc",
54        "vendor_tags.cc",
55    ],
56    shared_libs: [
57        "[email protected]",
58        "[email protected]",
59        "[email protected]",
60        "libcamera_metadata",
61        "libcutils",
62        "libgooglecamerahalutils",
63        "libhidlbase",
64        "liblog",
65        "libutils",
66        "libsync",
67    ],
68    header_libs: [
69        "lib_depth_generator_headers",
70    ],
71    // b/129863492, clang-tidy nondeterministic seg fault
72    tidy: false,
73    export_include_dirs: [
74        ".",
75    ],
76    export_header_lib_headers: [
77        "libgooglecamerahal_headers",
78    ],
79}
80