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 22soong_config_module_type_import { 23 from: "hardware/google/camera/common/hal/Android.bp", 24 module_types: ["gch_hal_cc_defaults"], 25} 26 27gch_hal_cc_defaults { 28 name: "gch_hwl_linking_cc_defaults", 29 soong_config_variables: { 30 hwl_library: { 31 lyric: { 32 shared_libs: ["//vendor/google/services/LyricCameraHAL/src:liblyric_hwl"], 33 }, 34 conditions_default: { 35 cflags: ["-DGCH_HWL_USE_DLOPEN=1"], 36 }, 37 }, 38 }, 39} 40 41aconfig_declarations { 42 name: "libgooglecamerahal_flags", 43 package: "libgooglecamerahal.flags", 44 container: "vendor", 45 srcs: ["libgooglecamerahal_flags.aconfig"], 46} 47 48cc_aconfig_library { 49 name: "libgooglecamerahal_flags_cc_lib", 50 aconfig_declarations: "libgooglecamerahal_flags", 51 defaults: ["google_camera_hal_defaults"], 52 host_supported: true, 53 owner: "google", 54 vendor: true, 55} 56 57cc_library_shared { 58 name: "libgooglecamerahal", 59 defaults: [ 60 "google_camera_hal_defaults", 61 "gch_hwl_linking_cc_defaults", 62 ], 63 owner: "google", 64 vendor: true, 65 compile_multilib: "first", 66 ldflags: [ 67 "-Wl,--rpath,/vendor/${LIB}/camera/capture_sessions", 68 ], 69 srcs: [ 70 "basic_capture_session.cc", 71 "basic_request_processor.cc", 72 "basic_result_processor.cc", 73 "camera_device.cc", 74 "camera_device_session.cc", 75 "camera_provider.cc", 76 "capture_session_utils.cc", 77 "capture_session_wrapper_process_block.cc", 78 "pending_requests_tracker.cc", 79 "realtime_zsl_request_processor.cc", 80 "realtime_zsl_result_processor.cc", 81 "realtime_zsl_result_request_processor.cc", 82 "snapshot_request_processor.cc", 83 "snapshot_result_processor.cc", 84 "vendor_tags.cc", 85 "zsl_snapshot_capture_session.cc", 86 ], 87 shared_libs: [ 88 "lib_profiler", 89 "libbase", 90 "libcamera_metadata", 91 "libcutils", 92 "libgooglecamerahal_flags_cc_lib", 93 "libgooglecamerahalutils", 94 "libhidlbase", 95 "liblog", 96 "libmeminfo", 97 "libui", 98 "libutils", 99 "libsync", 100 ], 101 header_libs: [ 102 "libgooglecamerahal_headers", 103 ], 104 // b/129863492, clang-tidy nondeterministic seg fault 105 tidy: false, 106 export_include_dirs: [ 107 ".", 108 ], 109 export_header_lib_headers: [ 110 "libgooglecamerahal_headers", 111 ], 112 export_shared_lib_headers: [ 113 "lib_profiler", 114 ], 115} 116