1// Copyright 2017 The Android Open Source Project
2
3cc_library {
4    name: "libext2_uuid",
5    host_supported: true,
6    unique_host_soname: true,
7    defaults: ["e2fsprogs-defaults"],
8    srcs: [
9        "clear.c",
10        "compare.c",
11        "copy.c",
12        "gen_uuid.c",
13        "isnull.c",
14        "pack.c",
15        "parse.c",
16        "unpack.c",
17        "unparse.c",
18        "uuid_time.c",
19    ],
20    cflags: [
21        "-Wno-unused-function",
22        "-Wno-unused-parameter",
23    ],
24    target: {
25        windows: {
26            // Cannot suppress the _WIN32_WINNT redefined warning.
27            cflags: ["-Wno-error"],
28            include_dirs: [ "external/e2fsprogs/include/mingw" ],
29            enabled: true
30        },
31    },
32    header_libs: ["libext2-headers"],
33    export_include_dirs: ["."],
34    export_header_lib_headers: ["libext2-headers"],
35}
36