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 system_shared_libs: ["libc", "libdl"],
41 export_include_dirs: ["."],
44 //########################################################################
50 recovery_available: true,
51 defaults: ["e2fsprogs-defaults"],
61 "-Wno-error=type-limits",
62 "-Wno-format-extra-args",
85 include_dirs: [ "external/e2fsprogs/include/mingw" ],
88 "-D__USE_MINGW_ALARM",
89 // mke2fs.c has a warning from gcc which cannot be suppressed:
90 // passing argument 3 of 'ext2fs_get_device_size' from
91 // incompatible pointer type
95 host_ldlibs: ["-lws2_32"],
111 symlinks: ["mkfs.ext2", "mkfs.ext3", "mkfs.ext4"],
114 stl: "libc++_static",
115 include_dirs: ["external/e2fsprogs/e2fsck"],
118 //##########################################################################
122 name: "tune2fs-defaults",
123 defaults: ["e2fsprogs-defaults"],
128 cflags: ["-DNO_RECOVERY"],
129 include_dirs: ["external/e2fsprogs/e2fsck"],
143 host_supported: true,
144 vendor_ramdisk_available: true,
145 defaults: ["tune2fs-defaults"],
147 shared_libs: tune2fs_libs,
148 system_shared_libs: ["libc", "libdl"],
152 name: "tune2fs_static",
153 static_executable: true,
154 defaults: ["tune2fs-defaults"],
156 static_libs: tune2fs_libs,
160 name: "tune2fs_ramdisk",
162 static_executable: true,
164 defaults: ["tune2fs-defaults"],
165 system_shared_libs: [],
166 static_libs: tune2fs_libs,
171 defaults: ["tune2fs-defaults"],
173 cflags: ["-DBUILD_AS_LIB"],
174 static_libs: tune2fs_libs,
177 //########################################################################
182 host_supported: true,
183 defaults: ["e2fsprogs-defaults"],
185 srcs: ["badblocks.c"],
193 system_shared_libs: ["libc", "libdl"],
196 //########################################################################
200 name: "chattr-e2fsprogs",
201 host_supported: true,
202 defaults: ["e2fsprogs-defaults"],
209 system_shared_libs: ["libc", "libdl"],
212 //########################################################################
216 name: "lsattr-defaults",
218 defaults: ["e2fsprogs-defaults"],
227 name: "lsattr-e2fsprogs",
228 host_supported: true,
229 defaults: ["lsattr-defaults"],
231 shared_libs: lsattr_libs,
232 system_shared_libs: ["libc", "libdl"],
236 name: "lsattr_static",
237 static_executable: true,
238 defaults: ["lsattr-defaults"],
240 static_libs: lsattr_libs,
243 //########################################################################
248 defaults: ["e2fsprogs-defaults"],
257 system_shared_libs: ["libc", "libdl"],
260 //########################################################################
265 host_supported: true,
266 defaults: ["e2fsprogs-defaults"],
273 system_shared_libs: ["libc", "libdl"],
282 //##########################################################################
287 host_supported: true,
288 defaults: ["e2fsprogs-defaults"],
297 system_shared_libs: ["libc", "libdl"],
300 //##########################################################################
305 host_supported: true,
306 defaults: ["e2fsprogs-defaults"],
308 srcs: ["filefrag.c"],
312 system_shared_libs: ["libc", "libdl"],
315 //##########################################################################
320 host_supported: true,
321 defaults: ["e2fsprogs-defaults"],
326 header_libs: ["libext2-headers"],
331 system_shared_libs: ["libc", "libdl"],