1// Copyright 2010 The Android Open Source Project 2 3package { 4 default_applicable_licenses: ["system_extras_ext4_utils_license"], 5} 6 7// Added automatically by a large-scale-change 8// See: http://go/android-license-faq 9license { 10 name: "system_extras_ext4_utils_license", 11 visibility: [":__subpackages__"], 12 license_kinds: [ 13 "SPDX-license-identifier-Apache-2.0", 14 ], 15 license_text: [ 16 "NOTICE", 17 ], 18} 19 20cc_library { 21 name: "libext4_utils", 22 host_supported: true, 23 ramdisk_available: true, 24 vendor_ramdisk_available: true, 25 recovery_available: true, 26 srcs: [ 27 "ext4_utils.cpp", 28 "wipe.cpp", 29 "ext4_sb.cpp", 30 ], 31 // Various instances of dereferencing a type-punned pointer in extent.c 32 cflags: [ 33 "-Werror", 34 "-fno-strict-aliasing", 35 ], 36 export_include_dirs: ["include"], 37 shared_libs: [ 38 "libbase", 39 "libz", 40 ], 41 42 target: { 43 windows: { 44 host_ldlibs: ["-lws2_32"], 45 enabled: true, 46 }, 47 48 android: { 49 shared_libs: [ 50 "libbase", 51 ], 52 53 shared: { 54 cflags: ["-DREAL_UUID"], 55 shared_libs: [ 56 "libcutils", 57 "libext2_uuid", 58 ], 59 }, 60 }, 61 }, 62} 63 64python_binary_host { 65 name: "mkuserimg_mke2fs", 66 srcs: [ 67 "mkuserimg_mke2fs.py", 68 ], 69 70 data: [ 71 "mke2fs.conf", 72 ], 73 74 version: { 75 py3: { 76 enabled: true, 77 embedded_launcher: true, 78 }, 79 }, 80 81 required: [ 82 "mke2fs", 83 "e2fsdroid", 84 ], 85} 86 87prebuilt_etc { 88 name: "mke2fs.conf", 89 recovery_available: true, 90 src: "mke2fs.conf", 91} 92 93// TODO(b/157625953): Can't embedded into the other package because of missing variant 94filegroup { 95 name: "mke2fs_conf", 96 srcs: [ 97 "mke2fs.conf", 98 ], 99 visibility: [ 100 "//development/build", 101 "//system/apex/apexer", 102 ], 103} 104 105cc_binary_host { 106 name: "blk_alloc_to_base_fs", 107 srcs: ["blk_alloc_to_base_fs.cpp"], 108 shared_libs: ["libcutils"], 109 target: { 110 host: { 111 cflags: ["-DHOST"], 112 }, 113 }, 114 cflags: [ 115 "-Wall", 116 "-Werror", 117 ], 118} 119