1package {
2    // See: http://go/android-license-faq
3    // A large-scale-change added 'default_applicable_licenses' to import
4    // all of the 'license_kinds' from "hardware_interfaces_license"
5    // to get the below license kinds:
6    //   SPDX-license-identifier-Apache-2.0
7    default_applicable_licenses: ["hardware_interfaces_license"],
8}
9
10cc_library_shared {
11    name: "android.hardware.camera.provider@2.4-legacy",
12    defaults: ["hidl_defaults"],
13    proprietary: true,
14    srcs: ["LegacyCameraProviderImpl_2_4.cpp"],
15    shared_libs: [
16        "android.hardware.camera.common@1.0",
17        "android.hardware.camera.device@1.0",
18        "android.hardware.camera.device@3.2",
19        "android.hardware.camera.device@3.3",
20        "android.hardware.camera.device@3.4",
21        "android.hardware.camera.device@3.5",
22        "android.hardware.camera.provider@2.4",
23        "android.hardware.graphics.mapper@2.0",
24        "android.hardware.graphics.mapper@3.0",
25        "android.hardware.graphics.mapper@4.0",
26        "android.hidl.allocator@1.0",
27        "android.hidl.memory@1.0",
28        "camera.device@1.0-impl",
29        "camera.device@3.2-impl",
30        "camera.device@3.3-impl",
31        "camera.device@3.4-impl",
32        "camera.device@3.5-impl",
33        "libcamera_metadata",
34        "libcutils",
35        "libhardware",
36        "libhidlbase",
37        "liblog",
38        "libutils",
39    ],
40    static_libs: [
41        "android.hardware.camera.common@1.0-helper",
42    ],
43    header_libs: [
44        "camera.device@3.4-impl_headers",
45        "camera.device@3.5-impl_headers",
46    ],
47    export_include_dirs: ["."],
48}
49
50cc_library_shared {
51    name: "android.hardware.camera.provider@2.4-external",
52    proprietary: true,
53    srcs: ["ExternalCameraProviderImpl_2_4.cpp"],
54    shared_libs: [
55        "android.hardware.camera.common@1.0",
56        "android.hardware.camera.device@1.0",
57        "android.hardware.camera.device@3.2",
58        "android.hardware.camera.device@3.3",
59        "android.hardware.camera.device@3.4",
60        "android.hardware.camera.device@3.5",
61        "android.hardware.camera.device@3.6",
62        "android.hardware.camera.provider@2.4",
63        "android.hardware.graphics.mapper@2.0",
64        "android.hardware.graphics.mapper@3.0",
65        "android.hardware.graphics.mapper@4.0",
66        "android.hidl.allocator@1.0",
67        "android.hidl.memory@1.0",
68        "camera.device@3.3-impl",
69        "camera.device@3.4-external-impl",
70        "camera.device@3.4-impl",
71        "camera.device@3.5-external-impl",
72        "camera.device@3.5-impl",
73        "camera.device@3.6-external-impl",
74        "libcamera_metadata",
75        "libcutils",
76        "libhardware",
77        "libhidlbase",
78        "liblog",
79        "libtinyxml2",
80        "libutils",
81    ],
82    static_libs: [
83        "android.hardware.camera.common@1.0-helper",
84    ],
85    header_libs: [
86        "camera.device@3.4-external-impl_headers",
87        "camera.device@3.5-external-impl_headers",
88        "camera.device@3.6-external-impl_headers",
89    ],
90    export_include_dirs: ["."],
91}
92
93cc_library_shared {
94    name: "android.hardware.camera.provider@2.4-impl",
95    defaults: ["hidl_defaults"],
96    proprietary: true,
97    relative_install_path: "hw",
98    srcs: ["CameraProvider_2_4.cpp"],
99    shared_libs: [
100        "android.hardware.camera.common@1.0",
101        "android.hardware.camera.device@1.0",
102        "android.hardware.camera.device@3.2",
103        "android.hardware.camera.device@3.3",
104        "android.hardware.camera.device@3.4",
105        "android.hardware.camera.device@3.5",
106        "android.hardware.camera.provider@2.4",
107        "android.hardware.camera.provider@2.4-external",
108        "android.hardware.camera.provider@2.4-legacy",
109        "android.hardware.graphics.mapper@2.0",
110        "android.hardware.graphics.mapper@3.0",
111        "android.hardware.graphics.mapper@4.0",
112        "android.hidl.allocator@1.0",
113        "android.hidl.memory@1.0",
114        "camera.device@1.0-impl",
115        "camera.device@3.2-impl",
116        "camera.device@3.3-impl",
117        "camera.device@3.4-external-impl",
118        "camera.device@3.4-impl",
119        "camera.device@3.5-external-impl",
120        "camera.device@3.5-impl",
121        "libcamera_metadata",
122        "libcutils",
123        "libhardware",
124        "libhidlbase",
125        "liblog",
126        "libtinyxml2",
127        "libutils",
128    ],
129    header_libs: [
130        "camera.device@3.4-external-impl_headers",
131        "camera.device@3.4-impl_headers",
132        "camera.device@3.5-external-impl_headers",
133        "camera.device@3.5-impl_headers",
134    ],
135    static_libs: [
136        "android.hardware.camera.common@1.0-helper",
137    ],
138    export_include_dirs: ["."],
139}
140
141cc_defaults {
142    name: "camera_service_defaults",
143    defaults: ["hidl_defaults"],
144    proprietary: true,
145    relative_install_path: "hw",
146    srcs: ["service.cpp"],
147    shared_libs: [
148        "android.hardware.camera.common@1.0",
149        "android.hardware.camera.device@1.0",
150        "android.hardware.camera.device@3.2",
151        "android.hardware.camera.device@3.3",
152        "android.hardware.camera.device@3.4",
153        "android.hardware.camera.device@3.5",
154        "android.hardware.camera.provider@2.4",
155        "android.hardware.graphics.mapper@2.0",
156        "android.hardware.graphics.mapper@3.0",
157        "android.hardware.graphics.mapper@4.0",
158        "android.hidl.allocator@1.0",
159        "android.hidl.memory@1.0",
160        "libbinder",
161        "libcamera_metadata",
162        "libcutils",
163        "libhardware",
164        "libhidlbase",
165        "liblog",
166        "libutils",
167    ],
168    static_libs: [
169        "android.hardware.camera.common@1.0-helper",
170    ],
171    header_libs: [
172        "camera.device@3.4-external-impl_headers",
173        "camera.device@3.4-impl_headers",
174        "camera.device@3.5-external-impl_headers",
175        "camera.device@3.5-impl_headers",
176    ],
177}
178
179cc_binary {
180    name: "android.hardware.camera.provider@2.4-service",
181    defaults: ["camera_service_defaults"],
182    compile_multilib: "32",
183    init_rc: ["android.hardware.camera.provider@2.4-service.rc"],
184}
185
186cc_binary {
187    name: "android.hardware.camera.provider@2.4-service_64",
188    defaults: ["camera_service_defaults"],
189    compile_multilib: "64",
190    init_rc: ["android.hardware.camera.provider@2.4-service_64.rc"],
191}
192
193cc_binary {
194    name: "android.hardware.camera.provider@2.4-service-lazy",
195    overrides: ["android.hardware.camera.provider@2.4-service"],
196    defaults: ["camera_service_defaults"],
197    compile_multilib: "32",
198    init_rc: ["android.hardware.camera.provider@2.4-service-lazy.rc"],
199    cflags: ["-DLAZY_SERVICE"],
200}
201
202cc_binary {
203    name: "android.hardware.camera.provider@2.4-service-lazy_64",
204    overrides: ["android.hardware.camera.provider@2.4-service_64"],
205    defaults: ["camera_service_defaults"],
206    compile_multilib: "64",
207    init_rc: ["android.hardware.camera.provider@2.4-service-lazy_64.rc"],
208    cflags: ["-DLAZY_SERVICE"],
209}
210
211cc_binary {
212    name: "android.hardware.camera.provider@2.4-external-service",
213    defaults: ["hidl_defaults"],
214    proprietary: true,
215    relative_install_path: "hw",
216    srcs: ["external-service.cpp"],
217    compile_multilib: "32",
218    init_rc: ["android.hardware.camera.provider@2.4-external-service.rc"],
219    shared_libs: [
220        "android.hardware.camera.common@1.0",
221        "android.hardware.camera.device@1.0",
222        "android.hardware.camera.device@3.2",
223        "android.hardware.camera.device@3.3",
224        "android.hardware.camera.device@3.4",
225        "android.hardware.camera.device@3.5",
226        "android.hardware.camera.provider@2.4",
227        "libbinder",
228        "libhidlbase",
229        "liblog",
230        "libtinyxml2",
231        "libutils",
232    ],
233    header_libs: [
234        "camera.device@3.4-external-impl_headers",
235        "camera.device@3.4-impl_headers",
236        "camera.device@3.5-external-impl_headers",
237        "camera.device@3.5-impl_headers",
238    ],
239}
240