Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 482DFC5AE59 for ; Tue, 3 Jun 2025 19:24:51 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E488D10E0E5; Tue, 3 Jun 2025 19:24:50 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="kmGBC86u"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by gabe.freedesktop.org (Postfix) with ESMTPS id EAA4310E0E5 for ; Tue, 3 Jun 2025 19:24:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1748978690; x=1780514690; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=OUeyRz7fheWJ/FyOEUkY5W9G0TBbrxdDZw5MsTQYhvQ=; b=kmGBC86uy2UvcjI1jUrx69IBq1GrxNv4PcVesLMkhzSNu4YUukA1Rmpf 1onVWAW7TdUnzn2mfiBps99sbzj5PYjaGulQ5qQlzKiuDyBfoVqp1rw6k q/VGPxeSOd9vMvfjxLq3tRBaJTEE9CCuoyqhQM/4/gZXdnRorKeZlqTf4 HIWmq7PouEiHSNnDwpLL0rwcjObIPegJug27FmlKt33/3Xfg3EVjox9tc P2VCiebVNkgvI5HIyCFoH6amYaJmOqgknM6R5t3W/cUuCtpxDmk+IKElQ p0WdozhS/N9Fg00UWRF3zPNPIes0sjJNCozWLASulFYV5Dd2TMXkZ7X8j Q==; X-CSE-ConnectionGUID: U6tgvzx9S0q1tA4RZ7pS+Q== X-CSE-MsgGUID: YuyW6ad+RZqlveQHylBHrA== X-IronPort-AV: E=McAfee;i="6700,10204,11453"; a="76424324" X-IronPort-AV: E=Sophos;i="6.16,206,1744095600"; d="scan'208";a="76424324" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jun 2025 12:24:50 -0700 X-CSE-ConnectionGUID: Ow9uIYMIQ3yBBD6RIYyZtw== X-CSE-MsgGUID: N2Pjc3RsQnyxbpgVL/Un2Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,206,1744095600"; d="scan'208";a="175821632" Received: from unknown (HELO d368ed45d7ae.iind.intel.com) ([10.66.234.123]) by fmviesa001.fm.intel.com with ESMTP; 03 Jun 2025 12:24:47 -0700 From: Jeevaka Prabu Badrappan To: igt-dev@lists.freedesktop.org Cc: zbigniew.kempczynski@intel.com, kamil.konieczny@intel.com, markyacoub@google.com, seanpaul@google.com, carlos.santa@intel.com, sapna1.singh@intel.com, Jeevaka Prabu Badrappan , Kamil Konieczny Subject: [PATCH i-g-t v14 09/11] tools: Include local glib header for Android Date: Tue, 3 Jun 2025 19:23:52 +0000 Message-ID: <20250603192355.77019-10-jeevaka.badrappan@intel.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250603192355.77019-1-jeevaka.badrappan@intel.com> References: <20250603192355.77019-1-jeevaka.badrappan@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: igt-dev@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development mailing list for IGT GPU Tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" As glib is not available in Android, added local glib stub header to build igt for Android. Signed-off-by: Jeevaka Prabu Badrappan Acked-by: Zbigniew KempczyƄski Reviewed-by: Kamil Konieczny --- tools/igt_dp_compliance.h | 4 ++++ tools/intel_pm_rpm.c | 4 ++++ tools/lsgpu.c | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/tools/igt_dp_compliance.h b/tools/igt_dp_compliance.h index 5b1688039..226a13662 100644 --- a/tools/igt_dp_compliance.h +++ b/tools/igt_dp_compliance.h @@ -28,7 +28,11 @@ #include #include #include +#ifdef ANDROID +#include "android/glib.h" +#else #include +#endif extern int drm_fd; diff --git a/tools/intel_pm_rpm.c b/tools/intel_pm_rpm.c index 9622f0552..c1cc54b82 100644 --- a/tools/intel_pm_rpm.c +++ b/tools/intel_pm_rpm.c @@ -24,7 +24,11 @@ #include #include +#ifdef ANDROID +#include "android/glib.h" +#else #include +#endif #include #include #include diff --git a/tools/lsgpu.c b/tools/lsgpu.c index e68390083..6cfbf3142 100644 --- a/tools/lsgpu.c +++ b/tools/lsgpu.c @@ -24,7 +24,11 @@ #include #include +#ifdef ANDROID +#include "android/glib.h" +#else #include +#endif #include #include #include -- 2.49.0