1// Copyright 2010 The Android Open Source Project 2 3cc_library { 4 name: "libext4_utils", 5 host_supported: true, 6 recovery_available: true, 7 srcs: [ 8 "ext4_utils.cpp", 9 "wipe.cpp", 10 "ext4_sb.cpp", 11 ], 12 // Various instances of dereferencing a type-punned pointer in extent.c 13 cflags: [ 14 "-Werror", 15 "-fno-strict-aliasing", 16 ], 17 export_include_dirs: ["include"], 18 shared_libs: [ 19 "libbase", 20 "libz", 21 ], 22 23 target: { 24 windows: { 25 host_ldlibs: ["-lws2_32"], 26 enabled: true, 27 }, 28 29 android: { 30 shared_libs: [ 31 "libbase", 32 ], 33 34 shared: { 35 cflags: ["-DREAL_UUID"], 36 shared_libs: [ 37 "libcutils", 38 "libext2_uuid", 39 ], 40 }, 41 }, 42 }, 43} 44 45python_binary_host { 46 name: "mkuserimg_mke2fs", 47 srcs: [ 48 "mkuserimg_mke2fs.py", 49 ], 50 51 data: [ 52 "mke2fs.conf", 53 ], 54 55 version: { 56 py2: { 57 enabled: true, 58 embedded_launcher: true, 59 }, 60 py3: { 61 enabled: false, 62 embedded_launcher: false, 63 }, 64 }, 65 66 required: [ 67 "mke2fs", 68 "e2fsdroid", 69 ], 70} 71 72prebuilt_etc { 73 name: "mke2fs.conf", 74 recovery_available: true, 75 src: "mke2fs.conf", 76} 77 78cc_binary_host { 79 name: "blk_alloc_to_base_fs", 80 srcs: ["blk_alloc_to_base_fs.cpp"], 81 shared_libs: ["libcutils"], 82 target: { 83 host: { 84 cflags: ["-DHOST"], 85 }, 86 }, 87 cflags: [ 88 "-Wall", 89 "-Werror", 90 ], 91} 92