Whamcloud - gitweb
AOSP: Revert "Add "libc" to soong static_executable targets."
[tools/e2fsprogs.git] / debugfs / Android.bp
1 // Copyright 2017 The Android Open Source Project
2
3 //########################
4 // Build the debugfs binary
5
6 cc_defaults {
7     name: "debugfs-defaults",
8     srcs: [
9         "debug_cmds.c",
10         "debugfs.c",
11         "util.c",
12         "ncheck.c",
13         "icheck.c",
14         "ls.c",
15         "lsdel.c",
16         "dump.c",
17         "set_fields.c",
18         "logdump.c",
19         "htree.c",
20         "unused.c",
21         "e2freefrag.c",
22         "filefrag.c",
23         "extent_cmds.c",
24         "extent_inode.c",
25         "zap.c",
26         "quota.c",
27         "xattrs.c",
28         "journal.c",
29         "revoke.c",
30         "recovery.c",
31         "do_journal.c",
32     ],
33     cflags: [
34         "-W",
35         "-Wall",
36         "-Wno-macro-redefined",
37         "-fno-strict-aliasing",
38         "-DDEBUGFS",
39     ],
40     include_dirs: [
41         "external/e2fsprogs/misc",
42         "external/e2fsprogs/e2fsck"
43     ],
44 }
45
46 debugfs_libs = [
47     "libext2_misc",
48     "libext2fs",
49     "libext2_blkid",
50     "libext2_uuid",
51     "libext2_ss",
52     "libext2_quota",
53     "libext2_com_err",
54     "libext2_e2p",
55 ]
56
57 cc_binary {
58     name: "debugfs",
59     host_supported: true,
60     defaults: ["debugfs-defaults"],
61
62     shared_libs: debugfs_libs,
63     system_shared_libs: ["libc", "libdl"],
64 }
65
66 cc_binary {
67     name: "debugfs_static",
68     static_executable: true,
69     defaults: ["debugfs-defaults"],
70
71     static_libs: debugfs_libs,
72 }