Whamcloud - gitweb
e2fsck: mark that we don't care about the return value of e2fsck_lookup()
[tools/e2fsprogs.git] / resize / Android.bp
1 // Copyright 2017 The Android Open Source Project
2
3 package {
4     // See: http://go/android-license-faq
5     // A large-scale-change added 'default_applicable_licenses' to import
6     // all of the 'license_kinds' from "external_e2fsprogs_license"
7     // to get the below license kinds:
8     //   SPDX-license-identifier-GPL
9     default_applicable_licenses: ["external_e2fsprogs_license"],
10 }
11
12 resize2fs_libs = [
13     "libext2fs",
14     "libext2_com_err",
15     "libext2_e2p",
16     "libext2_uuid",
17     "libext2_blkid",
18 ]
19
20 cc_defaults {
21     name: "resize2fs-defaults",
22     defaults: ["e2fsprogs-defaults"],
23     srcs: [
24         "extent.c",
25         "resize2fs.c",
26         "main.c",
27         "online.c",
28         "sim_progress.c",
29         "resource_track.c",
30     ],
31 }
32
33 cc_binary {
34     name: "resize2fs",
35     host_supported: true,
36     vendor_ramdisk_available: true,
37     defaults: ["resize2fs-defaults"],
38
39     // Host binaries can be compiled statically to be re-used in other environments.
40     // For android binaries, we keep shared libraries to keep the binary size smaller.
41     target: {
42         host: {
43             static_libs: resize2fs_libs,
44         },
45         android: {
46             shared_libs: resize2fs_libs,
47         },
48     },
49 }
50
51 cc_binary {
52     name: "resize2fs_ramdisk",
53     stem: "resize2fs",
54     static_executable: true,
55     ramdisk: true,
56     defaults: ["resize2fs-defaults"],
57     static_libs: resize2fs_libs,
58 }