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