• Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2017 The Android Open Source Project
2
3cc_library {
4    name: "libext2fs",
5    host_supported: true,
6    unique_host_soname: true,
7    srcs: [
8        "ext2_err.c",
9        "alloc.c",
10        "alloc_sb.c",
11        "alloc_stats.c",
12        "alloc_tables.c",
13        "atexit.c",
14        "badblocks.c",
15        "bb_inode.c",
16        "bitmaps.c",
17        "bitops.c",
18        "blkmap64_ba.c",
19        "blkmap64_rb.c",
20        "blknum.c",
21        "block.c",
22        "bmap.c",
23        "check_desc.c",
24        "crc16.c",
25        "crc32c.c",
26        "csum.c",
27        "closefs.c",
28        "dblist.c",
29        "dblist_dir.c",
30        "digest_encode.c",
31        "dirblock.c",
32        "dirhash.c",
33        "dir_iterate.c",
34        "dupfs.c",
35        "expanddir.c",
36        "ext_attr.c",
37        "extent.c",
38        "fallocate.c",
39        "fileio.c",
40        "finddev.c",
41        "flushb.c",
42        "freefs.c",
43        "gen_bitmap.c",
44        "gen_bitmap64.c",
45        "get_num_dirs.c",
46        "get_pathname.c",
47        "getsize.c",
48        "getsectsize.c",
49        "i_block.c",
50        "icount.c",
51        "imager.c",
52        "ind_block.c",
53        "initialize.c",
54        "inline.c",
55        "inline_data.c",
56        "inode.c",
57        "io_manager.c",
58        "ismounted.c",
59        "link.c",
60        "llseek.c",
61        "lookup.c",
62        "mmp.c",
63        "mkdir.c",
64        "mkjournal.c",
65        "namei.c",
66        "native.c",
67        "newdir.c",
68        "openfs.c",
69        "progress.c",
70        "punch.c",
71        "qcow2.c",
72        "rbtree.c",
73        "read_bb.c",
74        "read_bb_file.c",
75        "res_gdt.c",
76        "rw_bitmaps.c",
77        "sha256.c",
78        "sha512.c",
79        "swapfs.c",
80        "symlink.c",
81        "undo_io.c",
82        "unix_io.c",
83        "sparse_io.c",
84        "unlink.c",
85        "valid_blk.c",
86        "version.c",
87        // get rid of this?!
88        "test_io.c",
89    ],
90    shared_libs: [
91        "libsparse",
92    ],
93    whole_static_libs: [
94        "libext2_com_err"
95    ],
96    cflags: [
97        "-W",
98        "-Wall",
99        "-Wno-unused-parameter",
100        "-Wno-macro-redefined",
101    ],
102    target: {
103        host: {
104            shared_libs: ["libz-host"],
105            // Consider removing this library as a whole for the host. It is not
106            // in the android side.
107            whole_static_libs: ["libext2_com_err"],
108        },
109        android: {
110            shared_libs: [
111                "libext2_com_err",
112                "libext2_uuid",
113                "libz"
114            ],
115        },
116        windows: {
117            // include/nonunix is used as an overlay on top of the system
118            // include directory. Some empty header files in include/nonunix
119            // hide the ones in the system include path. This setup doesn't work
120            // unless we pass the include/nonunix as an -isystem flag.
121            // TODO(deymo): Enable windows
122            enabled: false,
123            cflags: [
124                "-Wno-format",
125            //    "-isystem external/e2fsprogs/include/nonunix",
126            ],
127            host_ldlibs: ["-lws2_32"],
128        },
129    },
130
131    header_libs: ["libext2-headers"],
132    export_include_dirs: ["."],
133    export_header_lib_headers: ["libext2-headers"],
134}
135