aboutsummaryrefslogtreecommitdiff
path: root/contrib/android/Android.bp
blob: afa335e0d325e1579b9ae834ec73d371e664b746 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// Copyright 2017 The Android Open Source Project

//##########################################################################
// Build e2fsdroid

cc_binary {
    name: "e2fsdroid",
    host_supported: true,

    srcs: [
        "e2fsdroid.c",
        "block_range.c",
        "fsmap.c",
        "block_list.c",
        "base_fs.c",
        "perms.c",
        "basefs_allocator.c",
        "hashmap.c",
    ],
    cflags: ["-W", "-Wall"],
    shared_libs: [
        "libext2fs",
        "libext2_com_err",
        "libext2_misc",
        "libcutils",
        "libbase",
        "libselinux",
        "libcrypto",
    ],
}

//##########################################################################
// Build ext2simg

cc_binary {
    name: "ext2simg",
    host_supported: true,

    srcs: ["ext2simg.c"],
    cflags: ["-W", "-Wall"],
    shared_libs: [
        "libext2fs",
        "libext2_com_err",
        "libsparse",
    ],

    target: {
        host: {
            shared_libs: ["libz-host"],
        },
        android: {
            shared_libs: ["libz"],
        },
    },
}