Whamcloud - gitweb
4813426e3f3e6a207a5a227aaf51a01b36e3c899
[tools/e2fsprogs.git] / lib / support / Android.bp
1 // Copyright 2017 The Android Open Source Project
2
3 cc_library {
4     name: "libext2_quota",
5     host_supported: true,
6     ramdisk_available: true,
7     vendor_ramdisk_available: true,
8     recovery_available: true,
9     unique_host_soname: true,
10     defaults: ["e2fsprogs-defaults"],
11     srcs: [
12         "dict.c",
13         "mkquota.c",
14         "parse_qtype.c",
15         "plausible.c",
16         "profile.c",
17         "profile_helpers.c",
18         "prof_err.c",
19         "quotaio.c",
20         "quotaio_tree.c",
21         "quotaio_v2.c",
22     ],
23     shared_libs: [
24         "libext2fs",
25         "libext2_blkid",
26         "libext2_com_err",
27     ],
28
29     target: {
30         windows: {
31             enabled: true
32         },
33     },
34
35     header_libs: ["libext2-headers"],
36     export_include_dirs: ["."],
37     export_header_lib_headers: ["libext2-headers"],
38 }
39
40 cc_library_shared {
41     name: "libext2_profile",
42     host_supported: true,
43     unique_host_soname: true,
44     defaults: ["e2fsprogs-defaults"],
45
46     srcs: [
47         "prof_err.c",
48         "profile.c",
49     ],
50     shared_libs: ["libext2_com_err"],
51
52     header_libs: ["libext2-headers"],
53     export_include_dirs: ["."],
54     export_header_lib_headers: ["libext2-headers"],
55 }
56
57 cc_library {
58     name: "libext2_support",
59     host_supported: true,
60     defaults: ["e2fsprogs-defaults"],
61
62     srcs: [
63         "cstring.c",
64     ],
65     header_libs: ["libext2-headers"],
66     export_include_dirs: ["."],
67 }