aboutsummaryrefslogtreecommitdiffstats
path: root/debugfs/Android.bp
blob: 4a2da2e75c8274befc0ed19c5c559db2e981c62f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
// 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",
        "quota.c",
        "xattrs.c",
        "journal.c",
        "revoke.c",
        "recovery.c",
        "do_journal.c",
    ],
    cflags: [
        "-W",
        "-Wall",
        "-Wno-macro-redefined",
        "-fno-strict-aliasing",
        "-DDEBUGFS",
    ],
    include_dirs: [
        "external/e2fsprogs/misc",
        "external/e2fsprogs/e2fsck"
    ],
}

debugfs_libs = [
    "libext2_misc",
    "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,
}