blob: b2e68dfd41e170d81cd82625e0983098de2a5f3c [file] [log] [blame]
Hridya Valsarajuc53dad22018-07-26 16:51:52 -07001//
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
David Anderson8108e252019-08-28 15:24:07 -070017cc_defaults {
18 name: "libboot_control_defaults",
David Andersonf7714842019-08-29 13:47:45 -070019 vendor: true,
Hridya Valsarajuc53dad22018-07-26 16:51:52 -070020 recovery_available: true,
21 relative_install_path: "hw",
22
Hridya Valsarajuc53dad22018-07-26 16:51:52 -070023 cflags: [
24 "-D_FILE_OFFSET_BITS=64",
25 "-Werror",
26 "-Wall",
27 "-Wextra",
28 ],
29
30 shared_libs: [
David Anderson46f38e42019-08-29 15:09:22 -070031 "android.hardware.boot@1.1",
Hridya Valsarajuc53dad22018-07-26 16:51:52 -070032 "libbase",
Hridya Valsarajuc53dad22018-07-26 16:51:52 -070033 "liblog",
34 ],
David Anderson8108e252019-08-28 15:24:07 -070035 static_libs: [
David Andersonf7714842019-08-29 13:47:45 -070036 "libbootloader_message_vendor",
David Anderson8108e252019-08-28 15:24:07 -070037 "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 ],
Hridya Valsarajuc53dad22018-07-26 16:51:52 -070061}