You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
81 lines
1.6 KiB
81 lines
1.6 KiB
4 months ago
|
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_libfec_license"
|
||
|
// to get the below license kinds:
|
||
|
// SPDX-license-identifier-Apache-2.0
|
||
|
default_applicable_licenses: ["system_extras_libfec_license"],
|
||
|
}
|
||
|
|
||
|
cc_defaults {
|
||
|
name: "fec_test_defaults",
|
||
|
|
||
|
sanitize: {
|
||
|
misc_undefined: ["integer"],
|
||
|
},
|
||
|
cflags: [
|
||
|
"-Wall",
|
||
|
"-Werror",
|
||
|
"-D_GNU_SOURCE",
|
||
|
],
|
||
|
target: {
|
||
|
darwin: {
|
||
|
enabled: false,
|
||
|
},
|
||
|
},
|
||
|
}
|
||
|
|
||
|
cc_test_host {
|
||
|
name: "fec_test_read",
|
||
|
defaults: ["fec_test_defaults"],
|
||
|
gtest: false,
|
||
|
srcs: ["test_read.cpp"],
|
||
|
static_libs: [
|
||
|
"libfec",
|
||
|
"libfec_rs",
|
||
|
"libavb",
|
||
|
"libcrypto_utils",
|
||
|
"libcrypto",
|
||
|
"libext4_utils",
|
||
|
"libsquashfs_utils",
|
||
|
"libbase",
|
||
|
],
|
||
|
}
|
||
|
|
||
|
cc_test_host {
|
||
|
name: "fec_test_rs",
|
||
|
defaults: ["fec_test_defaults"],
|
||
|
gtest: false,
|
||
|
srcs: ["test_rs.c"],
|
||
|
static_libs: ["libfec_rs"],
|
||
|
}
|
||
|
|
||
|
cc_test_host {
|
||
|
name: "fec_unittest",
|
||
|
defaults: ["fec_test_defaults"],
|
||
|
srcs: ["fec_unittest.cpp"],
|
||
|
|
||
|
gtest: true,
|
||
|
data: [
|
||
|
":avbtool",
|
||
|
":fec",
|
||
|
],
|
||
|
compile_multilib: "first",
|
||
|
test_options: {
|
||
|
unit_test: true,
|
||
|
},
|
||
|
static_libs: [
|
||
|
"libverity_tree",
|
||
|
"libfec",
|
||
|
"libfec_rs",
|
||
|
"libavb",
|
||
|
"libcrypto_utils",
|
||
|
"libext4_utils",
|
||
|
"libsquashfs_utils",
|
||
|
"libcrypto",
|
||
|
"libcutils",
|
||
|
"liblog",
|
||
|
"libbase",
|
||
|
],
|
||
|
}
|