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.
70 lines
1.9 KiB
70 lines
1.9 KiB
package {
|
|
// See: http://go/android-license-faq
|
|
// A large-scale-change added 'default_applicable_licenses' to import
|
|
// all of the 'license_kinds' from "system_tools_hidl_license"
|
|
// to get the below license kinds:
|
|
// SPDX-license-identifier-Apache-2.0
|
|
default_applicable_licenses: ["system_tools_hidl_license"],
|
|
}
|
|
|
|
genrule {
|
|
name: "hidl_cpp_impl_test_gen-headers",
|
|
tools: [
|
|
"hidl-gen",
|
|
],
|
|
srcs: [
|
|
":android.hardware.tests.foo@1.0_hal",
|
|
":hidl.tests.vendor.android@1.0_hal",
|
|
],
|
|
cmd: "$(location hidl-gen) -o $(genDir) -Lc++-impl-headers android.hardware.tests.foo@1.0 && " +
|
|
"$(location hidl-gen) -o $(genDir) -r hidl.tests:system/tools/hidl/test/ " +
|
|
"-Lc++-impl-headers hidl.tests.vendor.android@1.0",
|
|
out: [
|
|
"FooCallback.h",
|
|
"Foo.h",
|
|
"MyTypes.h",
|
|
"Simple.h",
|
|
"TheirTypes.h",
|
|
"Vendor.h",
|
|
],
|
|
}
|
|
|
|
genrule {
|
|
name: "hidl_cpp_impl_test_gen-sources",
|
|
tools: [
|
|
"hidl-gen",
|
|
],
|
|
srcs: [
|
|
":android.hardware.tests.foo@1.0_hal",
|
|
":hidl.tests.vendor.android@1.0_hal",
|
|
],
|
|
cmd: "$(location hidl-gen) -o $(genDir) -Lc++-impl-sources android.hardware.tests.foo@1.0 && " +
|
|
"$(location hidl-gen) -o $(genDir) -r hidl.tests:system/tools/hidl/test/ " +
|
|
"-Lc++-impl-sources hidl.tests.vendor.android@1.0",
|
|
out: [
|
|
"FooCallback.cpp",
|
|
"Foo.cpp",
|
|
"MyTypes.cpp",
|
|
"Simple.cpp",
|
|
"TheirTypes.cpp",
|
|
"Vendor.cpp",
|
|
],
|
|
}
|
|
|
|
cc_test_library {
|
|
name: "hidl_cpp_impl_test",
|
|
generated_sources: ["hidl_cpp_impl_test_gen-sources"],
|
|
generated_headers: ["hidl_cpp_impl_test_gen-headers"],
|
|
shared_libs: [
|
|
"libhidlbase",
|
|
"libutils",
|
|
"android.hardware.tests.foo@1.0",
|
|
"hidl.tests.vendor.android@1.0",
|
|
],
|
|
cflags: [
|
|
"-Wall",
|
|
"-Werror",
|
|
"-Wno-unused-parameter",
|
|
],
|
|
}
|