1package {
2    // See: http://go/android-license-faq
3    // A large-scale-change added 'default_applicable_licenses' to import
4    // all of the 'license_kinds' from "system_extras_verity_license"
5    // to get the below license kinds:
6    //   SPDX-license-identifier-Apache-2.0
7    default_applicable_licenses: ["system_extras_verity_license"],
8}
9
10cc_binary_host {
11    name: "fec",
12
13    compile_multilib: "both",
14    multilib: {
15        lib32: {
16            suffix: "32",
17        },
18        lib64: {
19            suffix: "",
20        },
21    },
22    target: {
23        linux_glibc: {
24            sanitize: {
25                misc_undefined: ["integer"],
26            },
27        },
28        linux: {
29            static_libs: [
30                "libavb",
31            ],
32        },
33    },
34
35    srcs: [
36        "main.cpp",
37        "image.cpp",
38    ],
39
40    static_libs: [
41        "libbase",
42        "libsparse",
43        "libz",
44        "libcrypto_utils",
45        "libcrypto",
46        "libfec",
47        "libfec_rs",
48        "libext4_utils",
49        "liblog",
50        "libsquashfs_utils",
51    ],
52    cflags: [
53        "-Wall",
54        "-Werror",
55        "-O3",
56    ],
57}
58