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" ],
87 "-D__USE_MINGW_ALARM",
88 // mke2fs.c has a warning from gcc which cannot be suppressed:
89 // passing argument 3 of 'ext2fs_get_device_size' from
90 // incompatible pointer type
94 host_ldlibs: ["-lws2_32"],
110 symlinks: ["mkfs.ext2", "mkfs.ext3", "mkfs.ext4"],
113 stl: "libc++_static",
114 include_dirs: ["external/e2fsprogs/e2fsck"],
117 //##########################################################################
121 name: "tune2fs-defaults",
122 defaults: ["e2fsprogs-defaults"],
127 cflags: ["-DNO_RECOVERY"],
128 include_dirs: ["external/e2fsprogs/e2fsck"],
142 host_supported: true,
143 vendor_ramdisk_available: true,
144 defaults: ["tune2fs-defaults"],
146 shared_libs: tune2fs_libs,
150 name: "tune2fs_static",
151 static_executable: true,
152 defaults: ["tune2fs-defaults"],
154 static_libs: tune2fs_libs,
158 name: "tune2fs_ramdisk",
160 static_executable: true,
162 defaults: ["tune2fs-defaults"],
163 static_libs: tune2fs_libs,
168 defaults: ["tune2fs-defaults"],
170 cflags: ["-DBUILD_AS_LIB"],
171 static_libs: tune2fs_libs,
174 //########################################################################
179 host_supported: true,
180 defaults: ["e2fsprogs-defaults"],
182 srcs: ["badblocks.c"],
192 //########################################################################
196 name: "chattr-e2fsprogs",
197 host_supported: true,
198 defaults: ["e2fsprogs-defaults"],
207 //########################################################################
211 name: "lsattr-defaults",
213 defaults: ["e2fsprogs-defaults"],
222 name: "lsattr-e2fsprogs",
223 host_supported: true,
224 defaults: ["lsattr-defaults"],
226 shared_libs: lsattr_libs,
230 name: "lsattr_static",
231 static_executable: true,
232 defaults: ["lsattr-defaults"],
234 static_libs: lsattr_libs,
237 //########################################################################
242 defaults: ["e2fsprogs-defaults"],
253 //########################################################################
258 host_supported: true,
259 defaults: ["e2fsprogs-defaults"],
274 //##########################################################################
279 host_supported: true,
280 defaults: ["e2fsprogs-defaults"],
291 //##########################################################################
296 host_supported: true,
297 defaults: ["e2fsprogs-defaults"],
299 srcs: ["filefrag.c"],
305 //##########################################################################
310 host_supported: true,
311 defaults: ["e2fsprogs-defaults"],
316 header_libs: ["libext2-headers"],