xref: /aosp_15_r20/hardware/interfaces/camera/device/3.4/default/Android.bp (revision 4d7e907c777eeecc4c5bd7cf640a754fac206ff7)
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    default_team: "trendy_team_camera_framework",
19    // See: http://go/android-license-faq
20    // A large-scale-change added 'default_applicable_licenses' to import
21    // all of the 'license_kinds' from "hardware_interfaces_license"
22    // to get the below license kinds:
23    //   SPDX-license-identifier-Apache-2.0
24    default_applicable_licenses: ["hardware_interfaces_license"],
25}
26
27cc_library_headers {
28    name: "[email protected]_headers",
29    vendor: true,
30    export_include_dirs: ["include/device_v3_4_impl"],
31}
32
33cc_library_headers {
34    name: "[email protected]_headers",
35    vendor: true,
36    export_include_dirs: ["include/ext_device_v3_4_impl"],
37}
38
39cc_library_shared {
40    name: "[email protected]",
41    defaults: ["hidl_defaults"],
42    proprietary: true,
43    vendor: true,
44    srcs: [
45        "CameraDevice.cpp",
46        "CameraDeviceSession.cpp",
47        "convert.cpp",
48    ],
49    shared_libs: [
50        "libhidlbase",
51        "libutils",
52        "libcutils",
53        "[email protected]",
54        "[email protected]",
55        "[email protected]",
56        "[email protected]",
57        "[email protected]",
58        "[email protected]",
59        "[email protected]",
60        "[email protected]",
61        "[email protected]",
62        "liblog",
63        "libgralloctypes",
64        "libhardware",
65        "libcamera_metadata",
66        "libfmq",
67    ],
68    static_libs: [
69        "[email protected]",
70    ],
71    local_include_dirs: ["include/device_v3_4_impl"],
72    export_shared_lib_headers: [
73        "libfmq",
74    ],
75}
76
77cc_library_shared {
78    name: "[email protected]",
79    defaults: ["hidl_defaults"],
80    proprietary: true,
81    vendor: true,
82    srcs: [
83        "ExternalCameraDevice.cpp",
84        "ExternalCameraDeviceSession.cpp",
85        "ExternalCameraUtils.cpp",
86    ],
87    shared_libs: [
88        "libhidlbase",
89        "libutils",
90        "libcutils",
91        "[email protected]",
92        "[email protected]",
93        "[email protected]",
94        "[email protected]",
95        "[email protected]",
96        "[email protected]",
97        "[email protected]",
98        "[email protected]",
99        "[email protected]",
100        "liblog",
101        "libgralloctypes",
102        "libhardware",
103        "libcamera_metadata",
104        "libfmq",
105        "libsync",
106        "libyuv",
107        "libjpeg",
108        "libexif",
109        "libtinyxml2",
110        "libui",
111    ],
112    static_libs: [
113        "[email protected]",
114    ],
115    local_include_dirs: ["include/ext_device_v3_4_impl"],
116    export_shared_lib_headers: [
117        "libfmq",
118    ],
119}
120