summaryrefslogtreecommitdiff
path: root/verity/fec/Android.bp
blob: 46c2e4650ef5849441f06ecc43bf9dd07fd8aad8 (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
56
57
package {
    // See: http://go/android-license-faq
    // A large-scale-change added 'default_applicable_licenses' to import
    // all of the 'license_kinds' from "system_extras_verity_license"
    // to get the below license kinds:
    //   SPDX-license-identifier-Apache-2.0
    default_applicable_licenses: ["system_extras_verity_license"],
}

cc_binary_host {
    name: "fec",

    compile_multilib: "both",
    multilib: {
        lib32: {
            suffix: "32",
        },
        lib64: {
            suffix: "",
        },
    },
    target: {
        linux_glibc: {
            sanitize: {
                misc_undefined: ["integer"],
            },
        },
        linux: {
            static_libs: [
                "libavb",
            ],
        },
    },

    srcs: [
        "main.cpp",
        "image.cpp",
    ],

    static_libs: [
        "libbase",
        "libsparse",
        "libz",
        "libcrypto_utils",
        "libcrypto",
        "libfec",
        "libfec_rs",
        "libext4_utils",
        "liblog",
        "libsquashfs_utils",
    ],
    cflags: [
        "-Wall",
        "-Werror",
        "-O3",
    ],
}