1//
2// Copyright (C) 2017 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.4-impl_headers",
28    vendor: true,
29    export_include_dirs: ["include/device_v3_4_impl"],
30}
31
32cc_library_headers {
33    name: "camera.device@3.4-external-impl_headers",
34    vendor: true,
35    export_include_dirs: ["include/ext_device_v3_4_impl"],
36}
37
38cc_library_shared {
39    name: "camera.device@3.4-impl",
40    defaults: ["hidl_defaults"],
41    proprietary: true,
42    vendor: true,
43    srcs: [
44        "CameraDevice.cpp",
45        "CameraDeviceSession.cpp",
46        "convert.cpp",
47    ],
48    shared_libs: [
49        "libhidlbase",
50        "libutils",
51        "libcutils",
52        "camera.device@3.2-impl",
53        "camera.device@3.3-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.provider@2.4",
58        "android.hardware.graphics.mapper@2.0",
59        "android.hardware.graphics.mapper@3.0",
60        "android.hardware.graphics.mapper@4.0",
61        "liblog",
62        "libgralloctypes",
63        "libhardware",
64        "libcamera_metadata",
65        "libfmq",
66    ],
67    static_libs: [
68        "android.hardware.camera.common@1.0-helper",
69    ],
70    local_include_dirs: ["include/device_v3_4_impl"],
71    export_shared_lib_headers: [
72        "libfmq",
73    ],
74}
75
76cc_library_shared {
77    name: "camera.device@3.4-external-impl",
78    defaults: ["hidl_defaults"],
79    proprietary: true,
80    vendor: true,
81    srcs: [
82        "ExternalCameraDevice.cpp",
83        "ExternalCameraDeviceSession.cpp",
84        "ExternalCameraUtils.cpp",
85    ],
86    shared_libs: [
87        "libhidlbase",
88        "libutils",
89        "libcutils",
90        "camera.device@3.2-impl",
91        "camera.device@3.3-impl",
92        "android.hardware.camera.device@3.2",
93        "android.hardware.camera.device@3.3",
94        "android.hardware.camera.device@3.4",
95        "android.hardware.camera.provider@2.4",
96        "android.hardware.graphics.mapper@2.0",
97        "android.hardware.graphics.mapper@3.0",
98        "android.hardware.graphics.mapper@4.0",
99        "liblog",
100        "libgralloctypes",
101        "libhardware",
102        "libcamera_metadata",
103        "libfmq",
104        "libsync",
105        "libyuv",
106        "libjpeg",
107        "libexif",
108        "libtinyxml2",
109    ],
110    static_libs: [
111        "android.hardware.camera.common@1.0-helper",
112    ],
113    local_include_dirs: ["include/ext_device_v3_4_impl"],
114    export_shared_lib_headers: [
115        "libfmq",
116    ],
117}
118