xref: /aosp_15_r20/external/e2fsprogs/lib/ext2fs/Android.bp (revision 6a54128f25917bfc36a8a6e9d722c04a0b4641b6)
1*6a54128fSAndroid Build Coastguard Worker// Copyright 2017 The Android Open Source Project
2*6a54128fSAndroid Build Coastguard Worker
3*6a54128fSAndroid Build Coastguard Workerpackage {
4*6a54128fSAndroid Build Coastguard Worker    // See: http://go/android-license-faq
5*6a54128fSAndroid Build Coastguard Worker    // A large-scale-change added 'default_applicable_licenses' to import
6*6a54128fSAndroid Build Coastguard Worker    // all of the 'license_kinds' from "external_e2fsprogs_license"
7*6a54128fSAndroid Build Coastguard Worker    // to get the below license kinds:
8*6a54128fSAndroid Build Coastguard Worker    //   SPDX-license-identifier-GPL
9*6a54128fSAndroid Build Coastguard Worker    //   SPDX-license-identifier-GPL-2.0
10*6a54128fSAndroid Build Coastguard Worker    //   SPDX-license-identifier-LGPL
11*6a54128fSAndroid Build Coastguard Worker    //   SPDX-license-identifier-LGPL-2.1
12*6a54128fSAndroid Build Coastguard Worker    //   SPDX-license-identifier-LGPL-3.0
13*6a54128fSAndroid Build Coastguard Worker    //   legacy_unencumbered
14*6a54128fSAndroid Build Coastguard Worker    default_applicable_licenses: ["external_e2fsprogs_license"],
15*6a54128fSAndroid Build Coastguard Worker}
16*6a54128fSAndroid Build Coastguard Worker
17*6a54128fSAndroid Build Coastguard Workercc_library {
18*6a54128fSAndroid Build Coastguard Worker    name: "libext2fs",
19*6a54128fSAndroid Build Coastguard Worker    host_supported: true,
20*6a54128fSAndroid Build Coastguard Worker    ramdisk_available: true,
21*6a54128fSAndroid Build Coastguard Worker    vendor_ramdisk_available: true,
22*6a54128fSAndroid Build Coastguard Worker    vendor_available: true,
23*6a54128fSAndroid Build Coastguard Worker    recovery_available: true,
24*6a54128fSAndroid Build Coastguard Worker    unique_host_soname: true,
25*6a54128fSAndroid Build Coastguard Worker    defaults: ["e2fsprogs-defaults"],
26*6a54128fSAndroid Build Coastguard Worker    srcs: [
27*6a54128fSAndroid Build Coastguard Worker        "ext2_err.c",
28*6a54128fSAndroid Build Coastguard Worker        "alloc.c",
29*6a54128fSAndroid Build Coastguard Worker        "alloc_sb.c",
30*6a54128fSAndroid Build Coastguard Worker        "alloc_stats.c",
31*6a54128fSAndroid Build Coastguard Worker        "alloc_tables.c",
32*6a54128fSAndroid Build Coastguard Worker        "atexit.c",
33*6a54128fSAndroid Build Coastguard Worker        "badblocks.c",
34*6a54128fSAndroid Build Coastguard Worker        "bb_inode.c",
35*6a54128fSAndroid Build Coastguard Worker        "bitmaps.c",
36*6a54128fSAndroid Build Coastguard Worker        "bitops.c",
37*6a54128fSAndroid Build Coastguard Worker        "blkmap64_ba.c",
38*6a54128fSAndroid Build Coastguard Worker        "blkmap64_rb.c",
39*6a54128fSAndroid Build Coastguard Worker        "blknum.c",
40*6a54128fSAndroid Build Coastguard Worker        "block.c",
41*6a54128fSAndroid Build Coastguard Worker        "bmap.c",
42*6a54128fSAndroid Build Coastguard Worker        "check_desc.c",
43*6a54128fSAndroid Build Coastguard Worker        "crc16.c",
44*6a54128fSAndroid Build Coastguard Worker        "crc32c.c",
45*6a54128fSAndroid Build Coastguard Worker        "csum.c",
46*6a54128fSAndroid Build Coastguard Worker        "closefs.c",
47*6a54128fSAndroid Build Coastguard Worker        "dblist.c",
48*6a54128fSAndroid Build Coastguard Worker        "dblist_dir.c",
49*6a54128fSAndroid Build Coastguard Worker        "digest_encode.c",
50*6a54128fSAndroid Build Coastguard Worker        "dirblock.c",
51*6a54128fSAndroid Build Coastguard Worker        "dirhash.c",
52*6a54128fSAndroid Build Coastguard Worker        "dir_iterate.c",
53*6a54128fSAndroid Build Coastguard Worker        "dupfs.c",
54*6a54128fSAndroid Build Coastguard Worker        "expanddir.c",
55*6a54128fSAndroid Build Coastguard Worker        "ext_attr.c",
56*6a54128fSAndroid Build Coastguard Worker        "extent.c",
57*6a54128fSAndroid Build Coastguard Worker        "fallocate.c",
58*6a54128fSAndroid Build Coastguard Worker        "fileio.c",
59*6a54128fSAndroid Build Coastguard Worker        "finddev.c",
60*6a54128fSAndroid Build Coastguard Worker        "flushb.c",
61*6a54128fSAndroid Build Coastguard Worker        "freefs.c",
62*6a54128fSAndroid Build Coastguard Worker        "gen_bitmap.c",
63*6a54128fSAndroid Build Coastguard Worker        "gen_bitmap64.c",
64*6a54128fSAndroid Build Coastguard Worker        "get_num_dirs.c",
65*6a54128fSAndroid Build Coastguard Worker        "get_pathname.c",
66*6a54128fSAndroid Build Coastguard Worker        "getsize.c",
67*6a54128fSAndroid Build Coastguard Worker        "getsectsize.c",
68*6a54128fSAndroid Build Coastguard Worker        "hashmap.c",
69*6a54128fSAndroid Build Coastguard Worker        "i_block.c",
70*6a54128fSAndroid Build Coastguard Worker        "icount.c",
71*6a54128fSAndroid Build Coastguard Worker        "imager.c",
72*6a54128fSAndroid Build Coastguard Worker        "ind_block.c",
73*6a54128fSAndroid Build Coastguard Worker        "initialize.c",
74*6a54128fSAndroid Build Coastguard Worker        "inline.c",
75*6a54128fSAndroid Build Coastguard Worker        "inline_data.c",
76*6a54128fSAndroid Build Coastguard Worker        "inode.c",
77*6a54128fSAndroid Build Coastguard Worker        "io_manager.c",
78*6a54128fSAndroid Build Coastguard Worker        "ismounted.c",
79*6a54128fSAndroid Build Coastguard Worker        "link.c",
80*6a54128fSAndroid Build Coastguard Worker        "llseek.c",
81*6a54128fSAndroid Build Coastguard Worker        "lookup.c",
82*6a54128fSAndroid Build Coastguard Worker        "mmp.c",
83*6a54128fSAndroid Build Coastguard Worker        "mkdir.c",
84*6a54128fSAndroid Build Coastguard Worker        "mkjournal.c",
85*6a54128fSAndroid Build Coastguard Worker        "namei.c",
86*6a54128fSAndroid Build Coastguard Worker        "native.c",
87*6a54128fSAndroid Build Coastguard Worker        "newdir.c",
88*6a54128fSAndroid Build Coastguard Worker        "nls_utf8.c",
89*6a54128fSAndroid Build Coastguard Worker        "openfs.c",
90*6a54128fSAndroid Build Coastguard Worker        "progress.c",
91*6a54128fSAndroid Build Coastguard Worker        "punch.c",
92*6a54128fSAndroid Build Coastguard Worker        "qcow2.c",
93*6a54128fSAndroid Build Coastguard Worker        "rbtree.c",
94*6a54128fSAndroid Build Coastguard Worker        "read_bb.c",
95*6a54128fSAndroid Build Coastguard Worker        "read_bb_file.c",
96*6a54128fSAndroid Build Coastguard Worker        "res_gdt.c",
97*6a54128fSAndroid Build Coastguard Worker        "rw_bitmaps.c",
98*6a54128fSAndroid Build Coastguard Worker        "sha256.c",
99*6a54128fSAndroid Build Coastguard Worker        "sha512.c",
100*6a54128fSAndroid Build Coastguard Worker        "swapfs.c",
101*6a54128fSAndroid Build Coastguard Worker        "symlink.c",
102*6a54128fSAndroid Build Coastguard Worker        "undo_io.c",
103*6a54128fSAndroid Build Coastguard Worker        "unix_io.c",
104*6a54128fSAndroid Build Coastguard Worker        "sparse_io.c",
105*6a54128fSAndroid Build Coastguard Worker        "unlink.c",
106*6a54128fSAndroid Build Coastguard Worker        "valid_blk.c",
107*6a54128fSAndroid Build Coastguard Worker        "version.c",
108*6a54128fSAndroid Build Coastguard Worker        // get rid of this?!
109*6a54128fSAndroid Build Coastguard Worker        "test_io.c",
110*6a54128fSAndroid Build Coastguard Worker    ],
111*6a54128fSAndroid Build Coastguard Worker    shared_libs: [
112*6a54128fSAndroid Build Coastguard Worker        "libext2_com_err",
113*6a54128fSAndroid Build Coastguard Worker        "libsparse",
114*6a54128fSAndroid Build Coastguard Worker        "libz",
115*6a54128fSAndroid Build Coastguard Worker    ],
116*6a54128fSAndroid Build Coastguard Worker    target: {
117*6a54128fSAndroid Build Coastguard Worker        android: {
118*6a54128fSAndroid Build Coastguard Worker            shared_libs: ["libext2_uuid"],
119*6a54128fSAndroid Build Coastguard Worker        },
120*6a54128fSAndroid Build Coastguard Worker        windows: {
121*6a54128fSAndroid Build Coastguard Worker            enabled: true,
122*6a54128fSAndroid Build Coastguard Worker            srcs: ["windows_io.c"],
123*6a54128fSAndroid Build Coastguard Worker            exclude_srcs: ["unix_io.c"],
124*6a54128fSAndroid Build Coastguard Worker        },
125*6a54128fSAndroid Build Coastguard Worker    },
126*6a54128fSAndroid Build Coastguard Worker
127*6a54128fSAndroid Build Coastguard Worker    header_libs: ["libext2-headers"],
128*6a54128fSAndroid Build Coastguard Worker    export_include_dirs: ["."],
129*6a54128fSAndroid Build Coastguard Worker    export_header_lib_headers: ["libext2-headers"],
130*6a54128fSAndroid Build Coastguard Worker}
131