diff options
author | Alex Deymo <deymo@google.com> | 2017-01-12 09:48:04 -0800 |
---|---|---|
committer | Alex Deymo <deymo@google.com> | 2017-01-23 15:18:30 -0800 |
commit | 7a9e1a96766d31a41b88f0a539fcc3d532b5c530 (patch) | |
tree | 19925cdc3bb8bf3b20582344b8e413787f653fa8 /debugfs/Android.bp | |
parent | 412c46afdf700a5786e827fa4e39a2167e01a2ed (diff) | |
download | android_external_e2fsprogs-7a9e1a96766d31a41b88f0a539fcc3d532b5c530.tar.gz android_external_e2fsprogs-7a9e1a96766d31a41b88f0a539fcc3d532b5c530.tar.bz2 android_external_e2fsprogs-7a9e1a96766d31a41b88f0a539fcc3d532b5c530.zip |
Convert e2fsprogs targets to soong.
This patch also removes all the "-host" and "_static" suffix from all
the libraries adding "unique_host_soname: true". This prevents
confusions with the host installed libraries.
A new "libext2_misc" library is introduced to export some files from
the misc/ directory to other binaries in this project.
Bug: 34220783
Test: mmma external/e2fsprogs
Change-Id: Ia1b689991346b11f8cb38f7c6ee356e666e01d6d
Diffstat (limited to 'debugfs/Android.bp')
-rw-r--r-- | debugfs/Android.bp | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/debugfs/Android.bp b/debugfs/Android.bp new file mode 100644 index 00000000..be0042ad --- /dev/null +++ b/debugfs/Android.bp @@ -0,0 +1,71 @@ +// Copyright 2017 The Android Open Source Project + +//######################## +// Build the debugfs binary + +cc_defaults { + name: "debugfs-defaults", + srcs: [ + "debug_cmds.c", + "debugfs.c", + "util.c", + "ncheck.c", + "icheck.c", + "ls.c", + "lsdel.c", + "dump.c", + "set_fields.c", + "logdump.c", + "htree.c", + "unused.c", + "e2freefrag.c", + "filefrag.c", + "extent_cmds.c", + "extent_inode.c", + "zap.c", + "create_inode.c", + "quota.c", + "xattrs.c", + "journal.c", + "revoke.c", + "recovery.c", + "do_journal.c", + ], + cflags: [ + "-W", + "-Wall", + "-fno-strict-aliasing", + "-DDEBUGFS", + ], + include_dirs: [ + "external/e2fsprogs/misc", + "external/e2fsprogs/e2fsck" + ], +} + +debugfs_libs = [ + "libext2fs", + "libext2_blkid", + "libext2_uuid", + "libext2_ss", + "libext2_quota", + "libext2_com_err", + "libext2_e2p", +] + +cc_binary { + name: "debugfs", + host_supported: true, + defaults: ["debugfs-defaults"], + + shared_libs: debugfs_libs, + system_shared_libs: ["libc"], +} + +cc_binary { + name: "debugfs_static", + static_executable: true, + defaults: ["debugfs-defaults"], + + static_libs: debugfs_libs, +} |