[PATCH i-g-t v11 3/7] tests: Include local glib header for Android
Kamil Konieczny
kamil.konieczny at linux.intel.com
Fri May 30 18:36:43 UTC 2025
Hi Jeevaka,
On 2025-05-29 at 17:12:42 +0000, Jeevaka Prabu Badrappan wrote:
> As glib is not available in Android, added local stub header to build
> igt for Android.
>
> Signed-off-by: Jeevaka Prabu Badrappan <jeevaka.badrappan at intel.com>
> Acked-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
> ---
> tests/intel/api_intel_bb.c | 4 ++++
> tests/intel/gem_ccs.c | 4 ++++
> tests/intel/xe_ccs.c | 4 ++++
> tests/intel/xe_intel_bb.c | 4 ++++
Split above into:
[PATCH i-g-t v11 3/7] tests/intel: Include local glib header for Android
> tests/testdisplay.h | 4 ++++
and this change into separate one. For this last one, please
add KMS devs:
Cc: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>
Cc: Juha-Pekka Heikkila <juha-pekka.heikkila at intel.com>
Cc: Karthik B S <karthik.b.s at intel.com>
Regards,
Kamil
> 5 files changed, 20 insertions(+)
>
> diff --git a/tests/intel/api_intel_bb.c b/tests/intel/api_intel_bb.c
> index 39bc2525c..8393b8661 100644
> --- a/tests/intel/api_intel_bb.c
> +++ b/tests/intel/api_intel_bb.c
> @@ -35,7 +35,11 @@
> #include <errno.h>
> #include <sys/stat.h>
> #include <sys/ioctl.h>
> +#ifdef ANDROID
> +#include "android/glib.h"
> +#else
> #include <glib.h>
> +#endif
> #include <zlib.h>
> #include "intel_bufops.h"
> #include "i915/gem_vm.h"
> diff --git a/tests/intel/gem_ccs.c b/tests/intel/gem_ccs.c
> index af1e85f6a..a84a47cc4 100644
> --- a/tests/intel/gem_ccs.c
> +++ b/tests/intel/gem_ccs.c
> @@ -4,7 +4,11 @@
> */
>
> #include <errno.h>
> +#ifdef ANDROID
> +#include "android/glib.h"
> +#else
> #include <glib.h>
> +#endif
> #include <sys/ioctl.h>
> #include <sys/time.h>
> #include <malloc.h>
> diff --git a/tests/intel/xe_ccs.c b/tests/intel/xe_ccs.c
> index e154bf4dc..bff5b5772 100644
> --- a/tests/intel/xe_ccs.c
> +++ b/tests/intel/xe_ccs.c
> @@ -4,7 +4,11 @@
> */
>
> #include <errno.h>
> +#ifdef ANDROID
> +#include "android/glib.h"
> +#else
> #include <glib.h>
> +#endif
> #include <sys/ioctl.h>
> #include <sys/time.h>
> #include <malloc.h>
> diff --git a/tests/intel/xe_intel_bb.c b/tests/intel/xe_intel_bb.c
> index caa17498f..cae5db09b 100644
> --- a/tests/intel/xe_intel_bb.c
> +++ b/tests/intel/xe_intel_bb.c
> @@ -6,7 +6,11 @@
> #include <cairo.h>
> #include <errno.h>
> #include <fcntl.h>
> +#ifdef ANDROID
> +#include "android/glib.h"
> +#else
> #include <glib.h>
> +#endif
> #include <inttypes.h>
> #include <stdio.h>
> #include <stdlib.h>
> diff --git a/tests/testdisplay.h b/tests/testdisplay.h
> index 27f8209e2..0f606c028 100644
> --- a/tests/testdisplay.h
> +++ b/tests/testdisplay.h
> @@ -24,7 +24,11 @@
> #include <stdio.h>
> #include <string.h>
> #include <stdlib.h>
> +#ifdef ANDROID
> +#include "android/glib.h"
> +#else
> #include <glib.h>
> +#endif
>
> extern int drm_fd;
>
> --
> 2.49.0
>
More information about the igt-dev
mailing list