Home | History | Annotate | Download | only in libcameraservice
      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",
     42         "api2/CompositeStream.cpp",
     43         "api2/DepthCompositeStream.cpp",
     44         "api2/HeicEncoderInfoManager.cpp",
     45         "api2/HeicCompositeStream.cpp",
     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",
     59         "utils/CameraThreadState.cpp",
     60         "hidl/AidlCameraDeviceCallbacks.cpp",
     61         "hidl/AidlCameraServiceListener.cpp",
     62         "hidl/Convert.cpp",
     63         "hidl/HidlCameraDeviceUser.cpp",
     64         "hidl/HidlCameraService.cpp",
     65         "utils/CameraTraces.cpp",
     66         "utils/AutoConditionLock.cpp",
     67         "utils/ExifUtils.cpp",
     68         "utils/TagMonitor.cpp",
     69         "utils/LatencyHistogram.cpp",
     70     ],
     71 
     72     shared_libs: [
     73         "libbase",
     74         "libdl",
     75         "libexif",
     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         "libhwbinder",
     90         "libhidlbase",
     91         "libhidltransport",
     92         "libjpeg",
     93         "libmedia_omx",
     94         "libmemunreachable",
     95         "libsensorprivacy",
     96         "libstagefright",
     97         "libstagefright_foundation",
     98         "libyuv",
     99         "android.frameworks.cameraservice.common (a] 2.0",
    100         "android.frameworks.cameraservice.service (a] 2.0",
    101         "android.frameworks.cameraservice.device (a] 2.0",
    102         "android.hardware.camera.common (a] 1.0",
    103         "android.hardware.camera.provider (a] 2.4",
    104         "android.hardware.camera.provider (a] 2.5",
    105         "android.hardware.camera.device (a] 1.0",
    106         "android.hardware.camera.device (a] 3.2",
    107         "android.hardware.camera.device (a] 3.3",
    108         "android.hardware.camera.device (a] 3.4",
    109         "android.hardware.camera.device (a] 3.5",
    110     ],
    111 
    112     export_shared_lib_headers: [
    113         "libbinder",
    114         "libcamera_client",
    115         "libfmq",
    116         "libsensorprivacy",
    117     ],
    118 
    119     include_dirs: [
    120         "system/media/private/camera/include",
    121         "frameworks/native/include/media/openmax",
    122         "frameworks/av/media/ndk",
    123         "external/dynamic_depth/includes",
    124         "external/dynamic_depth/internal",
    125     ],
    126 
    127     export_include_dirs: ["."],
    128 
    129     cflags: [
    130         "-Wall",
    131         "-Wextra",
    132         "-Werror",
    133         "-Wno-ignored-qualifiers",
    134     ],
    135 
    136 }
    137 
    138 cc_library_shared {
    139     name: "libdepthphoto",
    140 
    141     srcs: [
    142         "utils/ExifUtils.cpp",
    143         "common/DepthPhotoProcessor.cpp",
    144     ],
    145 
    146     shared_libs: [
    147         "libimage_io",
    148         "libdynamic_depth",
    149         "libxml2",
    150         "liblog",
    151         "libutilscallstack",
    152         "libutils",
    153         "libcutils",
    154         "libjpeg",
    155         "libmemunreachable",
    156         "libexif",
    157         "libcamera_client",
    158     ],
    159 
    160     include_dirs: [
    161         "external/dynamic_depth/includes",
    162         "external/dynamic_depth/internal",
    163     ],
    164 
    165     export_include_dirs: ["."],
    166 
    167     cflags: [
    168         "-Wall",
    169         "-Wextra",
    170         "-Werror",
    171         "-Wno-ignored-qualifiers",
    172     ],
    173 
    174 }
    175