mirror of
https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
synced 2024-12-12 03:13:52 +08:00
247973bcc4
Bug: 149391799 Change-Id: I5183755915710e28a603e3f718f16813ea9991a0 Signed-off-by: Jaegeuk Kim <jaegeuk@google.com> From AOSP commit: a13a88d0d557a396f63702fb8db008487e2384d7
51 lines
1.1 KiB
Plaintext
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,
|
|
}
|