blob: f6a6ceddd70f0ac12c14d2fb9ccf4db258ddc8b5 [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: [
31 "libbase",
Hridya Valsarajuc53dad22018-07-26 16:51:52 -070032 "liblog",
33 ],
David Anderson8108e252019-08-28 15:24:07 -070034 static_libs: [
David Andersonf7714842019-08-29 13:47:45 -070035 "libbootloader_message_vendor",
David Anderson8108e252019-08-28 15:24:07 -070036 "libfstab",
37 ],
38}
39
40cc_library_static {
41 name: "libboot_control",
42 defaults: ["libboot_control_defaults"],
43 export_include_dirs: ["include"],
44
45 srcs: ["libboot_control.cpp"],
46}
47
48cc_library_shared {
49 name: "bootctrl.default",
50 defaults: ["libboot_control_defaults"],
51
52 srcs: ["legacy_boot_control.cpp"],
53
54 static_libs: [
55 "libboot_control",
56 ],
57 shared_libs: [
58 "libhardware",
59 ],
Hridya Valsarajuc53dad22018-07-26 16:51:52 -070060}