From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Thu, 13 Jun 2024 09:33:00 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1sHexA-005FX0-15 for lore@lore.pengutronix.de; Thu, 13 Jun 2024 09:33:00 +0200 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1sHex8-0006mT-Vg; Thu, 13 Jun 2024 09:32:58 +0200 Received: from mail-vi1eur04on2066.outbound.protection.outlook.com ([40.107.8.66] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sHeYV-0004K8-BM; Thu, 13 Jun 2024 09:07:35 +0200 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LTp82XVFzyAUK4cu6AM6UWOO4fuAPx79nCTF1PJ3kVRVsN6x80wEoP5GJLucHIgXGAELcQBn5ZiHChXoB6NcStMZox8gOJpgeLCdq3hnNwvpbazenQx9cc3GH7fSgQnsEx0wiLgGWhTRTchP+uBLIy5IKLpR+CRMS97JPrSH9U2nBC/ETB3KnZ+VqW6v8drGeFKJFJWX/AwgtqLONFqCeitQylCu9NBcGeAnkvo+R6X1f1Sx9KfGFkvVkAKNMIOqyajZIFiOH+AWXQQqO4NTBBV2Vrw1lv0H5ca7g5n8jHVlG27+XjslSKeIUxXuK+tjYIXzbKkeVZlupt1OlnGM8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=FVBneN6rCz2C42FTx5EE7dMpAOdzsHfXGOOgMtnBcPk=; b=JlZmrrNJZCjkFFvWEE7VqLzr5pQXt94akpORODXxLT23Rc2zk/h4jo/6PrMGp8KNvIFdhxWoGKzCfuBQPM7Q+l9WfSq6UVzZoB7uvz5wheWO0DWClLzYWjxUHehZlkJQR4ERArHHkLib2kgCUstBZKVeKmtCKRbwYCt7QEGTXxH0Vs8/RV8BeFxRKFBWburh9gQl8qYMAb6ZdOW4g6s9e7KqELTJyN4irNd/iIiTzAXsto+QqlEZCUpaHMlkjYd929a3GN1+HA7XP2tSSiSwo18tgBGU64eVW0XUioLZxo0sijuFiM6zowvr7G4ETQxf8uJyDCAgfCXXlB63PY/J5w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 193.8.40.94) smtp.rcpttodomain=pengutronix.de smtp.mailfrom=leica-geosystems.com.cn; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=leica-geosystems.com.cn; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leica-geosystems.com.cn; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FVBneN6rCz2C42FTx5EE7dMpAOdzsHfXGOOgMtnBcPk=; b=CjoqBN6Uamt1r0JKuiwiHuHmG+LlY2QEqcIHXUB/g5Hs5BEFpzF6fGZF5VXvaxwOmuIs4BlTFJGm9qnZGQjQ7XJIIf//uJ7zdiDBBnKMNv7LsIt9613WkvwwFkWM2wGjXoRMbdbpJ01oc4xLdzj1k8zvj7ROVAfSIX9LZistaL8= Received: from DU2P251CA0026.EURP251.PROD.OUTLOOK.COM (2603:10a6:10:230::28) by AS8PR06MB7495.eurprd06.prod.outlook.com (2603:10a6:20b:31d::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.39; Thu, 13 Jun 2024 07:07:28 +0000 Received: from DU6PEPF0000A7E1.eurprd02.prod.outlook.com (2603:10a6:10:230:cafe::95) by DU2P251CA0026.outlook.office365.com (2603:10a6:10:230::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.24 via Frontend Transport; Thu, 13 Jun 2024 07:07:27 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 193.8.40.94) smtp.mailfrom=leica-geosystems.com.cn; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=leica-geosystems.com.cn; Received-SPF: Pass (protection.outlook.com: domain of leica-geosystems.com.cn designates 193.8.40.94 as permitted sender) receiver=protection.outlook.com; client-ip=193.8.40.94; helo=hexagon.com; pr=C Received: from hexagon.com (193.8.40.94) by DU6PEPF0000A7E1.mail.protection.outlook.com (10.167.8.40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.15 via Frontend Transport; Thu, 13 Jun 2024 07:07:27 +0000 Received: from aherlnxbspsrv01.lgs-net.com ([10.60.34.116]) by hexagon.com with Microsoft SMTPSVC(10.0.17763.1697); Thu, 13 Jun 2024 09:07:26 +0200 From: LI Qingwu To: Qing-wu.Li@leica-geosystems.com.cn, oss-tools@pengutronix.de, m.felsch@pengutronix.de Date: Thu, 13 Jun 2024 09:07:22 +0200 Message-Id: <20240613070724.3400651-2-Qing-wu.Li@leica-geosystems.com.cn> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240613070724.3400651-1-Qing-wu.Li@leica-geosystems.com.cn> References: <20240613070724.3400651-1-Qing-wu.Li@leica-geosystems.com.cn> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 13 Jun 2024 07:07:26.0086 (UTC) FILETIME=[588AEA60:01DABD60] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU6PEPF0000A7E1:EE_|AS8PR06MB7495:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 87dd53cd-2edd-4857-6726-08dc8b777c14 X-SET-LOWER-SCL-SCANNER: YES X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230034|36860700007|376008|1800799018|82310400020; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?n7qLeptvVbul1ax12xcGQhWYvDH4F2jT5aX0E54vQQE3dBk6PgD14WVTPhik?= =?us-ascii?Q?v+B81RrPtOJ5VfkI5/NjxWcoObIcwbnhr1DW7A7zp2tn8vZ5jsDPFJgLXQTY?= =?us-ascii?Q?w9U9/dgIjZPdb7FVpdyUjcxgPu9d4giEf5ytMeK6H8ZV0daCcf9TSpvGLXpd?= =?us-ascii?Q?S/jRvDAAuVlmPZ04eHKMAENF8xc6K+mPDOCXZ5AQQGek9/hgg3xVtUu6qBNU?= =?us-ascii?Q?l6dO2aKroxNgwT9uZ+x5ZOfWxJA7z1Wx41WxOym+55dEJfdkeOp/+W/FUgR9?= =?us-ascii?Q?aIINeUL9imkVQuaruWxPDQvZV7kBLNyP/C4Yc7Y2TBscPMIWFV5sEsqZkrev?= =?us-ascii?Q?klyOMFOi5y7mHjUOx5JXOBV7MArOlfjIOlLL13f7zNWhcSLfE3p5KI/S1J0V?= =?us-ascii?Q?1+1bzVJkrIjC1YYZxLhixpuSyQ1MK74s27vqldn590jshFeu4qA7glJ1K5Rp?= =?us-ascii?Q?X9TgejhZmxMxyAyh2IXLdt2OsWb4jKjk76ohrG7o7d39rf1QbzMdEApd5XT+?= =?us-ascii?Q?dHiDyAwv8/tp56WotUd/N84Og7o3oUeudMffn09DIDYtpOzVUYJmO5CWuqmF?= =?us-ascii?Q?I7jotGX+iU4bAZi+URkGxb93RsJKteOMERoL3huorIlPsgTp7Q1tNHg7er8t?= =?us-ascii?Q?w/kNQpfYCwp8A1IDLBrAMhtWMpTjDLvrA6HzhYaVc/qxfa2l/l/zO2I3rbne?= =?us-ascii?Q?ksR1PwlyrL3tT+OpIuTzNg8j/aqP3C+j206bAho1EcJE7EF+GWzW1LvZL5b1?= =?us-ascii?Q?/42kDjngf1stWHSrmu7NRprRKO73grgDYiA0Q3S/LWQDbfG3TH6uiGZFV1w5?= =?us-ascii?Q?E+4Z+GVR+v/D+3R8jwpzaRKQN0p2jomypzgWfGlnrD4jQqh7ul7gJimBwQ2B?= =?us-ascii?Q?Eey/TaCDQ0SPxFaSZ4a8YgzMJJvCQTMdJpytJKGjMjj2dMytpQyi+T/UJOBE?= =?us-ascii?Q?PL6+x/PaM724tRrpEA01pO3RS5EZvyyaPzhFubYVHfpPZur7ngYp+0jtnW5r?= =?us-ascii?Q?9UAfDv3NEe9H88dRO5GkArMhgEh/nmYz0DCLvr1bD9CnWJAQZMWItu7K7xTt?= =?us-ascii?Q?tSQepPnZwEfQESkxCNgsCyr6vjZqiCIx9BslJ1vlkfmNvxHgjQwgITGXYLA6?= =?us-ascii?Q?B8JwPQKREV2sV1TCrUcB6ypzt7w7gQ9YntHRq0fPR7KpbJ9phh7iy23XolI/?= =?us-ascii?Q?ta2TvfQCBTTh3qqlYuJGOH+wDfNyHyXCyJcAMs1LF9LNCw/QzPJpo0wuTGRx?= =?us-ascii?Q?v+z/brwALUEzExgwP4rC5qDQD46bK4Jp8ISe9V/WWSA/RGtDjOSlyI8bXPIa?= =?us-ascii?Q?2WTLlfPzwjs3OXZvLA8JIZIPuMeDOk3+fO1/I9SrE9k+vzN+E/9onr0R1gO9?= =?us-ascii?Q?lwk/Ih+cmBuP3MXTOpQJbeVLw8ghWhQUTntUf90AxIFwLwfyVA=3D=3D?= X-Forefront-Antispam-Report: CIP:193.8.40.94; CTRY:CH; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:hexagon.com; PTR:ahersrvdom50.leica-geosystems.com; CAT:NONE; SFS:(13230034)(36860700007)(376008)(1800799018)(82310400020); DIR:OUT; SFP:1101; X-OriginatorOrg: leica-geosystems.com.cn X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jun 2024 07:07:27.7286 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 87dd53cd-2edd-4857-6726-08dc8b777c14 X-MS-Exchange-CrossTenant-Id: 1b16ab3e-b8f6-4fe3-9f3e-2db7fe549f6a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=1b16ab3e-b8f6-4fe3-9f3e-2db7fe549f6a; Ip=[193.8.40.94]; Helo=[hexagon.com] X-MS-Exchange-CrossTenant-AuthSource: DU6PEPF0000A7E1.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR06MB7495 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.whiteo.stw.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-2.8 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 X-Mailman-Approved-At: Thu, 13 Jun 2024 09:32:56 +0200 Subject: [OSS-Tools] [PATCH platsch V3 2/4] convert to meson build X-BeenThere: oss-tools@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: Pengutronix Public Open-Source-Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "OSS-Tools" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: oss-tools-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false Convert to meson build and update the README.rst Signed-off-by: LI Qingwu --- Makefile.am | 23 ----------------------- README.rst | 8 ++++++++ configure.ac | 13 ------------- meson.build | 15 +++++++++++++++ 4 files changed, 23 insertions(+), 36 deletions(-) delete mode 100644 Makefile.am delete mode 100644 configure.ac create mode 100644 meson.build diff --git a/Makefile.am b/Makefile.am deleted file mode 100644 index d149ae0..0000000 --- a/Makefile.am +++ /dev/null @@ -1,23 +0,0 @@ -EXTRA_DIST = README.rst LICENSE - -sbin_PROGRAMS = platsch - -platsch_SOURCES = platsch.c -platsch_CFLAGS = $(LIBDRM_CFLAGS) -platsch_LDADD = $(LIBDRM_LIBS) - -CLEANFILES = \ - $(DIST_ARCHIVES) - -DISTCLEAN = \ - config.log \ - config.status \ - Makefile - -MAINTAINERCLEANFILES = \ - aclocal.m4 \ - configure \ - depcomp \ - install-sh \ - Makefile.in \ - missing diff --git a/README.rst b/README.rst index e318120..f1c0812 100644 --- a/README.rst +++ b/README.rst @@ -141,3 +141,11 @@ By adding a Signed-off-by line (e.g. using ``git commit -s``) saying:: (using your real name and e-mail address), you state that your contributions are in line with the DCO. + +Compiling Instructions +---------------------------- + +.. code-block:: shell + + meson setup build + meson compile -C build diff --git a/configure.ac b/configure.ac deleted file mode 100644 index 18878db..0000000 --- a/configure.ac +++ /dev/null @@ -1,13 +0,0 @@ -AC_PREREQ([2.69]) -AC_INIT([platsch], [2019.12.0], [oss-tools@pengutronix.de]) -AC_CONFIG_SRCDIR([platsch.c]) -AM_INIT_AUTOMAKE([foreign dist-xz]) - -AC_PROG_CC -AC_PROG_MAKE_SET - -PKG_CHECK_MODULES([LIBDRM], [libdrm >= 2.4.112]) - -AC_CONFIG_FILES([Makefile]) - -AC_OUTPUT diff --git a/meson.build b/meson.build new file mode 100644 index 0000000..9f6be1e --- /dev/null +++ b/meson.build @@ -0,0 +1,15 @@ +project('platsch', 'c') + +platsch_dep = dependency('libdrm', version : '>= 2.4.112', required : true) +sources = ['platsch.c'] + +# Define the headers +headers = ['platsch.h'] + +# Create the platsch executable +executable('platsch', + sources, + dependencies: platsch_dep, + install: true, + include_directories: include_directories('.') +) -- 2.34.1