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//
16
17cc_defaults {
18    name: "libboot_control_defaults",
19    vendor: true,
20    recovery_available: true,
21    relative_install_path: "hw",
22
23    cflags: [
24        "-D_FILE_OFFSET_BITS=64",
25        "-Werror",
26        "-Wall",
27        "-Wextra",
28    ],
29
30    shared_libs: [
31        "android.hardware.boot@1.1",
32        "libbase",
33        "liblog",
34    ],
35    static_libs: [
36        "libbootloader_message_vendor",
37        "libfstab",
38    ],
39}
40
41cc_library_static {
42    name: "libboot_control",
43    defaults: ["libboot_control_defaults"],
44    export_include_dirs: ["include"],
45
46    srcs: ["libboot_control.cpp"],
47}
48
49cc_library_shared {
50    name: "bootctrl.default",
51    defaults: ["libboot_control_defaults"],
52
53    srcs: ["legacy_boot_control.cpp"],
54
55    static_libs: [
56        "libboot_control",
57    ],
58    shared_libs: [
59        "libhardware",
60    ],
61}
62