Imported Upstream version 1.47.0
[platform/upstream/e2fsprogs.git] / e2fsck / Android.bp
1 // Copyright 2017 The Android Open Source Project
2
3 //########################
4 // Build the e2fsck binary
5
6 package {
7     // See: http://go/android-license-faq
8     // A large-scale-change added 'default_applicable_licenses' to import
9     // all of the 'license_kinds' from "external_e2fsprogs_license"
10     // to get the below license kinds:
11     //   SPDX-license-identifier-GPL
12     //   SPDX-license-identifier-GPL-2.0
13     //   SPDX-license-identifier-LGPL
14     default_applicable_licenses: ["external_e2fsprogs_license"],
15 }
16
17 cc_defaults {
18     name: "e2fsck-defaults",
19     defaults: ["e2fsprogs-defaults"],
20     srcs: [
21         "e2fsck.c",
22         "super.c",
23         "pass1.c",
24         "pass1b.c",
25         "pass2.c",
26         "pass3.c",
27         "pass4.c",
28         "pass5.c",
29         "logfile.c",
30         "journal.c",
31         "recovery.c",
32         "revoke.c",
33         "badblocks.c",
34         "util.c",
35         "unix.c",
36         "dirinfo.c",
37         "dx_dirinfo.c",
38         "ehandler.c",
39         "problem.c",
40         "message.c",
41         "ea_refcount.c",
42         "quota.c",
43         "rehash.c",
44         "region.c",
45         "sigcatcher.c",
46         "readahead.c",
47         "extents.c",
48         "encrypted_files.c",
49     ],
50 }
51
52 e2fsck_libs = [
53     "libext2fs",
54     "libext2_blkid",
55     "libext2_com_err",
56     "libext2_uuid",
57     "libext2_quota",
58     "libext2_e2p",
59 ]
60
61 cc_binary {
62     name: "e2fsck",
63     host_supported: true,
64     vendor_ramdisk_available: true,
65     defaults: ["e2fsck-defaults"],
66
67     shared_libs: e2fsck_libs,
68     required: ["badblocks"],
69 }
70
71 cc_binary {
72     name: "e2fsck_static",
73     static_executable: true,
74     defaults: ["e2fsck-defaults"],
75
76     static_libs: e2fsck_libs,
77 }
78
79 cc_binary {
80     name: "e2fsck_ramdisk",
81     stem: "e2fsck",
82     static_executable: true,
83     ramdisk: true,
84     defaults: ["e2fsck-defaults"],
85     static_libs: e2fsck_libs,
86 }