1//
2// Copyright (C) 2018 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
16package {
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20cc_library {
21    name: "android.hardware.fastboot@1.1-impl.pixel",
22    recovery: true,
23    srcs: [
24        "Fastboot.cpp",
25    ],
26    relative_install_path: "hw",
27    export_include_dirs: ["include"],
28    shared_libs: [
29        "android.hardware.fastboot@1.0",
30        "android.hardware.fastboot@1.1",
31        "libbase",
32        "libcutils",
33        "libext4_utils",
34        "libfs_mgr",
35        "libhidlbase",
36        "liblog",
37        "libutils",
38    ],
39    static_libs: [
40        "libnos_for_fastboot",
41        "libnos_citadel_for_fastboot",
42        "libfstab",
43    ],
44}
45
46
47cc_binary {
48    name: "android.hardware.fastboot-service.pixel_recovery",
49    init_rc: ["android.hardware.fastboot-service.pixel_recovery.rc"],
50    vintf_fragments: ["android.hardware.fastboot-service.pixel.xml"],
51    recovery: true,
52    srcs: [
53        "Fastboot_aidl.cpp",
54        "main.cpp",
55    ],
56    relative_install_path: "hw",
57    shared_libs: [
58        "android.hardware.fastboot-V1-ndk",
59        "libbinder_ndk",
60        "libbase",
61        "libcutils",
62        "libext4_utils",
63        "libfs_mgr",
64        "liblog",
65        "libutils",
66    ],
67    static_libs: [
68        "libnos_for_fastboot",
69        "libnos_citadel_for_fastboot",
70        "libfstab",
71    ],
72}
73