diff options
author | Tao Bao <tbao@google.com> | 2018-08-13 18:36:21 +0200 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-08-13 18:36:21 +0200 |
commit | 287ce6ebea77c64cf911022142291f036d36dea5 (patch) | |
tree | ce4a9ceb9f8d6437c1c41e6faa8a92b0e9574fc7 /Android.bp | |
parent | Merge "tests: Create res-testdata for testdata pickup." am: 2cc6211165 (diff) | |
parent | Merge "Build `recovery` with Soong." (diff) | |
download | android_bootable_recovery-287ce6ebea77c64cf911022142291f036d36dea5.tar android_bootable_recovery-287ce6ebea77c64cf911022142291f036d36dea5.tar.gz android_bootable_recovery-287ce6ebea77c64cf911022142291f036d36dea5.tar.bz2 android_bootable_recovery-287ce6ebea77c64cf911022142291f036d36dea5.tar.lz android_bootable_recovery-287ce6ebea77c64cf911022142291f036d36dea5.tar.xz android_bootable_recovery-287ce6ebea77c64cf911022142291f036d36dea5.tar.zst android_bootable_recovery-287ce6ebea77c64cf911022142291f036d36dea5.zip |
Diffstat (limited to 'Android.bp')
-rw-r--r-- | Android.bp | 131 |
1 files changed, 131 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp index 97126f5b1..99e8b652f 100644 --- a/Android.bp +++ b/Android.bp @@ -26,6 +26,34 @@ cc_defaults { ], } +cc_library { + name: "librecovery_ui", + recovery_available: true, + + defaults: [ + "recovery_defaults", + ], + + srcs: [ + "device.cpp", + "screen_ui.cpp", + "ui.cpp", + "vr_ui.cpp", + "wear_ui.cpp" + ], + + static_libs: [ + "libminui", + "libotautil", + ], + + shared_libs: [ + "libbase", + "libpng", + "libz", + ], +} + // Generic device that uses ScreenRecoveryUI. cc_library_static { name: "librecovery_ui_default", @@ -68,6 +96,78 @@ cc_library_static { ], } +cc_defaults { + name: "librecovery_defaults", + + defaults: [ + "recovery_defaults", + ], + + shared_libs: [ + "libasyncio", + "libbase", + "libbootloader_message", + "libcrypto", + "libcrypto_utils", + "libcutils", + "libext4_utils", + "libfs_mgr", + "libfusesideload", + "libhidl-gen-utils", + "liblog", + "libpng", + "libselinux", + "libsparse", + "libtinyxml2", + "libutils", + "libz", + "libziparchive", + ], + + static_libs: [ + "libminadbd", + "libminui", + "libverifier", + "libotautil", + "libvintf_recovery", + "libvintf", + + // TODO(b/80132328): Remove the dependency on static health HAL. + "libhealthd.default", + "android.hardware.health@2.0-impl", + "android.hardware.health@2.0", + "android.hardware.health@1.0", + "android.hardware.health@1.0-convert", + "libhealthstoragedefault", + "libhidltransport", + "libhidlbase", + "libhwbinder_noltopgo", + "libbatterymonitor", + ], +} + +cc_library_static { + name: "librecovery", + recovery_available: true, + + defaults: [ + "librecovery_defaults", + ], + + srcs: [ + "adb_install.cpp", + "fsck_unshare_blocks.cpp", + "fuse_sdcard_provider.cpp", + "install.cpp", + "recovery.cpp", + "roots.cpp", + ], + + include_dirs: [ + "system/vold", + ], +} + cc_library_static { name: "libverifier", recovery_available: true, @@ -92,6 +192,37 @@ cc_library_static { ], } +cc_binary { + name: "recovery", + recovery: true, + + defaults: [ + "librecovery_defaults", + ], + + srcs: [ + "logging.cpp", + "recovery_main.cpp", + ], + + shared_libs: [ + "librecovery_ui", + ], + + static_libs: [ + "librecovery", + "librecovery_ui_default", + ], + + required: [ + "e2fsdroid.recovery", + "librecovery_ui_ext", + "mke2fs.conf", + "mke2fs.recovery", + "recovery_deps", + ], +} + // The dynamic executable that runs after /data mounts. cc_binary { name: "recovery-persist", |