• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2017 The Android Open Source Project
2
3package {
4    // See: http://go/android-license-faq
5    // A large-scale-change added 'default_applicable_licenses' to import
6    // all of the 'license_kinds' from "external_e2fsprogs_license"
7    // to get the below license kinds:
8    //   SPDX-license-identifier-GPL
9    //   SPDX-license-identifier-LGPL
10    //   SPDX-license-identifier-LGPL-2.1
11    //   SPDX-license-identifier-LGPL-3.0
12    default_applicable_licenses: ["external_e2fsprogs_license"],
13}
14
15cc_library {
16    name: "libext2_blkid",
17    host_supported: true,
18    ramdisk_available: true,
19    vendor_ramdisk_available: true,
20    recovery_available: true,
21    unique_host_soname: true,
22    defaults: ["e2fsprogs-defaults"],
23    srcs: [
24        "cache.c",
25        "dev.c",
26        "devname.c",
27        "devno.c",
28        "getsize.c",
29        "llseek.c",
30        "probe.c",
31        "read.c",
32        "resolve.c",
33        "save.c",
34        "tag.c",
35        "version.c",
36    ],
37    shared_libs: ["libext2_uuid"],
38
39    target: {
40        windows: {
41            include_dirs: [ "external/e2fsprogs/include/mingw" ],
42            cflags: [
43                "-Wno-pointer-to-int-cast",
44                "-Wno-unused-variable",
45            ],
46            clang_cflags: [
47                "-Wno-error=typedef-redefinition",
48            ],
49            enabled: true
50        },
51    },
52
53    cflags: [
54        "-Wno-error=attributes",
55        "-Wno-error=pointer-sign",
56        "-Wno-unused-parameter",
57        "-fno-strict-aliasing",
58    ],
59
60    header_libs: ["libext2-headers"],
61    export_include_dirs: ["."],
62    export_header_lib_headers: ["libext2-headers"],
63}
64