From 9e30997676c4fb49812c74b8580ec63a9b3d890e Mon Sep 17 00:00:00 2001 From: Tao Bao Date: Fri, 11 May 2018 15:13:10 -0700 Subject: Clean up the Makefile for recovery and tests. Reorder librecovery and librecovery_ui, so that librecovery stays closer to recovery (in preparation for later changes that move more files between the two). For the libraries in LOCAL_STATIC_LIBRARIES, reorder them based on the dependency - local modules coming first, with external libraries near the end. Sort the local / external modules, unless a specific order is needed. In tests/Android.mk, split the monolithic list of LOCAL_STATIC_LIBRARIES based on modules. This makes adding / finding libraries easier. There's no functionality in this CL. Test: mmma -j bootable/recovery Change-Id: I6836be574df565001ae9cd3d466a2b6460d90d08 --- tests/Android.mk | 99 ++++++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 71 insertions(+), 28 deletions(-) (limited to 'tests') diff --git a/tests/Android.mk b/tests/Android.mk index 7234b521a..cdc5b523a 100644 --- a/tests/Android.mk +++ b/tests/Android.mk @@ -94,6 +94,26 @@ LOCAL_SRC_FILES := \ LOCAL_SHARED_LIBRARIES := \ libhidlbase +# libapplypatch, libapplypatch_modes, libimgdiff, libimgpatch. +libapplypatch_static_libraries := \ + libapplypatch_modes \ + libapplypatch \ + libedify \ + libimgdiff \ + libimgpatch \ + libotafault \ + libotautil \ + libbsdiff \ + libbspatch \ + libdivsufsort \ + libdivsufsort64 \ + libutils \ + libbase \ + libbz \ + libcrypto \ + libz \ + libziparchive \ + tune2fs_static_libraries := \ libext2_com_err \ libext2_blkid \ @@ -102,50 +122,73 @@ tune2fs_static_libraries := \ libext2_e2p \ libext2fs -LOCAL_STATIC_LIBRARIES := \ - libapplypatch_modes \ +libupdater_static_libraries := \ + libupdater \ libapplypatch \ - libedify \ - libimgdiff \ - libimgpatch \ - libbsdiff \ libbspatch \ - libfusesideload \ - libminui \ + libedify \ + libziparchive \ + libotautil \ + libbootloader_message \ + libutils \ libotafault \ + libext4_utils \ + libfec \ + libfec_rs \ + libfs_mgr \ + liblog \ + libselinux \ + libsparse \ + libsquashfs_utils \ + libbz \ + libz \ + libbase \ + libcrypto \ + libcrypto_utils \ + libcutils \ + libtune2fs \ + libbrotli \ + $(tune2fs_static_libraries) + +librecovery_static_libraries := \ librecovery \ - libupdater \ + $(TARGET_RECOVERY_UI_LIB) \ libbootloader_message \ + libfusesideload \ + libminadbd \ + librecovery_ui \ + libminui \ libverifier \ libotautil \ - libupdate_verifier \ - libdivsufsort \ - libdivsufsort64 \ + libasyncio \ + libbatterymonitor \ + libcrypto_utils \ + libcrypto \ + libext4_utils \ libfs_mgr \ libpng \ + libsparse \ libvintf_recovery \ libvintf \ libhidl-gen-utils \ libtinyxml2 \ - libselinux \ - libext4_utils \ - libsparse \ - libcrypto_utils \ - libcrypto \ - libbz \ libziparchive \ - liblog \ - libutils \ - libz \ libbase \ - libtune2fs \ - libfec \ - libfec_rs \ - libsquashfs_utils \ libcutils \ - libbrotli \ - libBionicGtestMain \ - $(tune2fs_static_libraries) + libutils \ + liblog \ + libselinux \ + libz \ + +libupdate_verifier_static_libraries := \ + libupdate_verifier \ + +LOCAL_STATIC_LIBRARIES := \ + $(libapplypatch_static_libraries) \ + $(librecovery_static_libraries) \ + $(libupdate_verifier_static_libraries) \ + $(libupdater_static_libraries) \ + libBionicGtestMain LOCAL_TEST_DATA := \ $(call find-test-data-in-subdirs, $(LOCAL_PATH), "*", testdata) \ -- cgit v1.2.3