1package {
2    default_team: "trendy_team_camera_framework",
3    // See: http://go/android-license-faq
4    // A large-scale-change added 'default_applicable_licenses' to import
5    // all of the 'license_kinds' from "hardware_interfaces_license"
6    // to get the below license kinds:
7    //   SPDX-license-identifier-Apache-2.0
8    default_applicable_licenses: ["hardware_interfaces_license"],
9}
10
11cc_library_shared {
12    name: "android.hardware.camera.provider@2.7-external",
13    proprietary: true,
14    srcs: ["ExternalCameraProviderImpl_2_7.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.device@3.6",
23        "android.hardware.camera.provider@2.4",
24        "android.hardware.camera.provider@2.5",
25        "android.hardware.camera.provider@2.6",
26        "android.hardware.camera.provider@2.7",
27        "android.hardware.graphics.mapper@2.0",
28        "android.hardware.graphics.mapper@3.0",
29        "android.hardware.graphics.mapper@4.0",
30        "android.hidl.allocator@1.0",
31        "android.hidl.memory@1.0",
32        "camera.device@3.3-impl",
33        "camera.device@3.4-external-impl",
34        "camera.device@3.4-impl",
35        "camera.device@3.5-external-impl",
36        "camera.device@3.5-impl",
37        "camera.device@3.6-external-impl",
38        "libcamera_metadata",
39        "libcutils",
40        "libhardware",
41        "libhidlbase",
42        "liblog",
43        "libtinyxml2",
44        "libutils",
45    ],
46    static_libs: [
47        "android.hardware.camera.common@1.0-helper",
48    ],
49    header_libs: [
50        "camera.device@3.4-external-impl_headers",
51        "camera.device@3.5-external-impl_headers",
52        "camera.device@3.6-external-impl_headers",
53    ],
54    export_include_dirs: ["."],
55}
56
57cc_defaults {
58    name: "camera_external_service_2_7_defaults",
59    defaults: ["hidl_defaults"],
60    proprietary: true,
61    relative_install_path: "hw",
62    srcs: ["external-service.cpp"],
63    compile_multilib: "32",
64    shared_libs: [
65        "android.hardware.camera.common@1.0",
66        "android.hardware.camera.device@1.0",
67        "android.hardware.camera.device@3.2",
68        "android.hardware.camera.device@3.3",
69        "android.hardware.camera.device@3.4",
70        "android.hardware.camera.device@3.5",
71        "android.hardware.camera.provider@2.4",
72        "android.hardware.camera.provider@2.4-external",
73        "android.hardware.camera.provider@2.5",
74        "android.hardware.camera.provider@2.5-external",
75        "android.hardware.camera.provider@2.6",
76        "android.hardware.camera.provider@2.7",
77        "android.hardware.camera.provider@2.7-external",
78        "android.hardware.graphics.mapper@2.0",
79        "android.hardware.graphics.mapper@3.0",
80        "android.hardware.graphics.mapper@4.0",
81        "libbinder",
82        "libcamera_metadata",
83        "libhidlbase",
84        "liblog",
85        "libtinyxml2",
86        "libutils",
87    ],
88    static_libs: [
89        "android.hardware.camera.common@1.0-helper",
90    ],
91    header_libs: [
92        "camera.device@3.4-external-impl_headers",
93        "camera.device@3.4-impl_headers",
94        "camera.device@3.5-external-impl_headers",
95        "camera.device@3.5-impl_headers",
96        "camera.device@3.6-external-impl_headers",
97    ],
98}
99
100cc_binary {
101    name: "android.hardware.camera.provider@2.7-external-service",
102    defaults: ["camera_external_service_2_7_defaults"],
103    init_rc: ["android.hardware.camera.provider@2.7-external-service.rc"],
104}
105
106cc_binary {
107    name: "android.hardware.camera.provider@2.7-external-service-lazy",
108    overrides: ["android.hardware.camera.provider@2.7-external-service"],
109    defaults: ["camera_external_service_2_7_defaults"],
110    init_rc: ["android.hardware.camera.provider@2.7-external-service-lazy.rc"],
111    cflags: ["-DLAZY_SERVICE"],
112}
113