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 E491AC5B559 for ; Mon, 2 Jun 2025 19:26:01 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9051010E588; Mon, 2 Jun 2025 19:26:01 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="G1oIRMFb"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.21]) by gabe.freedesktop.org (Postfix) with ESMTPS id E81FC10E588 for ; Mon, 2 Jun 2025 19:25:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1748892360; x=1780428360; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=KEHAv0JSS7AYI3PAs+g0MxcBr7Ep1OF3ElniKOiw27I=; b=G1oIRMFbzVOxSOry/NePM0yPj0vcR/aGRnn/ipLEN8mIweQLFl6nCnzI d1hm5C+5/trU1q1N/Uh4qJYgJ+VOnXuBbNThXJkuWbU86Pu1Ex7Gtf5Wb 4315mLVGze16JVVum2EQopq2+iIfuVt2YQv7+vuUsAwA+/fluQpe5xnYm dnjFRKWNMNQDbEppJslCFxwii98nnhah9dW7Jvem7AZc6h/gfoGssm/wj vj4B0rC+x4v8AOGjALXHrun3e9W0cXUUHJFLnxnjzp8ucwkLAbwaWAetC nWQOxveaT/6heesXI/WOXYoTmCQc7KXy2Su19QqGQTegesfcrV4sqFwIU w==; X-CSE-ConnectionGUID: RCf97+BPQBeAnbj3X7owNQ== X-CSE-MsgGUID: diNib6dDSniP3h4AaZfufQ== X-IronPort-AV: E=McAfee;i="6700,10204,11451"; a="50777103" X-IronPort-AV: E=Sophos;i="6.16,204,1744095600"; d="scan'208";a="50777103" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jun 2025 12:26:00 -0700 X-CSE-ConnectionGUID: RtRLFDLcR/GfLnTmeF/Jig== X-CSE-MsgGUID: iNEcohYzT7G0En0IRw+G3g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,204,1744095600"; d="scan'208";a="144590223" Received: from unknown (HELO d368ed45d7ae.iind.intel.com) ([10.66.234.123]) by fmviesa007.fm.intel.com with ESMTP; 02 Jun 2025 12:25:57 -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 Subject: [PATCH i-g-t v12 04/11] lib: Include local igt glib header for Android Date: Mon, 2 Jun 2025 19:25:08 +0000 Message-ID: <20250602192515.95309-5-jeevaka.badrappan@intel.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250602192515.95309-1-jeevaka.badrappan@intel.com> References: <20250602192515.95309-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 igt glib header to build igt for Android. Signed-off-by: Jeevaka Prabu Badrappan Acked-by: Zbigniew KempczyƄski --- lib/igt_chamelium.c | 4 ++++ lib/igt_core.c | 4 ++++ lib/igt_rc.h | 4 ++++ lib/intel_batchbuffer.c | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/lib/igt_chamelium.c b/lib/igt_chamelium.c index a96e36b5b..d19a78ffa 100644 --- a/lib/igt_chamelium.c +++ b/lib/igt_chamelium.c @@ -33,7 +33,11 @@ #include #include #include +#ifndef ANDROID #include +#else +#include "android/glib.h" +#endif #include #include diff --git a/lib/igt_core.c b/lib/igt_core.c index b06cdfd89..c2674a272 100644 --- a/lib/igt_core.c +++ b/lib/igt_core.c @@ -55,7 +55,11 @@ #include #include #include +#ifndef ANDROID #include +#else +#include "android/glib.h" +#endif #include "drmtest.h" #include "i915/gem_create.h" diff --git a/lib/igt_rc.h b/lib/igt_rc.h index 53e5ce669..d871b3b26 100644 --- a/lib/igt_rc.h +++ b/lib/igt_rc.h @@ -25,7 +25,11 @@ #ifndef IGT_RC_H #define IGT_RC_H +#ifndef ANDROID #include +#else +#include "android/glib.h" +#endif extern GKeyFile *igt_key_file; diff --git a/lib/intel_batchbuffer.c b/lib/intel_batchbuffer.c index 03ce65ded..af0547281 100644 --- a/lib/intel_batchbuffer.c +++ b/lib/intel_batchbuffer.c @@ -26,7 +26,11 @@ **************************************************************************/ #include +#ifndef ANDROID #include +#else +#include "android/glib.h" +#endif #include "gpgpu_fill.h" #include "huc_copy.h" -- 2.49.0