Convert to Android.bp
See build/soong/README.md for more information.
Bug: 31742855
Test: mma -j
Change-Id: Icb93f3b1b2caeb5e9c00f88ca35841b927ad075d
diff --git a/tests/foo/1.0/Android.bp b/tests/foo/1.0/Android.bp
new file mode 100644
index 0000000..4896fc3
--- /dev/null
+++ b/tests/foo/1.0/Android.bp
@@ -0,0 +1,54 @@
+// This file is autogenerated by hidl-gen. Do not edit manually.
+
+genrule {
+ name: "android.hardware.tests.foo@1.0_genc++",
+ tool: "hidl-gen",
+ cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.tests.foo@1.0",
+ srcs: [
+ "types.hal",
+ "IFoo.hal",
+ "IFooCallback.hal",
+ ],
+ out: [
+ "android/hardware/tests/foo/1.0/types.cpp",
+ "android/hardware/tests/foo/1.0/FooAll.cpp",
+ "android/hardware/tests/foo/1.0/FooCallbackAll.cpp",
+ ],
+}
+
+genrule {
+ name: "android.hardware.tests.foo@1.0_genc++_headers",
+ tool: "hidl-gen",
+ cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.tests.foo@1.0",
+ srcs: [
+ "types.hal",
+ "IFoo.hal",
+ "IFooCallback.hal",
+ ],
+ out: [
+ "android/hardware/tests/foo/1.0/types.h",
+ "android/hardware/tests/foo/1.0/IFoo.h",
+ "android/hardware/tests/foo/1.0/IHwFoo.h",
+ "android/hardware/tests/foo/1.0/BnFoo.h",
+ "android/hardware/tests/foo/1.0/BpFoo.h",
+ "android/hardware/tests/foo/1.0/BsFoo.h",
+ "android/hardware/tests/foo/1.0/IFooCallback.h",
+ "android/hardware/tests/foo/1.0/IHwFooCallback.h",
+ "android/hardware/tests/foo/1.0/BnFooCallback.h",
+ "android/hardware/tests/foo/1.0/BpFooCallback.h",
+ "android/hardware/tests/foo/1.0/BsFooCallback.h",
+ ],
+}
+
+cc_library_shared {
+ name: "android.hardware.tests.foo@1.0",
+ generated_sources: ["android.hardware.tests.foo@1.0_genc++"],
+ generated_headers: ["android.hardware.tests.foo@1.0_genc++_headers"],
+ export_generated_headers: ["android.hardware.tests.foo@1.0_genc++_headers"],
+ shared_libs: [
+ "libhidl",
+ "libhwbinder",
+ "libutils",
+ "libcutils",
+ ],
+}