blob: 21588d48d681724be7b04e253cbc5ed6133584d8 [file] [log] [blame]
Dan Willemsene7cb7812017-04-19 19:23:50 -07001// 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
15subdirs = ["ndk"]
16
17cc_library_shared {
18 name: "libcamera_client",
19
20 aidl: {
21 export_aidl_headers: true,
22 local_include_dirs: ["aidl"],
23 include_dirs: [
Dan Willemsene7cb7812017-04-19 19:23:50 -070024 "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"
Colin Cross6bf135b2017-11-14 13:05:37 -080032 ":libcamera_client_aidl",
Eino-Ville Talvalae8c96c72017-06-27 12:24:07 -070033
Dan Willemsene7cb7812017-04-19 19:23:50 -070034 // Source for camera interface parcelables, and manually-written interfaces
35 "Camera.cpp",
36 "CameraMetadata.cpp",
37 "CameraParameters.cpp",
38 "CaptureResult.cpp",
39 "CameraParameters2.cpp",
40 "ICamera.cpp",
41 "ICameraClient.cpp",
Dan Willemsene7cb7812017-04-19 19:23:50 -070042 "ICameraRecordingProxy.cpp",
43 "ICameraRecordingProxyListener.cpp",
44 "camera2/CaptureRequest.cpp",
45 "camera2/OutputConfiguration.cpp",
Emilian Peev35ae8262018-11-08 13:11:32 +000046 "camera2/SessionConfiguration.cpp",
Dan Willemsene7cb7812017-04-19 19:23:50 -070047 "camera2/SubmitInfo.cpp",
48 "CameraBase.cpp",
49 "CameraUtils.cpp",
50 "VendorTagDescriptor.cpp",
51 ],
52
53 shared_libs: [
54 "libcutils",
55 "libutils",
56 "liblog",
57 "libbinder",
58 "libgui",
59 "libcamera_metadata",
Mathias Agopiandefb1b02017-04-27 22:40:10 -070060 "libnativewindow",
Dan Willemsene7cb7812017-04-19 19:23:50 -070061 ],
62
63 include_dirs: [
64 "system/media/private/camera/include",
65 "frameworks/native/include/media/openmax",
66 ],
Vijay Venkatraman9b2049e2017-06-08 13:49:20 -070067 export_include_dirs: [
68 "include",
69 "include/camera"
70 ],
Dan Willemsene7cb7812017-04-19 19:23:50 -070071 export_shared_lib_headers: ["libcamera_metadata"],
72
73 cflags: [
74 "-Werror",
75 "-Wall",
76 "-Wextra",
77 ],
Mark Urbanusa096aba2017-06-02 12:19:05 -070078
Dan Willemsene7cb7812017-04-19 19:23:50 -070079}
Colin Cross6bf135b2017-11-14 13:05:37 -080080
81// AIDL interface between camera clients and the camera service.
82filegroup {
83 name: "libcamera_client_aidl",
84 srcs: [
85 "aidl/android/hardware/ICameraService.aidl",
86 "aidl/android/hardware/ICameraServiceListener.aidl",
87 "aidl/android/hardware/ICameraServiceProxy.aidl",
88 "aidl/android/hardware/camera2/ICameraDeviceCallbacks.aidl",
89 "aidl/android/hardware/camera2/ICameraDeviceUser.aidl",
90 ],
91}
92
93// Extra AIDL files that are used by framework.jar but not libcamera_client
94// because they have hand-written native implementations.
95filegroup {
96 name: "libcamera_client_framework_aidl",
97 srcs: [
98 "aidl/android/hardware/ICamera.aidl",
99 "aidl/android/hardware/ICameraClient.aidl",
100 ],
101}