]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blame - lib/ext2fs/Android.bp
AOSP: use e2fsprogs-defaults for ccflags
[thirdparty/e2fsprogs.git] / lib / ext2fs / Android.bp
CommitLineData
a95c632b
AD
1// Copyright 2017 The Android Open Source Project
2
3cc_library {
4 name: "libext2fs",
5 host_supported: true,
6 unique_host_soname: true,
c19b18f8 7 defaults: ["e2fsprogs-defaults"],
a95c632b
AD
8 srcs: [
9 "ext2_err.c",
10 "alloc.c",
11 "alloc_sb.c",
12 "alloc_stats.c",
13 "alloc_tables.c",
14 "atexit.c",
15 "badblocks.c",
16 "bb_inode.c",
17 "bitmaps.c",
18 "bitops.c",
19 "blkmap64_ba.c",
20 "blkmap64_rb.c",
21 "blknum.c",
22 "block.c",
23 "bmap.c",
24 "check_desc.c",
25 "crc16.c",
26 "crc32c.c",
27 "csum.c",
28 "closefs.c",
29 "dblist.c",
30 "dblist_dir.c",
31 "digest_encode.c",
32 "dirblock.c",
33 "dirhash.c",
34 "dir_iterate.c",
35 "dupfs.c",
36 "expanddir.c",
37 "ext_attr.c",
38 "extent.c",
39 "fallocate.c",
40 "fileio.c",
41 "finddev.c",
42 "flushb.c",
43 "freefs.c",
44 "gen_bitmap.c",
45 "gen_bitmap64.c",
46 "get_num_dirs.c",
47 "get_pathname.c",
48 "getsize.c",
49 "getsectsize.c",
50 "i_block.c",
51 "icount.c",
52 "imager.c",
53 "ind_block.c",
54 "initialize.c",
55 "inline.c",
56 "inline_data.c",
57 "inode.c",
58 "io_manager.c",
59 "ismounted.c",
60 "link.c",
61 "llseek.c",
62 "lookup.c",
63 "mmp.c",
64 "mkdir.c",
65 "mkjournal.c",
66 "namei.c",
67 "native.c",
68 "newdir.c",
69 "openfs.c",
70 "progress.c",
71 "punch.c",
72 "qcow2.c",
73 "rbtree.c",
74 "read_bb.c",
75 "read_bb_file.c",
76 "res_gdt.c",
77 "rw_bitmaps.c",
78 "sha256.c",
79 "sha512.c",
80 "swapfs.c",
81 "symlink.c",
82 "undo_io.c",
83 "unix_io.c",
84 "sparse_io.c",
85 "unlink.c",
86 "valid_blk.c",
87 "version.c",
88 // get rid of this?!
89 "test_io.c",
90 ],
91 shared_libs: [
92 "libsparse",
367a90c9 93 "libz",
a95c632b
AD
94 ],
95 whole_static_libs: [
96 "libext2_com_err"
97 ],
c19b18f8 98 cflags: ["-Wno-unused-parameter"],
a95c632b
AD
99 target: {
100 host: {
a95c632b
AD
101 // Consider removing this library as a whole for the host. It is not
102 // in the android side.
103 whole_static_libs: ["libext2_com_err"],
104 },
105 android: {
106 shared_libs: [
107 "libext2_com_err",
108 "libext2_uuid",
a95c632b
AD
109 ],
110 },
111 windows: {
0a3d8041
JQ
112 enabled: true,
113 include_dirs: [ "external/e2fsprogs/include/mingw" ],
a95c632b 114 cflags: [
c19b18f8 115 "-Wno-error=cpp",
a95c632b 116 "-Wno-format",
182fa0cd
DW
117 "-Wno-unused-variable",
118 ],
119 clang_cflags: [
120 "-Wno-error=typedef-redefinition",
a95c632b
AD
121 ],
122 host_ldlibs: ["-lws2_32"],
123 },
124 },
125
126 header_libs: ["libext2-headers"],
127 export_include_dirs: ["."],
128 export_header_lib_headers: ["libext2-headers"],
129}