blob: 0ebce85eaf9af0f7809ff85d461eba54ecc68d9a [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",
Hridya Valsarajuc53dad22018-07-26 16:51:52 -070019 recovery_available: true,
20 relative_install_path: "hw",
21
Hridya Valsarajuc53dad22018-07-26 16:51:52 -070022 cflags: [
23 "-D_FILE_OFFSET_BITS=64",
24 "-Werror",
25 "-Wall",
26 "-Wextra",
27 ],
28
29 shared_libs: [
30 "libbase",
31 "libbootloader_message",
Hridya Valsarajuc53dad22018-07-26 16:51:52 -070032 "liblog",
33 ],
David Anderson8108e252019-08-28 15:24:07 -070034 static_libs: [
35 "libfstab",
36 ],
37}
38
39cc_library_static {
40 name: "libboot_control",
41 defaults: ["libboot_control_defaults"],
42 export_include_dirs: ["include"],
43
44 srcs: ["libboot_control.cpp"],
45}
46
47cc_library_shared {
48 name: "bootctrl.default",
49 defaults: ["libboot_control_defaults"],
50
51 srcs: ["legacy_boot_control.cpp"],
52
53 static_libs: [
54 "libboot_control",
55 ],
56 shared_libs: [
57 "libhardware",
58 ],
Hridya Valsarajuc53dad22018-07-26 16:51:52 -070059}