• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2017 The Android Open Source Project
2
3cc_library {
4    name: "libext2_blkid",
5    host_supported: true,
6    ramdisk_available: true,
7    recovery_available: true,
8    unique_host_soname: true,
9    defaults: ["e2fsprogs-defaults"],
10    srcs: [
11        "cache.c",
12        "dev.c",
13        "devname.c",
14        "devno.c",
15        "getsize.c",
16        "llseek.c",
17        "probe.c",
18        "read.c",
19        "resolve.c",
20        "save.c",
21        "tag.c",
22        "version.c",
23    ],
24    shared_libs: ["libext2_uuid"],
25
26    target: {
27        windows: {
28            include_dirs: [ "external/e2fsprogs/include/mingw" ],
29            cflags: [
30                "-Wno-pointer-to-int-cast",
31                "-Wno-unused-variable",
32            ],
33            clang_cflags: [
34                "-Wno-error=typedef-redefinition",
35            ],
36            enabled: true
37        },
38    },
39
40    cflags: [
41        "-Wno-error=attributes",
42        "-Wno-error=pointer-sign",
43        "-Wno-unused-parameter",
44        "-fno-strict-aliasing",
45    ],
46
47    header_libs: ["libext2-headers"],
48    export_include_dirs: ["."],
49    export_header_lib_headers: ["libext2-headers"],
50}
51