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