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.
45 lines
1.0 KiB
45 lines
1.0 KiB
genrule { |
|
name: "hidl_impl_test_gen-headers", |
|
tools: [ |
|
"hidl-gen", |
|
], |
|
required: [ |
|
"android.hardware.tests.foo@1.0", |
|
], |
|
cmd: "$(location hidl-gen) -o $(genDir) -Lc++-impl-headers android.hardware.tests.foo@1.0", |
|
out: [ |
|
"FooCallback.h", |
|
"Foo.h", |
|
"MyTypes.h", |
|
"Simple.h", |
|
"TheirTypes.h", |
|
], |
|
} |
|
genrule { |
|
name: "hidl_impl_test_gen-sources", |
|
tools: [ |
|
"hidl-gen", |
|
], |
|
required: [ |
|
"android.hardware.tests.foo@1.0", |
|
], |
|
cmd: "$(location hidl-gen) -o $(genDir) -Lc++-impl-sources android.hardware.tests.foo@1.0", |
|
out: [ |
|
"FooCallback.cpp", |
|
"Foo.cpp", |
|
"MyTypes.cpp", |
|
"Simple.cpp", |
|
"TheirTypes.cpp", |
|
], |
|
} |
|
cc_test_library { |
|
name: "hidl_impl_test", |
|
generated_sources: ["hidl_impl_test_gen-sources"], |
|
generated_headers: ["hidl_impl_test_gen-headers"], |
|
shared_libs: [ |
|
"libhidlbase", |
|
"libhidltransport", |
|
"libutils", |
|
"android.hardware.tests.foo@1.0", |
|
], |
|
}
|
|
|