1//
2// Copyright (C) 2020 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
16soong_namespace {
17    imports: [
18        "hardware/google/pixel",
19    ],
20}
21
22package {
23    // See: http://go/android-license-faq
24    // A large-scale-change added 'default_applicable_licenses' to import
25    // all of the 'license_kinds' from "//device/google/gs-common:device_google_gs-common_license"
26    // to get the below license kinds:
27    //   SPDX-license-identifier-Apache-2.0
28    default_applicable_licenses: [
29        "//device/google/gs-common:device_google_gs-common_license",
30    ],
31}
32
33cc_binary {
34    name: "[email protected]",
35    defaults: ["hidl_defaults"],
36    relative_install_path: "hw",
37    vendor: true,
38    init_rc: ["[email protected]"],
39    srcs: [
40        "BootControl.cpp",
41        "GptUtils.cpp",
42        "service.cpp"
43    ],
44    shared_libs: [
45        "libbase",
46        "liblog",
47        "libhidlbase",
48        "libutils",
49        "libcutils",
50        "libz",
51        "libtrusty",
52        "[email protected]",
53        "[email protected]",
54        "[email protected]",
55    ],
56    static_libs: [
57        "libboot_control",
58        "libbootloader_message_vendor",
59        "libfstab",
60    ],
61}
62
63cc_library {
64    name: "[email protected]",
65    stem: "[email protected]",
66    recovery: true,
67    srcs: [
68        "BootControl.cpp",
69        "GptUtils.cpp",
70    ],
71    relative_install_path: "hw",
72    shared_libs: [
73        "libbase",
74        "liblog",
75        "libhidlbase",
76        "libutils",
77        "libcutils",
78        "libz",
79        "libtrusty",
80        "[email protected]",
81        "[email protected]",
82        "[email protected]",
83    ],
84    static_libs: [
85        "libboot_control",
86        "libbootloader_message_vendor",
87        "libfstab",
88    ],
89}
90