1// Copyright 2017 The Android Open Source Project 2 3//########################################################################## 4// Build e2fsdroid 5 6cc_binary { 7 name: "e2fsdroid", 8 host_supported: true, 9 10 srcs: [ 11 "e2fsdroid.c", 12 "block_range.c", 13 "fsmap.c", 14 "block_list.c", 15 "base_fs.c", 16 "perms.c", 17 "basefs_allocator.c", 18 "hashmap.c", 19 ], 20 cflags: ["-W", "-Wall"], 21 shared_libs: [ 22 "libext2fs", 23 "libext2_com_err", 24 "libext2_misc", 25 "libcutils", 26 "libbase", 27 "libselinux", 28 "libcrypto", 29 ], 30} 31 32//########################################################################## 33// Build ext2simg 34 35cc_binary { 36 name: "ext2simg", 37 host_supported: true, 38 39 srcs: ["ext2simg.c"], 40 cflags: ["-W", "-Wall"], 41 shared_libs: [ 42 "libext2fs", 43 "libext2_com_err", 44 "libsparse", 45 ], 46 47 target: { 48 host: { 49 shared_libs: ["libz-host"], 50 }, 51 android: { 52 shared_libs: ["libz"], 53 }, 54 }, 55} 56