libbootloader_message: host_supported.

Also, strlcat is not available on host, so use
std::string::operator+= instead.

Test: cuttlefish
Bug: 79094284

Change-Id: I1e69daeb522ca73f43e0c4855cf099a021ed4d47
This commit is contained in:
Yifan Hong
2019-05-02 15:51:56 -07:00
parent c784ce50e8
commit d83070ddb9
2 changed files with 26 additions and 4 deletions
+17 -1
View File
@@ -17,6 +17,7 @@
cc_library {
name: "libbootloader_message",
recovery_available: true,
host_supported: true,
srcs: ["bootloader_message.cpp"],
cflags: [
"-Wall",
@@ -24,7 +25,22 @@ cc_library {
],
shared_libs: [
"libbase",
"libfs_mgr",
],
export_include_dirs: ["include"],
target: {
android: {
shared_libs: [
"libfs_mgr",
],
},
host: {
shared_libs: [
"libcutils", // for strlcpy
],
static_libs: [
"libfstab",
],
}
}
}