blob: ed45cbed9d933b9b7de601896bf26fd8fae6bf11 [file] [log] [blame]
Avichal Rakeshe1857f82022-06-08 17:47:23 -07001//
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 // 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_shared {
27 name: "android.hardware.camera.provider-V1-external-impl",
28 defaults: ["hidl_defaults"],
29 proprietary: true,
30 srcs: [
31 "ExternalCameraProvider.cpp",
32 ],
33 shared_libs: [
34 "android.hardware.camera.common-V1-ndk",
35 "android.hardware.camera.device-V1-ndk",
36 "android.hardware.camera.provider-V1-ndk",
37 "android.hardware.graphics.mapper@2.0",
38 "android.hardware.graphics.mapper@3.0",
39 "android.hardware.graphics.mapper@4.0",
40 "android.hidl.allocator@1.0",
41 "android.hidl.memory@1.0",
42 "camera.device-external-impl",
43 "libbinder_ndk",
44 "libcamera_metadata",
45 "libcutils",
46 "libfmq",
47 "libhardware",
48 "libhidlbase",
49 "liblog",
50 "libtinyxml2",
51 "libutils",
52 ],
53 static_libs: [
54 "android.hardware.camera.common@1.0-helper",
55 ],
56 export_include_dirs: ["."],
57}
58
59cc_defaults {
60 name: "camera_external_service_defaults",
61 defaults: ["hidl_defaults"],
62 proprietary: true,
63 relative_install_path: "hw",
64 srcs: ["external-service.cpp"],
65 compile_multilib: "first",
66 shared_libs: [
67 "android.hardware.camera.common-V1-ndk",
68 "android.hardware.camera.device-V1-ndk",
69 "android.hardware.camera.provider-V1-ndk",
70 "android.hardware.camera.provider-V1-external-impl",
71 "android.hardware.graphics.mapper@2.0",
72 "android.hardware.graphics.mapper@3.0",
73 "android.hardware.graphics.mapper@4.0",
74 "android.hidl.allocator@1.0",
75 "android.hidl.memory@1.0",
76 "camera.device-external-impl",
77 "libbinder_ndk",
78 "libcamera_metadata",
79 "libcutils",
80 "libfmq",
81 "libhardware",
82 "libhidlbase",
83 "liblog",
84 "libtinyxml2",
85 "libutils",
86 ],
87 static_libs: [
88 "android.hardware.camera.common@1.0-helper",
89 ],
90}
91
92cc_binary {
93 name: "android.hardware.camera.provider-V1-external-service",
94 defaults: ["camera_external_service_defaults"],
95 init_rc: ["android.hardware.camera.provider-V1-external-service.rc"],
96}
97
98cc_binary {
99 name: "android.hardware.camera.provider-V1-external-service-lazy",
100 overrides: ["android.hardware.camera.provider-V1-external-service"],
101 defaults: ["camera_external_service_defaults"],
102 init_rc: ["android.hardware.camera.provider-V1-external-service-lazy.rc"],
103 cflags: ["-DLAZY_SERVICE"],
104}