1// Copyright 2017 The Android Open Source Project 2 3cc_library { 4 name: "libext2_e2p", 5 host_supported: true, 6 recovery_available: true, 7 unique_host_soname: true, 8 defaults: ["e2fsprogs-defaults"], 9 srcs: [ 10 "feature.c", 11 "fgetflags.c", 12 "fsetflags.c", 13 "fgetproject.c", 14 "fsetproject.c", 15 "fgetversion.c", 16 "fsetversion.c", 17 "getflags.c", 18 "getversion.c", 19 "hashstr.c", 20 "iod.c", 21 "ljs.c", 22 "ls.c", 23 "mntopts.c", 24 "parse_num.c", 25 "pe.c", 26 "pf.c", 27 "ps.c", 28 "setflags.c", 29 "setversion.c", 30 "uuid.c", 31 "ostype.c", 32 "percent.c", 33 ], 34 35 cflags: [ 36 "-Wno-error=attributes", 37 "-Wno-unused-parameter", 38 ], 39 40 target: { 41 windows: { 42 include_dirs: [ "external/e2fsprogs/include/mingw" ], 43 enabled: true, 44 cflags: [ 45 "-Wno-unused-variable", 46 ], 47 clang_cflags: [ 48 "-Wno-error=typedef-redefinition", 49 ], 50 host_ldlibs: [ 51 "-lws2_32", 52 ], 53 }, 54 }, 55 56 header_libs: ["libext2-headers"], 57 export_include_dirs: ["."], 58 export_header_lib_headers: ["libext2-headers"], 59} 60