1// Copyright 2017 The Android Open Source Project
2
3cc_library {
4    name: "libext2_e2p",
5    host_supported: true,
6    unique_host_soname: true,
7    defaults: ["e2fsprogs-defaults"],
8    srcs: [
9        "feature.c",
10        "fgetflags.c",
11        "fsetflags.c",
12        "fgetproject.c",
13        "fsetproject.c",
14        "fgetversion.c",
15        "fsetversion.c",
16        "getflags.c",
17        "getversion.c",
18        "hashstr.c",
19        "iod.c",
20        "ls.c",
21        "mntopts.c",
22        "parse_num.c",
23        "pe.c",
24        "pf.c",
25        "ps.c",
26        "setflags.c",
27        "setversion.c",
28        "uuid.c",
29        "ostype.c",
30        "percent.c",
31    ],
32
33    cflags: ["-Wno-error=attributes"],
34
35    target: {
36        windows: {
37            include_dirs: [ "external/e2fsprogs/include/mingw" ],
38            enabled: true,
39            cflags: [
40                "-Wno-unused-variable",
41                "-Wno-unused-parameter",
42            ],
43            clang_cflags: [
44                "-Wno-error=typedef-redefinition",
45            ],
46        },
47    },
48
49    header_libs: ["libext2-headers"],
50    export_include_dirs: ["."],
51    export_header_lib_headers: ["libext2-headers"],
52}
53