igt-gpu-tools: build kms_flip tests
The kms_flip tests validate the core buffer flipping path. Ensure
that they build and #ifdef out dependencies that are not resolved
on Android.
Notably this disables cairo and pixman support for now, which
means hand-conversion of buffer formats and drawing sample images
won't work.
Bug: 145243412
Test: m kms_flip
Change-Id: Ib9e74ea7efa637d647ac453700bbbfab95067b76
diff --git a/Android.bp b/Android.bp
index 4b03563..0017a61 100644
--- a/Android.bp
+++ b/Android.bp
@@ -22,11 +22,16 @@
"lib/igt_aux.c",
"lib/igt_core.c",
"lib/igt_debugfs.c",
+ "lib/igt_device.c",
"lib/igt_dummyload.c",
+ "lib/igt_fb.c",
"lib/igt_kmod.c",
+ "lib/igt_kms.c",
+ "lib/igt_stats.c",
"lib/igt_sysfs.c",
"lib/ioctl_wrappers.c",
"lib/i915/gem_mman.c",
+ "lib/uwildmat/uwildmat.c"
],
export_include_dirs: [
"lib",
@@ -46,3 +51,10 @@
defaults: ["igt-gpu-tools-test-defaults"],
srcs: ["benchmarks/gem_blt.c"],
}
+
+cc_test {
+ name: "kms_flip",
+ defaults: ["igt-gpu-tools-test-defaults"],
+ srcs: ["tests/kms_flip.c"],
+}
+