Jayant Chowdhary | 5033aa1 | 2018-07-24 11:56:19 -0700 | [diff] [blame] | 1 | // Copyright 2018 The Android Open Source Project |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
| 15 | // |
| 16 | // libcameraservice |
| 17 | // |
| 18 | |
| 19 | cc_library_shared { |
| 20 | name: "libcameraservice", |
| 21 | |
| 22 | // Camera service source |
| 23 | |
| 24 | srcs: [ |
| 25 | "CameraService.cpp", |
| 26 | "CameraFlashlight.cpp", |
| 27 | "common/Camera2ClientBase.cpp", |
| 28 | "common/CameraDeviceBase.cpp", |
| 29 | "common/CameraProviderManager.cpp", |
| 30 | "common/FrameProcessorBase.cpp", |
| 31 | "api1/CameraClient.cpp", |
| 32 | "api1/Camera2Client.cpp", |
| 33 | "api1/client2/Parameters.cpp", |
| 34 | "api1/client2/FrameProcessor.cpp", |
| 35 | "api1/client2/StreamingProcessor.cpp", |
| 36 | "api1/client2/JpegProcessor.cpp", |
| 37 | "api1/client2/CallbackProcessor.cpp", |
| 38 | "api1/client2/JpegCompressor.cpp", |
| 39 | "api1/client2/CaptureSequencer.cpp", |
| 40 | "api1/client2/ZslProcessor.cpp", |
| 41 | "api2/CameraDeviceClient.cpp", |
Emilian Peev | 538c90e | 2018-12-17 18:03:19 +0000 | [diff] [blame] | 42 | "api2/CompositeStream.cpp", |
| 43 | "api2/DepthCompositeStream.cpp", |
Shuzhen Wang | 68ac7ad | 2019-01-30 14:03:28 -0800 | [diff] [blame] | 44 | "api2/HeicEncoderInfoManager.cpp", |
| 45 | "api2/HeicCompositeStream.cpp", |
Jayant Chowdhary | 5033aa1 | 2018-07-24 11:56:19 -0700 | [diff] [blame] | 46 | "device1/CameraHardwareInterface.cpp", |
| 47 | "device3/Camera3Device.cpp", |
| 48 | "device3/Camera3Stream.cpp", |
| 49 | "device3/Camera3IOStreamBase.cpp", |
| 50 | "device3/Camera3InputStream.cpp", |
| 51 | "device3/Camera3OutputStream.cpp", |
| 52 | "device3/Camera3DummyStream.cpp", |
| 53 | "device3/Camera3SharedOutputStream.cpp", |
| 54 | "device3/StatusTracker.cpp", |
| 55 | "device3/Camera3BufferManager.cpp", |
| 56 | "device3/Camera3StreamSplitter.cpp", |
| 57 | "device3/DistortionMapper.cpp", |
| 58 | "gui/RingBufferConsumer.cpp", |
Jayant Chowdhary | 1236193 | 2018-08-27 14:46:13 -0700 | [diff] [blame] | 59 | "utils/CameraThreadState.cpp", |
Jayant Chowdhary | 0c94727 | 2018-08-15 14:42:04 -0700 | [diff] [blame] | 60 | "hidl/AidlCameraDeviceCallbacks.cpp", |
Jayant Chowdhary | 94f79a9 | 2018-08-15 13:57:17 -0700 | [diff] [blame] | 61 | "hidl/AidlCameraServiceListener.cpp", |
Jayant Chowdhary | be543d4 | 2018-08-15 13:16:14 -0700 | [diff] [blame] | 62 | "hidl/Convert.cpp", |
Jayant Chowdhary | 0c94727 | 2018-08-15 14:42:04 -0700 | [diff] [blame] | 63 | "hidl/HidlCameraDeviceUser.cpp", |
| 64 | "hidl/HidlCameraService.cpp", |
Jayant Chowdhary | 5033aa1 | 2018-07-24 11:56:19 -0700 | [diff] [blame] | 65 | "utils/CameraTraces.cpp", |
| 66 | "utils/AutoConditionLock.cpp", |
Shuzhen Wang | 68ac7ad | 2019-01-30 14:03:28 -0800 | [diff] [blame] | 67 | "utils/ExifUtils.cpp", |
Jayant Chowdhary | 5033aa1 | 2018-07-24 11:56:19 -0700 | [diff] [blame] | 68 | "utils/TagMonitor.cpp", |
| 69 | "utils/LatencyHistogram.cpp", |
| 70 | ], |
| 71 | |
| 72 | shared_libs: [ |
Jayant Chowdhary | b61526c | 2019-05-13 19:37:42 -0700 | [diff] [blame] | 73 | "libbase", |
Emilian Peev | cbf174b | 2019-01-25 14:38:59 -0800 | [diff] [blame] | 74 | "libdl", |
Shuzhen Wang | 68ac7ad | 2019-01-30 14:03:28 -0800 | [diff] [blame] | 75 | "libexif", |
Jayant Chowdhary | 5033aa1 | 2018-07-24 11:56:19 -0700 | [diff] [blame] | 76 | "libui", |
| 77 | "liblog", |
| 78 | "libutilscallstack", |
| 79 | "libutils", |
| 80 | "libbinder", |
| 81 | "libcutils", |
| 82 | "libmedia", |
| 83 | "libmediautils", |
| 84 | "libcamera_client", |
| 85 | "libcamera_metadata", |
| 86 | "libfmq", |
| 87 | "libgui", |
| 88 | "libhardware", |
| 89 | "libhidlbase", |
Jayant Chowdhary | 5033aa1 | 2018-07-24 11:56:19 -0700 | [diff] [blame] | 90 | "libjpeg", |
Shuzhen Wang | 68ac7ad | 2019-01-30 14:03:28 -0800 | [diff] [blame] | 91 | "libmedia_omx", |
Jayant Chowdhary | 5033aa1 | 2018-07-24 11:56:19 -0700 | [diff] [blame] | 92 | "libmemunreachable", |
Michael Groover | d1d435a | 2018-12-18 17:39:42 -0800 | [diff] [blame] | 93 | "libsensorprivacy", |
Shuzhen Wang | 68ac7ad | 2019-01-30 14:03:28 -0800 | [diff] [blame] | 94 | "libstagefright", |
Jayant Chowdhary | 0c94727 | 2018-08-15 14:42:04 -0700 | [diff] [blame] | 95 | "libstagefright_foundation", |
Shuzhen Wang | 219c299 | 2019-02-15 17:24:28 -0800 | [diff] [blame] | 96 | "libyuv", |
Jayant Chowdhary | be543d4 | 2018-08-15 13:16:14 -0700 | [diff] [blame] | 97 | "android.frameworks.cameraservice.common@2.0", |
| 98 | "android.frameworks.cameraservice.service@2.0", |
| 99 | "android.frameworks.cameraservice.device@2.0", |
Jayant Chowdhary | 5033aa1 | 2018-07-24 11:56:19 -0700 | [diff] [blame] | 100 | "android.hardware.camera.common@1.0", |
| 101 | "android.hardware.camera.provider@2.4", |
Eino-Ville Talvala | 63f3611 | 2018-12-06 14:57:03 -0800 | [diff] [blame] | 102 | "android.hardware.camera.provider@2.5", |
Jayant Chowdhary | 5033aa1 | 2018-07-24 11:56:19 -0700 | [diff] [blame] | 103 | "android.hardware.camera.device@1.0", |
| 104 | "android.hardware.camera.device@3.2", |
| 105 | "android.hardware.camera.device@3.3", |
| 106 | "android.hardware.camera.device@3.4", |
Shuzhen Wang | f9d2c02 | 2018-08-21 12:07:35 -0700 | [diff] [blame] | 107 | "android.hardware.camera.device@3.5", |
Jayant Chowdhary | 5033aa1 | 2018-07-24 11:56:19 -0700 | [diff] [blame] | 108 | ], |
| 109 | |
| 110 | export_shared_lib_headers: [ |
| 111 | "libbinder", |
| 112 | "libcamera_client", |
| 113 | "libfmq", |
Michael Groover | d1d435a | 2018-12-18 17:39:42 -0800 | [diff] [blame] | 114 | "libsensorprivacy", |
Jayant Chowdhary | 5033aa1 | 2018-07-24 11:56:19 -0700 | [diff] [blame] | 115 | ], |
| 116 | |
| 117 | include_dirs: [ |
| 118 | "system/media/private/camera/include", |
| 119 | "frameworks/native/include/media/openmax", |
Jayant Chowdhary | be543d4 | 2018-08-15 13:16:14 -0700 | [diff] [blame] | 120 | "frameworks/av/media/ndk", |
Emilian Peev | 538c90e | 2018-12-17 18:03:19 +0000 | [diff] [blame] | 121 | "external/dynamic_depth/includes", |
| 122 | "external/dynamic_depth/internal", |
Jayant Chowdhary | 5033aa1 | 2018-07-24 11:56:19 -0700 | [diff] [blame] | 123 | ], |
| 124 | |
| 125 | export_include_dirs: ["."], |
| 126 | |
| 127 | cflags: [ |
| 128 | "-Wall", |
| 129 | "-Wextra", |
| 130 | "-Werror", |
Emilian Peev | 538c90e | 2018-12-17 18:03:19 +0000 | [diff] [blame] | 131 | "-Wno-ignored-qualifiers", |
Jayant Chowdhary | 5033aa1 | 2018-07-24 11:56:19 -0700 | [diff] [blame] | 132 | ], |
| 133 | |
| 134 | } |
Emilian Peev | cbf174b | 2019-01-25 14:38:59 -0800 | [diff] [blame] | 135 | |
| 136 | cc_library_shared { |
| 137 | name: "libdepthphoto", |
| 138 | |
| 139 | srcs: [ |
Emilian Peev | 4b08d5d | 2019-02-01 09:53:14 -0800 | [diff] [blame] | 140 | "utils/ExifUtils.cpp", |
Emilian Peev | cbf174b | 2019-01-25 14:38:59 -0800 | [diff] [blame] | 141 | "common/DepthPhotoProcessor.cpp", |
| 142 | ], |
| 143 | |
| 144 | shared_libs: [ |
| 145 | "libimage_io", |
| 146 | "libdynamic_depth", |
| 147 | "libxml2", |
| 148 | "liblog", |
| 149 | "libutilscallstack", |
| 150 | "libutils", |
| 151 | "libcutils", |
| 152 | "libjpeg", |
| 153 | "libmemunreachable", |
Emilian Peev | 4b08d5d | 2019-02-01 09:53:14 -0800 | [diff] [blame] | 154 | "libexif", |
| 155 | "libcamera_client", |
Emilian Peev | cbf174b | 2019-01-25 14:38:59 -0800 | [diff] [blame] | 156 | ], |
| 157 | |
| 158 | include_dirs: [ |
| 159 | "external/dynamic_depth/includes", |
| 160 | "external/dynamic_depth/internal", |
| 161 | ], |
| 162 | |
| 163 | export_include_dirs: ["."], |
| 164 | |
| 165 | cflags: [ |
| 166 | "-Wall", |
| 167 | "-Wextra", |
| 168 | "-Werror", |
| 169 | "-Wno-ignored-qualifiers", |
| 170 | ], |
| 171 | |
| 172 | } |