1 // Copyright 2017 The Android Open Source Project
3 // Library used to export files from this directory to other programs in this
8 recovery_available: true,
9 defaults: ["e2fsprogs-defaults"],
13 include_dirs: [ "external/e2fsprogs/include/mingw" ],
15 cflags: ["-Wno-unused-variable"],
22 cflags: ["-Wno-error=format-extra-args"],
28 system_shared_libs: ["libc", "libdl"],
29 export_include_dirs: ["."],
32 //########################################################################
38 recovery_available: true,
39 defaults: ["e2fsprogs-defaults"],
49 "-Wno-error=type-limits",
50 "-Wno-format-extra-args",
73 include_dirs: [ "external/e2fsprogs/include/mingw" ],
76 "-D__USE_MINGW_ALARM",
77 // mke2fs.c has a warning from gcc which cannot be suppressed:
78 // passing argument 3 of 'ext2fs_get_device_size' from
79 // incompatible pointer type
83 host_ldlibs: ["-lws2_32"],
99 symlinks: ["mkfs.ext2", "mkfs.ext3", "mkfs.ext4"],
102 stl: "libc++_static",
103 include_dirs: ["external/e2fsprogs/e2fsck"],
106 //##########################################################################
110 name: "tune2fs-defaults",
111 defaults: ["e2fsprogs-defaults"],
116 cflags: ["-DNO_RECOVERY"],
117 include_dirs: ["external/e2fsprogs/e2fsck"],
131 host_supported: true,
132 defaults: ["tune2fs-defaults"],
134 shared_libs: tune2fs_libs,
135 system_shared_libs: ["libc", "libdl"],
139 name: "tune2fs_static",
140 static_executable: true,
141 defaults: ["tune2fs-defaults"],
143 static_libs: tune2fs_libs,
147 name: "tune2fs_ramdisk",
149 static_executable: true,
151 defaults: ["tune2fs-defaults"],
152 system_shared_libs: [],
153 static_libs: tune2fs_libs,
158 defaults: ["tune2fs-defaults"],
160 cflags: ["-DBUILD_AS_LIB"],
161 static_libs: tune2fs_libs,
164 //########################################################################
169 host_supported: true,
170 defaults: ["e2fsprogs-defaults"],
172 srcs: ["badblocks.c"],
180 system_shared_libs: ["libc", "libdl"],
183 //########################################################################
187 name: "chattr-e2fsprogs",
188 host_supported: true,
189 defaults: ["e2fsprogs-defaults"],
196 system_shared_libs: ["libc", "libdl"],
199 //########################################################################
203 name: "lsattr-defaults",
205 defaults: ["e2fsprogs-defaults"],
214 name: "lsattr-e2fsprogs",
215 host_supported: true,
216 defaults: ["lsattr-defaults"],
218 shared_libs: lsattr_libs,
219 system_shared_libs: ["libc", "libdl"],
223 name: "lsattr_static",
224 static_executable: true,
225 defaults: ["lsattr-defaults"],
227 static_libs: lsattr_libs,
230 //########################################################################
235 defaults: ["e2fsprogs-defaults"],
244 system_shared_libs: ["libc", "libdl"],
247 //########################################################################
252 host_supported: true,
253 defaults: ["e2fsprogs-defaults"],
260 system_shared_libs: ["libc", "libdl"],
269 //##########################################################################
274 host_supported: true,
275 defaults: ["e2fsprogs-defaults"],
284 system_shared_libs: ["libc", "libdl"],
287 //##########################################################################
292 host_supported: true,
293 defaults: ["e2fsprogs-defaults"],
295 srcs: ["filefrag.c"],
299 system_shared_libs: ["libc", "libdl"],
302 //##########################################################################
307 host_supported: true,
308 defaults: ["e2fsprogs-defaults"],
313 header_libs: ["libext2-headers"],
318 system_shared_libs: ["libc", "libdl"],