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 src: "mke2fs.conf", 91} 92 93prebuilt_etc { 94 name: "mke2fs.conf.recovery", 95 recovery: true, 96 src: "mke2fs.conf", 97} 98 99// TODO(b/157625953): Can't embedded into the other package because of missing variant 100filegroup { 101 name: "mke2fs_conf", 102 srcs: [ 103 "mke2fs.conf", 104 ], 105 visibility: [ 106 "//development/build", 107 "//system/apex/apexer", 108 ], 109} 110 111cc_binary_host { 112 name: "blk_alloc_to_base_fs", 113 srcs: ["blk_alloc_to_base_fs.cpp"], 114 shared_libs: ["libcutils"], 115 target: { 116 host: { 117 cflags: ["-DHOST"], 118 }, 119 }, 120 cflags: [ 121 "-Wall", 122 "-Werror", 123 ], 124} 125