1 // Copyright 2017 The Android Open Source Project
3 // Library used to export files from this directory to other programs in this
6 // See: http://go/android-license-faq
7 // A large-scale-change added 'default_applicable_licenses' to import
8 // all of the 'license_kinds' from "external_e2fsprogs_license"
9 // to get the below license kinds:
10 // SPDX-license-identifier-GPL
11 // SPDX-license-identifier-LGPL
12 // SPDX-license-identifier-LGPL-2.1
13 // SPDX-license-identifier-LGPL-3.0
14 default_applicable_licenses: ["external_e2fsprogs_license"],
20 recovery_available: true,
21 defaults: ["e2fsprogs-defaults"],
25 include_dirs: [ "external/e2fsprogs/include/mingw" ],
27 cflags: ["-Wno-unused-variable"],
34 cflags: ["-Wno-error=format-extra-args"],
40 export_include_dirs: ["."],
43 //########################################################################
49 recovery_available: true,
50 defaults: ["e2fsprogs-defaults"],
60 "-Wno-error=type-limits",
61 "-Wno-format-extra-args",
84 include_dirs: [ "external/e2fsprogs/include/mingw" ],
86 // mke2fs.c has a warning from gcc which cannot be suppressed:
87 // passing argument 3 of 'ext2fs_get_device_size' from
88 // incompatible pointer type
107 symlinks: ["mkfs.ext2", "mkfs.ext3", "mkfs.ext4"],
110 stl: "libc++_static",
111 include_dirs: ["external/e2fsprogs/e2fsck"],
114 //##########################################################################
118 name: "tune2fs-defaults",
119 defaults: ["e2fsprogs-defaults"],
124 cflags: ["-DNO_RECOVERY"],
125 include_dirs: ["external/e2fsprogs/e2fsck"],
139 host_supported: true,
140 vendor_ramdisk_available: true,
141 defaults: ["tune2fs-defaults"],
143 shared_libs: tune2fs_libs,
147 name: "tune2fs_static",
148 static_executable: true,
149 defaults: ["tune2fs-defaults"],
151 static_libs: tune2fs_libs,
155 name: "tune2fs_ramdisk",
157 static_executable: true,
159 defaults: ["tune2fs-defaults"],
160 static_libs: tune2fs_libs,
165 defaults: ["tune2fs-defaults"],
167 cflags: ["-DBUILD_AS_LIB"],
168 static_libs: tune2fs_libs,
171 //########################################################################
176 host_supported: true,
177 defaults: ["e2fsprogs-defaults"],
179 srcs: ["badblocks.c"],
189 //########################################################################
193 name: "chattr-e2fsprogs",
194 host_supported: true,
195 defaults: ["e2fsprogs-defaults"],
204 //########################################################################
208 name: "lsattr-defaults",
210 defaults: ["e2fsprogs-defaults"],
219 name: "lsattr-e2fsprogs",
220 host_supported: true,
221 defaults: ["lsattr-defaults"],
223 shared_libs: lsattr_libs,
227 name: "lsattr_static",
228 static_executable: true,
229 defaults: ["lsattr-defaults"],
231 static_libs: lsattr_libs,
234 //########################################################################
239 defaults: ["e2fsprogs-defaults"],
250 //########################################################################
255 host_supported: true,
256 defaults: ["e2fsprogs-defaults"],
271 //##########################################################################
276 host_supported: true,
277 defaults: ["e2fsprogs-defaults"],
288 //##########################################################################
293 host_supported: true,
294 defaults: ["e2fsprogs-defaults"],
296 srcs: ["filefrag.c"],
302 //##########################################################################
307 host_supported: true,
308 defaults: ["e2fsprogs-defaults"],
313 header_libs: ["libext2-headers"],