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.5-legacy",
12    proprietary: true,
13    srcs: ["LegacyCameraProviderImpl_2_5.cpp"],
14    shared_libs: [
15        "android.hardware.camera.common@1.0",
16        "android.hardware.camera.device@1.0",
17        "android.hardware.camera.device@3.2",
18        "android.hardware.camera.device@3.3",
19        "android.hardware.camera.device@3.4",
20        "android.hardware.camera.device@3.5",
21        "android.hardware.camera.provider@2.4",
22        "android.hardware.camera.provider@2.4-legacy",
23        "android.hardware.camera.provider@2.5",
24        "android.hardware.graphics.mapper@2.0",
25        "android.hidl.allocator@1.0",
26        "android.hidl.memory@1.0",
27        "camera.device@1.0-impl",
28        "camera.device@3.2-impl",
29        "camera.device@3.3-impl",
30        "camera.device@3.4-impl",
31        "camera.device@3.5-impl",
32        "libcamera_metadata",
33        "libcutils",
34        "libhardware",
35        "libhidlbase",
36        "liblog",
37        "libutils",
38    ],
39    static_libs: [
40        "android.hardware.camera.common@1.0-helper",
41    ],
42    header_libs: [
43        "camera.device@3.4-impl_headers",
44        "camera.device@3.5-impl_headers",
45    ],
46    export_include_dirs: ["."],
47}
48
49cc_library_shared {
50    name: "android.hardware.camera.provider@2.5-external",
51    proprietary: true,
52    srcs: ["ExternalCameraProviderImpl_2_5.cpp"],
53    shared_libs: [
54        "android.hardware.camera.common@1.0",
55        "android.hardware.camera.device@1.0",
56        "android.hardware.camera.device@3.2",
57        "android.hardware.camera.device@3.3",
58        "android.hardware.camera.device@3.4",
59        "android.hardware.camera.device@3.5",
60        "android.hardware.camera.provider@2.4",
61        "android.hardware.camera.provider@2.4-external",
62        "android.hardware.camera.provider@2.5",
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        "libcamera_metadata",
74        "libcutils",
75        "libhardware",
76        "libhidlbase",
77        "liblog",
78        "libtinyxml2",
79        "libutils",
80    ],
81    static_libs: [
82        "android.hardware.camera.common@1.0-helper",
83    ],
84    header_libs: [
85        "camera.device@3.4-external-impl_headers",
86        "camera.device@3.5-external-impl_headers",
87        "camera.device@3.6-external-impl_headers"
88    ],
89    export_include_dirs: ["."],
90}
91
92cc_defaults {
93    name: "camera_service_2_5_defaults",
94    defaults: ["hidl_defaults"],
95    proprietary: true,
96    relative_install_path: "hw",
97    srcs: ["service.cpp"],
98    shared_libs: [
99        "android.hardware.camera.common@1.0",
100        "android.hardware.camera.device@1.0",
101        "android.hardware.camera.device@3.2",
102        "android.hardware.camera.device@3.3",
103        "android.hardware.camera.device@3.4",
104        "android.hardware.camera.device@3.5",
105        "android.hardware.camera.provider@2.4",
106        "android.hardware.camera.provider@2.4-legacy",
107        "android.hardware.camera.provider@2.5",
108        "android.hardware.camera.provider@2.5-legacy",
109        "android.hardware.graphics.mapper@2.0",
110        "android.hidl.allocator@1.0",
111        "android.hidl.memory@1.0",
112        "libbinder",
113        "libcamera_metadata",
114        "libhardware",
115        "libhidlbase",
116        "liblog",
117        "libutils",
118    ],
119    static_libs: [
120        "android.hardware.camera.common@1.0-helper",
121    ],
122    header_libs: [
123        "camera.device@3.4-impl_headers",
124        "camera.device@3.5-impl_headers"
125    ],
126}
127
128cc_binary {
129    name: "android.hardware.camera.provider@2.5-service",
130    defaults: ["camera_service_2_5_defaults"],
131    compile_multilib: "32",
132    init_rc: ["android.hardware.camera.provider@2.5-service.rc"],
133}
134
135cc_binary {
136    name: "android.hardware.camera.provider@2.5-service_64",
137    defaults: ["camera_service_2_5_defaults"],
138    compile_multilib: "64",
139    init_rc: ["android.hardware.camera.provider@2.5-service_64.rc"],
140}
141
142cc_binary {
143    name: "android.hardware.camera.provider@2.5-service-lazy",
144    overrides: ["android.hardware.camera.provider@2.5-service"],
145    defaults: ["camera_service_2_5_defaults"],
146    compile_multilib: "32",
147    init_rc: ["android.hardware.camera.provider@2.5-service-lazy.rc"],
148    cflags: ["-DLAZY_SERVICE"],
149}
150
151cc_binary {
152    name: "android.hardware.camera.provider@2.5-service-lazy_64",
153    overrides: ["android.hardware.camera.provider@2.5-service_64"],
154    defaults: ["camera_service_2_5_defaults"],
155    compile_multilib: "64",
156    init_rc: ["android.hardware.camera.provider@2.5-service-lazy_64.rc"],
157    cflags: ["-DLAZY_SERVICE"],
158}
159
160cc_binary {
161    name: "android.hardware.camera.provider@2.5-external-service",
162    defaults: ["hidl_defaults"],
163    proprietary: true,
164    relative_install_path: "hw",
165    srcs: ["external-service.cpp"],
166    compile_multilib: "32",
167    init_rc: ["android.hardware.camera.provider@2.5-external-service.rc"],
168    shared_libs: [
169        "android.hardware.camera.common@1.0",
170        "android.hardware.camera.device@1.0",
171        "android.hardware.camera.device@3.2",
172        "android.hardware.camera.device@3.3",
173        "android.hardware.camera.device@3.4",
174        "android.hardware.camera.device@3.5",
175        "android.hardware.camera.provider@2.4",
176        "android.hardware.camera.provider@2.4-external",
177        "android.hardware.camera.provider@2.5",
178        "android.hardware.camera.provider@2.5-external",
179        "android.hardware.graphics.mapper@2.0",
180        "android.hardware.graphics.mapper@3.0",
181        "android.hardware.graphics.mapper@4.0",
182        "libbinder",
183        "libcamera_metadata",
184        "libhidlbase",
185        "liblog",
186        "libtinyxml2",
187        "libutils",
188    ],
189    static_libs: [
190        "android.hardware.camera.common@1.0-helper",
191    ],
192    header_libs: [
193        "camera.device@3.4-external-impl_headers",
194        "camera.device@3.4-impl_headers",
195        "camera.device@3.5-external-impl_headers",
196        "camera.device@3.5-impl_headers",
197        "camera.device@3.6-external-impl_headers",
198    ],
199}
200