Hridya Valsaraju | c53dad2 | 2018-07-26 16:51:52 -0700 | [diff] [blame] | 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 | |
David Anderson | 8108e25 | 2019-08-28 15:24:07 -0700 | [diff] [blame] | 17 | cc_defaults { |
| 18 | name: "libboot_control_defaults", |
David Anderson | f771484 | 2019-08-29 13:47:45 -0700 | [diff] [blame] | 19 | vendor: true, |
Hridya Valsaraju | c53dad2 | 2018-07-26 16:51:52 -0700 | [diff] [blame] | 20 | recovery_available: true, |
| 21 | relative_install_path: "hw", |
| 22 | |
Hridya Valsaraju | c53dad2 | 2018-07-26 16:51:52 -0700 | [diff] [blame] | 23 | cflags: [ |
| 24 | "-D_FILE_OFFSET_BITS=64", |
| 25 | "-Werror", |
| 26 | "-Wall", |
| 27 | "-Wextra", |
| 28 | ], |
| 29 | |
| 30 | shared_libs: [ |
David Anderson | 46f38e4 | 2019-08-29 15:09:22 -0700 | [diff] [blame] | 31 | "android.hardware.boot@1.1", |
Hridya Valsaraju | c53dad2 | 2018-07-26 16:51:52 -0700 | [diff] [blame] | 32 | "libbase", |
Hridya Valsaraju | c53dad2 | 2018-07-26 16:51:52 -0700 | [diff] [blame] | 33 | "liblog", |
| 34 | ], |
David Anderson | 8108e25 | 2019-08-28 15:24:07 -0700 | [diff] [blame] | 35 | static_libs: [ |
David Anderson | f771484 | 2019-08-29 13:47:45 -0700 | [diff] [blame] | 36 | "libbootloader_message_vendor", |
David Anderson | 8108e25 | 2019-08-28 15:24:07 -0700 | [diff] [blame] | 37 | "libfstab", |
| 38 | ], |
| 39 | } |
| 40 | |
| 41 | cc_library_static { |
| 42 | name: "libboot_control", |
| 43 | defaults: ["libboot_control_defaults"], |
| 44 | export_include_dirs: ["include"], |
| 45 | |
| 46 | srcs: ["libboot_control.cpp"], |
| 47 | } |
| 48 | |
| 49 | cc_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 Valsaraju | c53dad2 | 2018-07-26 16:51:52 -0700 | [diff] [blame] | 61 | } |