1//
2// Copyright (C) 2018 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//      http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17package {
18    // See: http://go/android-license-faq
19    // A large-scale-change added 'default_applicable_licenses' to import
20    // all of the 'license_kinds' from "hardware_interfaces_license"
21    // to get the below license kinds:
22    //   SPDX-license-identifier-Apache-2.0
23    default_applicable_licenses: ["hardware_interfaces_license"],
24}
25
26cc_library_headers {
27    name: "camera.device@3.5-impl_headers",
28    vendor: true,
29    export_include_dirs: ["include/device_v3_5_impl"],
30}
31
32cc_library_headers {
33    name: "camera.device@3.5-external-impl_headers",
34    vendor: true,
35    export_include_dirs: ["include/ext_device_v3_5_impl"],
36}
37
38cc_library_shared {
39    name: "camera.device@3.5-impl",
40    defaults: ["hidl_defaults"],
41    proprietary: true,
42    vendor: true,
43    srcs: [
44        "CameraDevice.cpp",
45        "CameraDeviceSession.cpp",
46    ],
47    shared_libs: [
48        "libhidlbase",
49        "libutils",
50        "libcutils",
51        "camera.device@3.2-impl",
52        "camera.device@3.3-impl",
53        "camera.device@3.4-impl",
54        "android.hardware.camera.device@3.2",
55        "android.hardware.camera.device@3.3",
56        "android.hardware.camera.device@3.4",
57        "android.hardware.camera.device@3.5",
58        "android.hardware.camera.provider@2.4",
59        "android.hardware.graphics.mapper@2.0",
60        "android.hardware.graphics.mapper@3.0",
61        "android.hardware.graphics.mapper@4.0",
62        "liblog",
63        "libgralloctypes",
64        "libhardware",
65        "libcamera_metadata",
66    ],
67    static_libs: [
68        "android.hardware.camera.common@1.0-helper",
69    ],
70    local_include_dirs: ["include/device_v3_5_impl"],
71}
72
73cc_library_shared {
74    name: "camera.device@3.5-external-impl",
75    defaults: ["hidl_defaults"],
76    proprietary: true,
77    vendor: true,
78    srcs: [
79        "ExternalCameraDevice.cpp",
80        "ExternalCameraDeviceSession.cpp",
81    ],
82    shared_libs: [
83        "libhidlbase",
84        "libutils",
85        "libcutils",
86        "camera.device@3.2-impl",
87        "camera.device@3.3-impl",
88        "camera.device@3.4-external-impl",
89        "android.hardware.camera.device@3.2",
90        "android.hardware.camera.device@3.3",
91        "android.hardware.camera.device@3.4",
92        "android.hardware.camera.device@3.5",
93        "android.hardware.camera.provider@2.4",
94        "android.hardware.graphics.mapper@2.0",
95        "android.hardware.graphics.mapper@3.0",
96        "android.hardware.graphics.mapper@4.0",
97        "liblog",
98        "libgralloctypes",
99        "libhardware",
100        "libcamera_metadata",
101        "libfmq",
102        "libsync",
103        "libyuv",
104        "libjpeg",
105        "libexif",
106        "libtinyxml2",
107    ],
108    static_libs: [
109        "android.hardware.camera.common@1.0-helper",
110    ],
111    local_include_dirs: ["include/ext_device_v3_5_impl"],
112    export_shared_lib_headers: [
113        "libfmq",
114    ],
115}
116