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: "android.hardware.camera.provider@2.6-impl-google", 19 defaults: ["google_camera_hal_defaults"], 20 vendor: true, 21 relative_install_path: "hw", 22 srcs: [ 23 "hidl_camera_device.cc", 24 "hidl_camera_device_session.cc", 25 "hidl_camera_provider.cc", 26 "hidl_profiler.cc", 27 "hidl_thermal_utils.cc", 28 "hidl_utils.cc", 29 ], 30 compile_multilib: "first", 31 shared_libs: [ 32 "android.hardware.camera.device@3.2", 33 "android.hardware.camera.device@3.3", 34 "android.hardware.camera.device@3.4", 35 "android.hardware.camera.device@3.5", 36 "android.hardware.camera.provider@2.4", 37 "android.hardware.camera.provider@2.5", 38 "android.hardware.camera.provider@2.6", 39 "android.hardware.graphics.mapper@2.0", 40 "android.hardware.graphics.mapper@3.0", 41 "android.hardware.graphics.mapper@4.0", 42 "android.hardware.thermal@2.0", 43 "libcamera_metadata", 44 "libcutils", 45 "libfmq", 46 "libgooglecamerahal", 47 "libgooglecamerahalutils", 48 "libhidlbase", 49 "liblog", 50 "libutils", 51 "lib_profiler", 52 ], 53 static_libs: [ 54 "android.hardware.camera.common@1.0-helper", 55 ], 56} 57 58cc_defaults { 59 name: "camera_service_defaults", 60 defaults: ["google_camera_hal_defaults"], 61 vendor: true, 62 relative_install_path: "hw", 63 srcs: ["service.cc"], 64 compile_multilib: "first", 65 shared_libs: [ 66 "android.hardware.camera.device@3.2", 67 "android.hardware.camera.device@3.3", 68 "android.hardware.camera.device@3.4", 69 "android.hardware.camera.device@3.5", 70 "android.hardware.camera.provider@2.4", 71 "android.hardware.camera.provider@2.5", 72 "android.hardware.camera.provider@2.6", 73 "android.hardware.graphics.mapper@2.0", 74 "android.hardware.graphics.mapper@3.0", 75 "libbinder", 76 "libhidlbase", 77 "liblog", 78 "libutils", 79 ], 80 vintf_fragments: ["android.hardware.camera.provider@2.6-service-google.xml"] 81} 82 83cc_binary { 84 name: "android.hardware.camera.provider@2.6-service-google", 85 defaults: ["camera_service_defaults"], 86 init_rc: ["android.hardware.camera.provider@2.6-service-google.rc"], 87} 88 89cc_binary { 90 name: "android.hardware.camera.provider@2.6-service-google-lazy", 91 defaults: ["camera_service_defaults"], 92 init_rc: ["android.hardware.camera.provider@2.6-service-google-lazy.rc"], 93 cflags: ["-DLAZY_SERVICE"], 94} 95