From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 14 Jun 2024 12:56:32 +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 1sI4bg-005t7Z-2y for lore@lore.pengutronix.de; Fri, 14 Jun 2024 12:56:32 +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 1sI4bX-0000jp-JP; Fri, 14 Jun 2024 12:56:23 +0200 Received: from mail-db3eur04on2065.outbound.protection.outlook.com ([40.107.6.65] helo=EUR04-DB3-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 1sI39R-0007ZW-Kt; Fri, 14 Jun 2024 11:23:18 +0200 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Au3xmbzo8vGmpZvOCesUSFue4Sp7rHdgsQ6NsyFp+PYmoQn+MCn+QkZ69jVmqzK6qazQ8GEQkds6KCTg2oXh5z9ZV94MZ6Uw1iIpAhM+43HGfBDkUjIf3MCiM40ztnwaG0cZlGHo3Hk8Gq3kDUw2LXasaBwmXp0VGUBmC0D4qSQpKjBLqjiVoy2SujzfR8FXr5WjxWioOgcvXukJytex3Chqn7H82zf8GOtbsLJMWp6fq1vH/XSt1EqCK9iPo4ld5yLJo6qUweVHRK2Vk1GHbR/s0sJZ4ZqMafSOtL3cq8Xh/DkHOBApPDIDSAX6Q+GigrzC73L6EtV9Zv+676VMqQ== 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=rwmUZTHyyhaOo6lhitB25WfrOzknxqn8EcnsBA8xaEE=; b=gGbL5koFgalUqMyGG47gr9nSG+IPuswc7ID/t61NnUTq5ykzNlqFEthBmyEpXy33hCrxmSaEJBfD1tKoCugh0//QK3Rqbqg3k1ke77aK9g+zaWnVxGU5Dz1KaTqto2+yCOkTJsHi7rC0+S8x5uX3QiWuQzoM/n8sngRkzufbl67/ybMS3tQZ/OtUEKDD6OuUuBJTqt5cEkfWSMG/BMEcIrFTocdjTGIGI6kjStRkkpJxiL3Re9f6IfFMSavcLP2YdF/SWZG3WkPTmVitQVIWC0uXmZm4NiuRhCAZWnsPPDjDFX+PU78dh7VimqR8DtFJV0LOuifPEkwdwv55394Tqg== 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=rwmUZTHyyhaOo6lhitB25WfrOzknxqn8EcnsBA8xaEE=; b=l0r4zBbdxVNg4p5fhxBXE2Oj59wzO+DptDXtb8L4ib4ouGwRcHHjgZgki8g/W6jWXClX688nhT5lHILYUgRinDfGJL+zzcQDyqgLnWmvp5FmzLarbn1psQeiWQYMLh9yloJZ+CFDfPEqlUcTLip1BQWYfz7e+9ZuRljs+9EYvwY= Received: from AS8PR04CA0085.eurprd04.prod.outlook.com (2603:10a6:20b:313::30) by DB9PR06MB7595.eurprd06.prod.outlook.com (2603:10a6:10:255::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.25; Fri, 14 Jun 2024 09:23:16 +0000 Received: from AMS0EPF000001A1.eurprd05.prod.outlook.com (2603:10a6:20b:313:cafe::16) by AS8PR04CA0085.outlook.office365.com (2603:10a6:20b:313::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.25 via Frontend Transport; Fri, 14 Jun 2024 09:23:15 +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 AMS0EPF000001A1.mail.protection.outlook.com (10.167.16.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.15 via Frontend Transport; Fri, 14 Jun 2024 09:23:15 +0000 Received: from aherlnxbspsrv01.lgs-net.com ([10.60.34.116]) by hexagon.com with Microsoft SMTPSVC(10.0.17763.1697); Fri, 14 Jun 2024 11:23:13 +0200 From: LI Qingwu To: Qing-wu.Li@leica-geosystems.com.cn, oss-tools@pengutronix.de, m.felsch@pengutronix.de Date: Fri, 14 Jun 2024 11:23:06 +0200 Message-Id: <20240614092308.1429018-2-Qing-wu.Li@leica-geosystems.com.cn> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240614092308.1429018-1-Qing-wu.Li@leica-geosystems.com.cn> References: <20240614092308.1429018-1-Qing-wu.Li@leica-geosystems.com.cn> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 14 Jun 2024 09:23:13.0422 (UTC) FILETIME=[7B257AE0:01DABE3C] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AMS0EPF000001A1:EE_|DB9PR06MB7595:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: a6a41c61-ff2a-4190-c876-08dc8c539eea X-SET-LOWER-SCL-SCANNER: YES X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230035|1800799019|36860700008|376009|82310400021; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?fZ5nCWBhrYSE7NEtyBD2H4BR/GmDe7E7M4MqmgPYxvqBHNWFErsSFZ60Yz5p?= =?us-ascii?Q?5hC2txe+d79iBPxegYLQywuPA3oMRTl19uQ5mwqSPhqY6XgLaOZLAnA6JI23?= =?us-ascii?Q?hu+EIIMhHEcY35FoRcnlfNgaxhZLVrYxASlbf6LnQmmHRlq2CUc6/TntLve/?= =?us-ascii?Q?0uKqHQAWLeC2jQpmwJ6CEI36HGpKGnTo04xXDyS5ASwLVEZwbIQVeoyBUERP?= =?us-ascii?Q?3L39wxKsNG6ULezsf+XjsZeD1tMKgOEZbNs08H0YQSVFeZc9ixp540THJRpy?= =?us-ascii?Q?6dsUTZ2IODiJh5fCzHaHmKKzn7z74cIuh4EA2JvEeQpCQE+my4RxOM4v+4Zd?= =?us-ascii?Q?Lpv5/xkHNsf6UQ/kwpdT5Sy80KpFpMPMrNJHllSLzOlihygx423n9IFSTBVY?= =?us-ascii?Q?NIER7v/U5eDBfttnI87UeiwRLJz7GZcdk7wxCGfHhlNSchmZGUvUgmMfUfUa?= =?us-ascii?Q?iu1qWGjJXI2VogI4HoaZZrjdDUkLQ24AZhLm7zvYO3mmOaHAxmtcvLu9tsdh?= =?us-ascii?Q?ew85SO54kqdYvOtWn2jEEWh68uSJCIohIk82ye6/aUWnJozbYc1/VicFmw38?= =?us-ascii?Q?Z8oCXbHqjElKeik00CetU4+IcZij+4NK25pFx+1y28lWaxw/EKXNgA5jga0G?= =?us-ascii?Q?p0JMJ2KTo77tkSxHefUb3qZyZao54ndH+JYqVzeHOp9cZK9V6Ev9uzP8JOCn?= =?us-ascii?Q?aq9hHBgMw4CVQ/vD9G41Kz6i6yo4jrtMr8298HoEvDumJhC6fJgeIT0GkkoV?= =?us-ascii?Q?6dzDJmCzTVFdgat+8+zCa8gIUcNjuAEbX4cxyMkH/hsBnuOkvAh3x4L/HxtW?= =?us-ascii?Q?gswhqrlrk0OpLHMvXMuyMDubmxz4PBB2mV27VVQFIl0Hi3XRPXT2e7EdqyYt?= =?us-ascii?Q?k4WVGrSHVE8220OYG8QKSC3LdXzDadkmx1/k8PjiaN6izAeVvSv61H3ZHDs0?= =?us-ascii?Q?wsh78LRhlM86C8iiWdu03kH99JfyoHSkf4Zujq+CETvU7AWxDOnOeIlixMfM?= =?us-ascii?Q?N55noAVTQNgWr7b2AUoRmX7flmXst2tszGV/cqcEQsqCjFjL+qKzmgDFZwH+?= =?us-ascii?Q?BXV34wupLZDFeKOxI+HFpocQTprH6U86zUMqd5DdsYsgAG53jQRn6S6Z3fBN?= =?us-ascii?Q?LlgKoaYunftMrokrEnKftV9lj/9lJZ60coRK59CnUDjwqMKKTKAvzXyt1J3X?= =?us-ascii?Q?hfSsa0vR/tCr1xrac77B/gLx9e7wpZcPJzYFRrwvfCKdRO7elJEiiSl91/YN?= =?us-ascii?Q?bWlp2dru74S0VRmGmGo0MXE3LUGkHKBXLrFsMaCcZgLmvjzn/NF72PHhePbe?= =?us-ascii?Q?KBYW/Hzrw57OWlBHDhnLGW5B+KDw2jAkDATZ9h7nuEnLJYMZAXgkpV6zfHdT?= =?us-ascii?Q?4EzxPeOCivevSNL/myFXH+UmLc5UNhsWTf/S1Dzs0z6fn429wg=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:(13230035)(1800799019)(36860700008)(376009)(82310400021); DIR:OUT; SFP:1101; X-OriginatorOrg: leica-geosystems.com.cn X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jun 2024 09:23:15.5191 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a6a41c61-ff2a-4190-c876-08dc8c539eea 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: AMS0EPF000001A1.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR06MB7595 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: Fri, 14 Jun 2024 12:56:20 +0200 Subject: [OSS-Tools] [PATCH platsch V4 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..0aadbe9 --- /dev/null +++ b/meson.build @@ -0,0 +1,15 @@ +project('platsch', 'c', version: '2024.06.0') + +dep_libdrm = 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: dep_libdrm, + install: true, + include_directories: include_directories('.') +) -- 2.34.1