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: [ |
| 31 | "libbase", |
Hridya Valsaraju | c53dad2 | 2018-07-26 16:51:52 -0700 | [diff] [blame] | 32 | "liblog", |
| 33 | ], |
David Anderson | 8108e25 | 2019-08-28 15:24:07 -0700 | [diff] [blame] | 34 | static_libs: [ |
David Anderson | f771484 | 2019-08-29 13:47:45 -0700 | [diff] [blame^] | 35 | "libbootloader_message_vendor", |
David Anderson | 8108e25 | 2019-08-28 15:24:07 -0700 | [diff] [blame] | 36 | "libfstab", |
| 37 | ], |
| 38 | } |
| 39 | |
| 40 | cc_library_static { |
| 41 | name: "libboot_control", |
| 42 | defaults: ["libboot_control_defaults"], |
| 43 | export_include_dirs: ["include"], |
| 44 | |
| 45 | srcs: ["libboot_control.cpp"], |
| 46 | } |
| 47 | |
| 48 | cc_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 Valsaraju | c53dad2 | 2018-07-26 16:51:52 -0700 | [diff] [blame] | 60 | } |