1// Copyright 2017 The Android Open Source Project
2
3cc_library {
4    name: "libext2_quota",
5    host_supported: true,
6    unique_host_soname: true,
7    defaults: ["e2fsprogs-defaults"],
8    srcs: [
9        "dict.c",
10        "mkquota.c",
11        "parse_qtype.c",
12        "plausible.c",
13        "profile.c",
14        "profile_helpers.c",
15        "prof_err.c",
16        "quotaio.c",
17        "quotaio_tree.c",
18        "quotaio_v2.c",
19    ],
20    shared_libs: [
21        "libext2fs",
22        "libext2_blkid",
23    ],
24
25    target: {
26        windows: {
27            enabled: true
28        },
29    },
30
31    header_libs: ["libext2-headers"],
32    export_include_dirs: ["."],
33    export_header_lib_headers: ["libext2-headers"],
34}
35
36cc_library_shared {
37    name: "libext2_profile",
38    host_supported: true,
39    unique_host_soname: true,
40    defaults: ["e2fsprogs-defaults"],
41
42    srcs: [
43        "prof_err.c",
44        "profile.c",
45    ],
46    shared_libs: ["libext2_com_err"],
47
48    header_libs: ["libext2-headers"],
49    export_include_dirs: ["."],
50    export_header_lib_headers: ["libext2-headers"],
51}
52