e2fsprogs/resize/Android.bp
Jaegeuk Kim 247973bcc4 AOSP: tune2fs, resize2fs: make ramdisk binaries.
Bug: 149391799
Change-Id: I5183755915710e28a603e3f718f16813ea9991a0
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
From AOSP commit: a13a88d0d557a396f63702fb8db008487e2384d7
2020-03-20 23:19:24 -04:00

51 lines
1.1 KiB
Plaintext

// Copyright 2017 The Android Open Source Project
resize2fs_libs = [
"libext2fs",
"libext2_com_err",
"libext2_e2p",
"libext2_uuid",
"libext2_blkid",
]
cc_defaults {
name: "resize2fs-defaults",
defaults: ["e2fsprogs-defaults"],
srcs: [
"extent.c",
"resize2fs.c",
"main.c",
"online.c",
"sim_progress.c",
"resource_track.c",
],
}
cc_binary {
name: "resize2fs",
host_supported: true,
defaults: ["resize2fs-defaults"],
// Host binaries can be compiled statically to be re-used in other environments.
// For android binaries, we keep shared libraries to keep the binary size smaller.
target: {
host: {
static_libs: resize2fs_libs,
},
android: {
shared_libs: resize2fs_libs,
},
},
system_shared_libs: ["libc", "libdl"],
}
cc_binary {
name: "resize2fs_ramdisk",
stem: "resize2fs",
static_executable: true,
ramdisk: true,
defaults: ["resize2fs-defaults"],
system_shared_libs: [],
static_libs: resize2fs_libs,
}