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 "-D_FILE_OFFSET_BITS=64", 36 ], 37 export_include_dirs: ["include"], 38 shared_libs: [ 39 "libbase", 40 "libz", 41 ], 42 43 target: { 44 windows: { 45 host_ldlibs: ["-lws2_32"], 46 enabled: true, 47 }, 48 49 android: { 50 shared_libs: [ 51 "libbase", 52 ], 53 54 shared: { 55 cflags: ["-DREAL_UUID"], 56 shared_libs: [ 57 "libcutils", 58 "libext2_uuid", 59 ], 60 }, 61 }, 62 }, 63} 64 65python_binary_host { 66 name: "mkuserimg_mke2fs", 67 srcs: [ 68 "mkuserimg_mke2fs.py", 69 ], 70 71 data: [ 72 "mke2fs.conf", 73 ], 74 75 version: { 76 py3: { 77 enabled: true, 78 embedded_launcher: true, 79 }, 80 }, 81 82 required: [ 83 "mke2fs", 84 "e2fsdroid", 85 ], 86} 87 88prebuilt_etc { 89 name: "mke2fs.conf", 90 recovery_available: true, 91 src: "mke2fs.conf", 92} 93 94// TODO(b/157625953): Can't embedded into the other package because of missing variant 95filegroup { 96 name: "mke2fs_conf", 97 srcs: [ 98 "mke2fs.conf", 99 ], 100 visibility: [ 101 "//development/build", 102 "//system/apex/apexer", 103 ], 104} 105 106cc_binary_host { 107 name: "blk_alloc_to_base_fs", 108 srcs: ["blk_alloc_to_base_fs.cpp"], 109 shared_libs: ["libcutils"], 110 target: { 111 host: { 112 cflags: ["-DHOST"], 113 }, 114 }, 115 cflags: [ 116 "-Wall", 117 "-Werror", 118 ], 119} 120