Home | History | Annotate | Download | only in camera
      1 // Copyright 2010 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 subdirs = ["ndk"]
     16 
     17 cc_library_shared {
     18     name: "libcamera_client",
     19 
     20     aidl: {
     21         export_aidl_headers: true,
     22         local_include_dirs: ["aidl"],
     23         include_dirs: [
     24             "frameworks/native/aidl/gui",
     25         ],
     26     },
     27 
     28     srcs: [
     29         // AIDL files for camera interfaces
     30         // The headers for these interfaces will be available to any modules that
     31         // include libcamera_client, at the path "aidl/package/path/BnFoo.h"
     32         "aidl/android/hardware/ICameraService.aidl",
     33         "aidl/android/hardware/ICameraServiceListener.aidl",
     34         "aidl/android/hardware/ICameraServiceProxy.aidl",
     35         "aidl/android/hardware/camera2/ICameraDeviceCallbacks.aidl",
     36         "aidl/android/hardware/camera2/ICameraDeviceUser.aidl",
     37 
     38 
     39         // Source for camera interface parcelables, and manually-written interfaces
     40         "Camera.cpp",
     41         "CameraMetadata.cpp",
     42         "CameraParameters.cpp",
     43         "CaptureResult.cpp",
     44         "CameraParameters2.cpp",
     45         "ICamera.cpp",
     46         "ICameraClient.cpp",
     47         "ICameraRecordingProxy.cpp",
     48         "ICameraRecordingProxyListener.cpp",
     49         "camera2/CaptureRequest.cpp",
     50         "camera2/OutputConfiguration.cpp",
     51         "camera2/SubmitInfo.cpp",
     52         "CameraBase.cpp",
     53         "CameraUtils.cpp",
     54         "VendorTagDescriptor.cpp",
     55     ],
     56 
     57     shared_libs: [
     58         "libcutils",
     59         "libutils",
     60         "liblog",
     61         "libbinder",
     62         "libgui",
     63         "libcamera_metadata",
     64         "libnativewindow",
     65     ],
     66 
     67     include_dirs: [
     68         "system/media/private/camera/include",
     69         "frameworks/native/include/media/openmax",
     70     ],
     71     export_include_dirs: [
     72          "include",
     73          "include/camera"
     74     ],
     75     export_shared_lib_headers: ["libcamera_metadata"],
     76 
     77     cflags: [
     78         "-Werror",
     79         "-Wall",
     80         "-Wextra",
     81     ],
     82 
     83 }
     84