Convert to Android.bp
See build/soong/README.md for more information
Test: mmma hardware/libhardware
Change-Id: Ibb7e2af9d55f581e951d8996cea5e52cd0766b04
diff --git a/tests/input/evdev/Android.bp b/tests/input/evdev/Android.bp
new file mode 100644
index 0000000..fa03a00
--- /dev/null
+++ b/tests/input/evdev/Android.bp
@@ -0,0 +1,33 @@
+cc_test {
+ name: "libinput_evdevtests",
+
+ srcs: [
+ "BitUtils_test.cpp",
+ "InputDevice_test.cpp",
+ "InputHub_test.cpp",
+ "InputMocks.cpp",
+ "MouseInputMapper_test.cpp",
+ "SwitchInputMapper_test.cpp",
+ "TestHelpers.cpp",
+ ],
+
+ static_libs: ["libgmock"],
+
+ shared_libs: [
+ "libinput_evdev",
+ "liblog",
+ "libutils",
+ ],
+
+ cflags: [
+ "-Wall",
+ "-Wextra",
+ "-Werror",
+ "-Wno-unused-parameter",
+
+ // TestHelpers uses mktemp. As the path is given to TempFile, we can't do too much
+ // here (e.g., use mkdtemp first). At least races will lead to an early failure, as
+ // mkfifo fails on existing files.
+ "-Wno-deprecated-declarations",
+ ],
+}