1// Copyright (C) 2022 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package {
16    default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
19apex_key {
20    name: "com.google.emulated.camera.provider.hal.key",
21    public_key: "com.google.emulated.camera.provider.hal.avbpubkey",
22    private_key: "com.google.emulated.camera.provider.hal.pem",
23}
24
25android_app_certificate {
26    name: "com.google.emulated.camera.provider.hal.certificate",
27    certificate: "com.google.emulated.camera.provider.hal",
28}
29
30prebuilt_etc {
31    name: "com.google.emulated.camera.provider.hal.rc",
32    src: "com.google.emulated.camera.provider.hal.rc",
33    installable: false,
34}
35
36prebuilt_etc {
37    name: "com.google.emulated.camera.provider.hal.xml",
38    src: ":[email protected]",
39    sub_dir: "vintf",
40    installable: false,
41}
42
43apex_defaults {
44    name: "com.google.emulated.camera.provider.hal.defaults",
45    manifest: "apex_manifest.json",
46    key: "com.google.emulated.camera.provider.hal.key",
47    certificate: ":com.google.emulated.camera.provider.hal.certificate",
48    file_contexts: "file_contexts",
49    updatable: false,
50    // Install the apex in /vendor/apex
51    soc_specific: true,
52    binaries: [
53        "[email protected]",
54    ],
55    overrides: [
56        "[email protected]",
57        "[email protected]",
58        "libgooglecamerahwl_impl",
59        "libgooglecamerahwl_impl_fast_scene_cycle",
60    ],
61    prebuilts: [
62        "com.google.emulated.camera.provider.hal.rc",
63        "com.google.emulated.camera.provider.hal.xml", // vintf fragment
64        "android.hardware.camera.concurrent.prebuilt.xml",
65        "android.hardware.camera.flash-autofocus.prebuilt.xml",
66        "android.hardware.camera.front.prebuilt.xml",
67        "android.hardware.camera.full.prebuilt.xml",
68        "android.hardware.camera.raw.prebuilt.xml",
69        "emu_camera_back.json",
70        "emu_camera_depth.json",
71        "emu_camera_front.json",
72        "emu_camera_external.json",
73    ],
74}
75
76apex {
77    name: "com.google.emulated.camera.provider.hal",
78    defaults: ["com.google.emulated.camera.provider.hal.defaults"],
79    native_shared_libs: ["libgooglecamerahwl_impl"],
80}
81
82apex {
83    name: "com.google.emulated.camera.provider.hal.fastscenecycle",
84    defaults: ["com.google.emulated.camera.provider.hal.defaults"],
85    native_shared_libs: ["libgooglecamerahwl_impl_fast_scene_cycle"],
86}
87