• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2017 The Android Open Source Project
2
3//########################
4// Build the e2fsck binary
5
6cc_defaults {
7    name: "e2fsck-defaults",
8    defaults: ["e2fsprogs-defaults"],
9    srcs: [
10        "e2fsck.c",
11        "super.c",
12        "pass1.c",
13        "pass1b.c",
14        "pass2.c",
15        "pass3.c",
16        "pass4.c",
17        "pass5.c",
18        "logfile.c",
19        "journal.c",
20        "recovery.c",
21        "revoke.c",
22        "badblocks.c",
23        "util.c",
24        "unix.c",
25        "dirinfo.c",
26        "dx_dirinfo.c",
27        "ehandler.c",
28        "problem.c",
29        "message.c",
30        "ea_refcount.c",
31        "quota.c",
32        "rehash.c",
33        "region.c",
34        "sigcatcher.c",
35        "readahead.c",
36        "extents.c",
37    ],
38    cflags: [
39        "-Wno-sign-compare",
40        "-fno-strict-aliasing",
41    ],
42}
43
44e2fsck_libs = [
45    "libext2fs",
46    "libext2_blkid",
47    "libext2_com_err",
48    "libext2_uuid",
49    "libext2_quota",
50    "libext2_e2p",
51]
52
53cc_binary {
54    name: "e2fsck",
55    host_supported: true,
56    defaults: ["e2fsck-defaults"],
57
58    shared_libs: e2fsck_libs,
59    system_shared_libs: ["libc", "libdl"],
60}
61
62cc_binary {
63    name: "e2fsck_static",
64    static_executable: true,
65    defaults: ["e2fsck-defaults"],
66
67    static_libs: e2fsck_libs,
68}
69