Dan Willemsen | e7cb781 | 2017-04-19 19:23:50 -0700 | [diff] [blame] | 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: [ |
Dan Willemsen | e7cb781 | 2017-04-19 19:23:50 -0700 | [diff] [blame] | 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/camera2/ICameraDeviceCallbacks.aidl", |
| 35 | "aidl/android/hardware/camera2/ICameraDeviceUser.aidl", |
| 36 | |
| 37 | // Source for camera interface parcelables, and manually-written interfaces |
| 38 | "Camera.cpp", |
| 39 | "CameraMetadata.cpp", |
| 40 | "CameraParameters.cpp", |
| 41 | "CaptureResult.cpp", |
| 42 | "CameraParameters2.cpp", |
| 43 | "ICamera.cpp", |
| 44 | "ICameraClient.cpp", |
| 45 | "ICameraServiceProxy.cpp", |
| 46 | "ICameraRecordingProxy.cpp", |
| 47 | "ICameraRecordingProxyListener.cpp", |
| 48 | "camera2/CaptureRequest.cpp", |
| 49 | "camera2/OutputConfiguration.cpp", |
| 50 | "camera2/SubmitInfo.cpp", |
| 51 | "CameraBase.cpp", |
| 52 | "CameraUtils.cpp", |
| 53 | "VendorTagDescriptor.cpp", |
| 54 | ], |
| 55 | |
| 56 | shared_libs: [ |
| 57 | "libcutils", |
| 58 | "libutils", |
| 59 | "liblog", |
| 60 | "libbinder", |
| 61 | "libgui", |
| 62 | "libcamera_metadata", |
Mathias Agopian | defb1b0 | 2017-04-27 22:40:10 -0700 | [diff] [blame] | 63 | "libnativewindow", |
Dan Willemsen | e7cb781 | 2017-04-19 19:23:50 -0700 | [diff] [blame] | 64 | ], |
| 65 | |
| 66 | include_dirs: [ |
| 67 | "system/media/private/camera/include", |
| 68 | "frameworks/native/include/media/openmax", |
| 69 | ], |
Vijay Venkatraman | 9b2049e | 2017-06-08 13:49:20 -0700 | [diff] [blame^] | 70 | export_include_dirs: [ |
| 71 | "include", |
| 72 | "include/camera" |
| 73 | ], |
Dan Willemsen | e7cb781 | 2017-04-19 19:23:50 -0700 | [diff] [blame] | 74 | export_shared_lib_headers: ["libcamera_metadata"], |
| 75 | |
| 76 | cflags: [ |
| 77 | "-Werror", |
| 78 | "-Wall", |
| 79 | "-Wextra", |
| 80 | ], |
Mark Urbanus | a096aba | 2017-06-02 12:19:05 -0700 | [diff] [blame] | 81 | |
Dan Willemsen | e7cb781 | 2017-04-19 19:23:50 -0700 | [diff] [blame] | 82 | } |