xref: /aosp_15_r20/hardware/interfaces/camera/provider/default/Android.bp (revision 4d7e907c777eeecc4c5bd7cf640a754fac206ff7)
1//
2// Copyright (C) 2020 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_shared {
28    name: "android.hardware.camera.provider-V1-external-impl",
29    defaults: ["hidl_defaults"],
30    proprietary: true,
31    srcs: [
32        "ExternalCameraProvider.cpp",
33    ],
34    shared_libs: [
35        "android.hardware.camera.common-V1-ndk",
36        "android.hardware.camera.device-V1-ndk",
37        "android.hardware.camera.provider-V1-ndk",
38        "[email protected]",
39        "[email protected]",
40        "[email protected]",
41        "[email protected]",
42        "[email protected]",
43        "camera.device-external-impl",
44        "libbinder_ndk",
45        "libcamera_metadata",
46        "libcutils",
47        "libfmq",
48        "libhardware",
49        "libhidlbase",
50        "liblog",
51        "libtinyxml2",
52        "libutils",
53    ],
54    static_libs: [
55        "[email protected]",
56    ],
57    export_include_dirs: ["."],
58}
59
60cc_defaults {
61    name: "camera_external_service_defaults",
62    defaults: ["hidl_defaults"],
63    proprietary: true,
64    relative_install_path: "hw",
65    srcs: ["external-service.cpp"],
66    compile_multilib: "first",
67    shared_libs: [
68        "android.hardware.camera.common-V1-ndk",
69        "android.hardware.camera.device-V1-ndk",
70        "android.hardware.camera.provider-V1-ndk",
71        "android.hardware.camera.provider-V1-external-impl",
72        "[email protected]",
73        "[email protected]",
74        "[email protected]",
75        "[email protected]",
76        "[email protected]",
77        "camera.device-external-impl",
78        "libbinder_ndk",
79        "libcamera_metadata",
80        "libcutils",
81        "libfmq",
82        "libhardware",
83        "libhidlbase",
84        "liblog",
85        "libtinyxml2",
86        "libutils",
87    ],
88    static_libs: [
89        "[email protected]",
90    ],
91}
92
93cc_binary {
94    name: "android.hardware.camera.provider-V1-external-service",
95    defaults: ["camera_external_service_defaults"],
96    init_rc: ["android.hardware.camera.provider-V1-external-service.rc"],
97}
98
99cc_binary {
100    name: "android.hardware.camera.provider-V1-external-service-lazy",
101    overrides: ["android.hardware.camera.provider-V1-external-service"],
102    defaults: ["camera_external_service_defaults"],
103    init_rc: ["android.hardware.camera.provider-V1-external-service-lazy.rc"],
104    cflags: ["-DLAZY_SERVICE"],
105}
106