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