1*288bf522SAndroid Build Coastguard Workerpackage { 2*288bf522SAndroid Build Coastguard Worker // See: http://go/android-license-faq 3*288bf522SAndroid Build Coastguard Worker // A large-scale-change added 'default_applicable_licenses' to import 4*288bf522SAndroid Build Coastguard Worker // all of the 'license_kinds' from "system_extras_libfec_license" 5*288bf522SAndroid Build Coastguard Worker // to get the below license kinds: 6*288bf522SAndroid Build Coastguard Worker // SPDX-license-identifier-Apache-2.0 7*288bf522SAndroid Build Coastguard Worker default_applicable_licenses: ["system_extras_libfec_license"], 8*288bf522SAndroid Build Coastguard Worker} 9*288bf522SAndroid Build Coastguard Worker 10*288bf522SAndroid Build Coastguard Workercc_defaults { 11*288bf522SAndroid Build Coastguard Worker name: "fec_test_defaults", 12*288bf522SAndroid Build Coastguard Worker 13*288bf522SAndroid Build Coastguard Worker sanitize: { 14*288bf522SAndroid Build Coastguard Worker misc_undefined: ["integer"], 15*288bf522SAndroid Build Coastguard Worker }, 16*288bf522SAndroid Build Coastguard Worker cflags: [ 17*288bf522SAndroid Build Coastguard Worker "-Wall", 18*288bf522SAndroid Build Coastguard Worker "-Werror", 19*288bf522SAndroid Build Coastguard Worker "-D_GNU_SOURCE", 20*288bf522SAndroid Build Coastguard Worker ], 21*288bf522SAndroid Build Coastguard Worker target: { 22*288bf522SAndroid Build Coastguard Worker darwin: { 23*288bf522SAndroid Build Coastguard Worker enabled: false, 24*288bf522SAndroid Build Coastguard Worker }, 25*288bf522SAndroid Build Coastguard Worker }, 26*288bf522SAndroid Build Coastguard Worker} 27*288bf522SAndroid Build Coastguard Worker 28*288bf522SAndroid Build Coastguard Workercc_test_host { 29*288bf522SAndroid Build Coastguard Worker name: "fec_test_read", 30*288bf522SAndroid Build Coastguard Worker defaults: ["fec_test_defaults"], 31*288bf522SAndroid Build Coastguard Worker gtest: false, 32*288bf522SAndroid Build Coastguard Worker srcs: ["test_read.cpp"], 33*288bf522SAndroid Build Coastguard Worker static_libs: [ 34*288bf522SAndroid Build Coastguard Worker "libfec", 35*288bf522SAndroid Build Coastguard Worker "libfec_rs", 36*288bf522SAndroid Build Coastguard Worker "libavb", 37*288bf522SAndroid Build Coastguard Worker "libcrypto_utils", 38*288bf522SAndroid Build Coastguard Worker "libcrypto", 39*288bf522SAndroid Build Coastguard Worker "libext4_utils", 40*288bf522SAndroid Build Coastguard Worker "libsquashfs_utils", 41*288bf522SAndroid Build Coastguard Worker "libbase", 42*288bf522SAndroid Build Coastguard Worker ], 43*288bf522SAndroid Build Coastguard Worker} 44*288bf522SAndroid Build Coastguard Worker 45*288bf522SAndroid Build Coastguard Workercc_test_host { 46*288bf522SAndroid Build Coastguard Worker name: "fec_test_rs", 47*288bf522SAndroid Build Coastguard Worker defaults: ["fec_test_defaults"], 48*288bf522SAndroid Build Coastguard Worker gtest: false, 49*288bf522SAndroid Build Coastguard Worker srcs: ["test_rs.c"], 50*288bf522SAndroid Build Coastguard Worker static_libs: ["libfec_rs"], 51*288bf522SAndroid Build Coastguard Worker} 52*288bf522SAndroid Build Coastguard Worker 53*288bf522SAndroid Build Coastguard Workercc_test_host { 54*288bf522SAndroid Build Coastguard Worker name: "fec_unittest", 55*288bf522SAndroid Build Coastguard Worker defaults: ["fec_test_defaults"], 56*288bf522SAndroid Build Coastguard Worker srcs: ["fec_unittest.cpp"], 57*288bf522SAndroid Build Coastguard Worker 58*288bf522SAndroid Build Coastguard Worker gtest: true, 59*288bf522SAndroid Build Coastguard Worker data: [ 60*288bf522SAndroid Build Coastguard Worker ":avbtool", 61*288bf522SAndroid Build Coastguard Worker ":fec", 62*288bf522SAndroid Build Coastguard Worker ], 63*288bf522SAndroid Build Coastguard Worker compile_multilib: "first", 64*288bf522SAndroid Build Coastguard Worker test_options: { 65*288bf522SAndroid Build Coastguard Worker unit_test: true, 66*288bf522SAndroid Build Coastguard Worker }, 67*288bf522SAndroid Build Coastguard Worker static_libs: [ 68*288bf522SAndroid Build Coastguard Worker "libverity_tree", 69*288bf522SAndroid Build Coastguard Worker "libfec", 70*288bf522SAndroid Build Coastguard Worker "libfec_rs", 71*288bf522SAndroid Build Coastguard Worker "libavb", 72*288bf522SAndroid Build Coastguard Worker "libcrypto_utils", 73*288bf522SAndroid Build Coastguard Worker "libext4_utils", 74*288bf522SAndroid Build Coastguard Worker "libsquashfs_utils", 75*288bf522SAndroid Build Coastguard Worker "libcrypto", 76*288bf522SAndroid Build Coastguard Worker "libcutils", 77*288bf522SAndroid Build Coastguard Worker "liblog", 78*288bf522SAndroid Build Coastguard Worker "libbase", 79*288bf522SAndroid Build Coastguard Worker ], 80*288bf522SAndroid Build Coastguard Worker} 81