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 1320CC5AE59 for ; Tue, 3 Jun 2025 19:24:38 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id BA60110E0F2; Tue, 3 Jun 2025 19:24:37 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="BpG20gYm"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6324010E0F2 for ; Tue, 3 Jun 2025 19:24:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1748978677; x=1780514677; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Hx1e/bNHYYg/23ZSbx8A3wOtEMhgzi/SnefS4TIlE6M=; b=BpG20gYmrrJ1/CrZMRPN91GUqOr0S/uLdr798cSqdgUvj+XdRWEWOH4S ntSeqaVcdkWSe3VfIUn7UKmMVMVWnLjeJ/wBF8m4Ywm3HAzcUqcZHc+W4 eSmshUiAEX5Cfjr8uecdDDa1dNieDt+3MOQtLCSZvNsIQfseXnID0kNoJ Yk/a6uoi/kUeEPVLDkWtO5c9bOSoGs6ju2XHYzNE9o3oOQywIet0ZE995 CDs8eEAcHcN/RGUBd/K+gFxgCQEseKraxAL4/y8wVPVaLEHAuhrdkQgA8 8nb12kmX0d2R92B0t8Qpl5N1Dx3K7eAwx3RgxKvtETzz9xF5deo8umyLH Q==; X-CSE-ConnectionGUID: 7pKUUHm8QyCPGn8sxdTx9g== X-CSE-MsgGUID: 2axEZXReQ+aeQSZWEBd6Xg== X-IronPort-AV: E=McAfee;i="6700,10204,11453"; a="76424302" X-IronPort-AV: E=Sophos;i="6.16,206,1744095600"; d="scan'208";a="76424302" 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:36 -0700 X-CSE-ConnectionGUID: 0lAnSg4jS/qp+7m65qGqxg== X-CSE-MsgGUID: mnAADLQPRomD2bKt9lEaFQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,206,1744095600"; d="scan'208";a="175821283" Received: from unknown (HELO d368ed45d7ae.iind.intel.com) ([10.66.234.123]) by fmviesa001.fm.intel.com with ESMTP; 03 Jun 2025 12:24:34 -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 04/11] lib: Include local igt glib header for Android Date: Tue, 3 Jun 2025 19:23:47 +0000 Message-ID: <20250603192355.77019-5-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 igt glib header to build igt for Android. Signed-off-by: Jeevaka Prabu Badrappan Acked-by: Zbigniew KempczyƄski Reviewed-by: Kamil Konieczny --- 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 a0c3fe340..4bc1cf5b6 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