From 5dd50b2b8424a8e84f203072056ecd7c766b8e06 Mon Sep 17 00:00:00 2001 From: Alessio Balsini Date: Wed, 29 Jan 2020 13:57:23 +0000 Subject: [PATCH] Dependency cleanup for snapshot .bp Reorder, remove and fix some of the dependencies in the Android.bp for snapshot. Test: m, snapshot_test, OTA Bug: 142513589 Change-Id: Id214a8d6453a5675e60cda4352094dc3987292ec Signed-off-by: Alessio Balsini --- fs_mgr/libsnapshot/Android.bp | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/fs_mgr/libsnapshot/Android.bp b/fs_mgr/libsnapshot/Android.bp index 447265ac4..ad48b8289 100644 --- a/fs_mgr/libsnapshot/Android.bp +++ b/fs_mgr/libsnapshot/Android.bp @@ -24,14 +24,13 @@ cc_defaults { ], shared_libs: [ "libbase", + "libcutils", "liblog", "liblp", ], static_libs: [ - "libcutils", "libdm", "libfstab", - "liblp", "update_metadata-protos", ], whole_static_libs: [ @@ -146,8 +145,8 @@ cc_library_static { ], static_libs: [ "libfs_mgr", - "libgtest", "libgmock", + "libgtest", ], } @@ -155,29 +154,28 @@ cc_test { name: "libsnapshot_test", defaults: ["libsnapshot_defaults"], srcs: [ - "snapshot_test.cpp", "partition_cow_creator_test.cpp", "snapshot_metadata_updater_test.cpp", - "test_helpers.cpp", + "snapshot_test.cpp", ], shared_libs: [ - "libbinder", - "libcrypto", - "libhidlbase", - "libprotobuf-cpp-lite", - "libutils", - ], - static_libs: [ "android.hardware.boot@1.0", "android.hardware.boot@1.1", + "libbinder", + "libcrypto", "libfs_mgr", - "libgmock", "libgsi", + "libhidlbase", "liblp", + "libprotobuf-cpp-lite", + "libsparse", + "libutils", + "libz", + ], + static_libs: [ + "libgmock", "libsnapshot", "libsnapshot_test_helpers", - "libsparse", - "libz", ], header_libs: [ "libstorage_literals_headers", @@ -192,7 +190,6 @@ cc_binary { ], static_libs: [ "libdm", - "libext2_uuid", "libfstab", "libsnapshot", ], @@ -202,6 +199,7 @@ cc_binary { "libbase", "libbinder", "libbinderthreadstate", + "libext2_uuid", "libext4_utils", "libfs_mgr_binder", "libhidlbase",