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_x86_64: { 24 sanitize: { 25 misc_undefined: ["integer"], 26 }, 27 }, 28 linux_musl_x86_64: { 29 sanitize: { 30 misc_undefined: ["integer"], 31 }, 32 }, 33 linux: { 34 static_libs: [ 35 "libavb", 36 ], 37 }, 38 }, 39 40 srcs: [ 41 "main.cpp", 42 "image.cpp", 43 ], 44 45 static_libs: [ 46 "libbase", 47 "libsparse", 48 "libz", 49 "libcrypto_utils", 50 "libcrypto", 51 "libfec", 52 "libfec_rs", 53 "libext4_utils", 54 "liblog", 55 "libsquashfs_utils", 56 ], 57 cflags: [ 58 "-Wall", 59 "-Werror", 60 "-O3", 61 ], 62} 63