Whamcloud - gitweb
AOSP: 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         "create_inode.c",
27         "quota.c",
28         "xattrs.c",
29         "journal.c",
30         "revoke.c",
31         "recovery.c",
32         "do_journal.c",
33     ],
34     cflags: [
35         "-W",
36         "-Wall",
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     "libext2fs",
48     "libext2_blkid",
49     "libext2_uuid",
50     "libext2_ss",
51     "libext2_quota",
52     "libext2_com_err",
53     "libext2_e2p",
54 ]
55
56 cc_binary {
57     name: "debugfs",
58     host_supported: true,
59     defaults: ["debugfs-defaults"],
60
61     shared_libs: debugfs_libs,
62     system_shared_libs: ["libc"],
63 }
64
65 cc_binary {
66     name: "debugfs_static",
67     static_executable: true,
68     defaults: ["debugfs-defaults"],
69
70     static_libs: debugfs_libs + ["libc"],
71 }