From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Wed, 19 Jun 2024 14:57:56 +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 1sJust-008hFv-1L for lore@lore.pengutronix.de; Wed, 19 Jun 2024 14:57:55 +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 1sJusr-0005Ts-Af; Wed, 19 Jun 2024 14:57:53 +0200 Received: from mail-vi1eur04on2082.outbound.protection.outlook.com ([40.107.8.82] 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 1sJsSY-000122-Vk; Wed, 19 Jun 2024 12:22:35 +0200 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=P/dXq9wrLw6pkNGaVrrtv5zV5eW49rTOcdqm3Bd0mAn9OtTYncOqlLFy+1YN47ag8KR+P2GDJZTXGOWW1QzV0dTWVXURqNR0WoNWFLTIb+zcOXOmK0lGJ4UP/jt5ZJG/BrnODftHjukybqGWL/PzlonVDOv0sQAX9Ig76ZeZO6MPwOTCAwVwPvv89DWuB8reRNK42tXaNpXlDMI/dC2FjEdI/1X6EukMbOSmuIejBPNGK8qLhkXoYEYF4ptO6Nqe0AS66XCYa2TVqIVFYz6kJ/HwRxc3QrIUShaTbBx14Ympa9fRnNegR+hjaNgaEgv09pZHvDHodjuNW78uVy3E+A== 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=JCQCYCNIxPbk+W3/fb/BJcDDtJAxsIZwO7UXJJ4yXl8=; b=gWbp1PG+OgauGf+D8mkH29uFZPAb+/ldtIUMiklbyLFCWcfUt04VVJcDFptDLYJeiIi9w7U0CMC3Z6xb3vXrNZCqRCoNMTIL9VuEK2+QvuDwv6nEExJxVFYWjooIFhX0ItMhmIaDL4AfrPkaLJfxWde3y2feUe2jb75ccqpGpq/2PskLbpGGkO2veSXiqP3oXgDsSdzOg6aof3ZrQbO8wFtZv3mff7XIidKgmLEMFn0TMaOFHdWnEUGNpKJ6k+gGCcbMWuZoz3ubuZBUzGBnxLVbhfN0ay6Hpil3ASpxYkdVnoVJHq+hseQ8R1TfndX5Nc3UOQ9vT9e5XUGBYVwCUA== 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=JCQCYCNIxPbk+W3/fb/BJcDDtJAxsIZwO7UXJJ4yXl8=; b=vndnOICboZ1uo4/oirlSNThacnEwdM996EJoAFAw8LKYvTovPZS/1Gb4hplLbq7vGVIjE8vqxXq1g5gyBkZnp8xY8JYyW/2PJW5zH5pGOEVJosTXOQWUvZAI68xkT/0TSDO4VbmZr0Bvr+BDoMsYv8HFbFlcF/guYpQcludJJQU= Received: from DUZPR01CA0003.eurprd01.prod.exchangelabs.com (2603:10a6:10:3c3::15) by DUZPR06MB9008.eurprd06.prod.outlook.com (2603:10a6:10:4b2::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7698.19; Wed, 19 Jun 2024 10:22:32 +0000 Received: from DU2PEPF0001E9C3.eurprd03.prod.outlook.com (2603:10a6:10:3c3:cafe::22) by DUZPR01CA0003.outlook.office365.com (2603:10a6:10:3c3::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.32 via Frontend Transport; Wed, 19 Jun 2024 10:22:32 +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 DU2PEPF0001E9C3.mail.protection.outlook.com (10.167.8.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.15 via Frontend Transport; Wed, 19 Jun 2024 10:22:32 +0000 Received: from aherlnxbspsrv01.lgs-net.com ([10.60.34.116]) by hexagon.com with Microsoft SMTPSVC(10.0.17763.1697); Wed, 19 Jun 2024 12:22:30 +0200 From: LI Qingwu To: Qing-wu.Li@leica-geosystems.com.cn, oss-tools@pengutronix.de, m.felsch@pengutronix.de Date: Wed, 19 Jun 2024 12:22:24 +0200 Message-Id: <20240619102227.2013556-2-Qing-wu.Li@leica-geosystems.com.cn> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240619102227.2013556-1-Qing-wu.Li@leica-geosystems.com.cn> References: <20240619102227.2013556-1-Qing-wu.Li@leica-geosystems.com.cn> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 19 Jun 2024 10:22:30.0776 (UTC) FILETIME=[978F5F80:01DAC232] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PEPF0001E9C3:EE_|DUZPR06MB9008:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 8e7ce199-e040-4bc5-3d14-08dc9049bb21 X-SET-LOWER-SCL-SCANNER: YES X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230037|1800799021|82310400023|376011|36860700010; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?I7P4ulfmQei4ONQtYkENr0C5S7u8PBM7QFh3poR0sXtzp6rkncgpbD0/U3h1?= =?us-ascii?Q?+F8CrlPgLcDOHMKGDIb7gNd0f8Byy3clLRoDzDFvR6xBPNSktkYPczt/WdxU?= =?us-ascii?Q?O6qTvuXhkQ5ec/UvChza5Y/dZrd2DDXBFcS6K0rBqTtDQNB7dhdA/QLMe3Fy?= =?us-ascii?Q?N0T1WILpBcJ3p3HhjRR0C+pVCgDaggi6GveKWFiTxSXXEFXUjFR6p3M7tFda?= =?us-ascii?Q?E6YV7GTJl5D5curqwXguwHxBcrfl/4wYtUDXegJiGcsdvn1pCXKQA2VU4mt6?= =?us-ascii?Q?3pkdt3EHXdVszgEUxE0BEiwvn+rWrRGerfgrh5LTHfWf77MLSPdYmzCyzXoL?= =?us-ascii?Q?8ybSIaPkPGNVApjzcA4A55uDPjryc8zIhtyZc4LGTcWz0zVb1FNyky6W72Wj?= =?us-ascii?Q?rCodwgbP16BpWiIIwRtM0Hi2wlw5IF5xrYwOq6NVgbv/RbQ4wZUVH0ZQ+H6l?= =?us-ascii?Q?AmZFDgivl+H95EAM7BId9RONxBYcDpUc/1mZ/J27mLB2bEWqrdK58d+ZpfrV?= =?us-ascii?Q?9JZ8na3vOlCmNKNcXO63we36CjHjt0gOol1NyHUxIwb1kO9M7csze+JhIiAj?= =?us-ascii?Q?9DazPlls5ib9Lg276763brDqrKa3YXwYGsavqzgjREshH68EE52ILbOx4ISO?= =?us-ascii?Q?xk5FuUnO8p+/1zJ3ecYF/wx/2ilcEqr7coHIhSV08URmWSBEoiAYb/Pz3h6x?= =?us-ascii?Q?z1FvL0aSA8BReXzbjjdARAmosd5MPmXUFXjPhV34DY4QLzyLkl5JMl1DBKrs?= =?us-ascii?Q?GZr/Jq1m6i44ajMXjBXG++mM4UpukpB02R8msYKOneE0G68rXQy+CB4moHkA?= =?us-ascii?Q?emksStt8rEXo4Lm0OnAdQtJSdwiVD4WOkHIhx3MBNJwdgRWcdib+0J3iAEdJ?= =?us-ascii?Q?Zar7FVhQ1x74CQAzS/x1THz8KVSG/MmrP8hVHs9qwPUrJ6uwO5Y0CPZKlnMH?= =?us-ascii?Q?DVhiGyOxC52YWWSqA5W1zfZxuhcKa6NQvNe3kMB0NYtOkSP1GnikZBzFIK6S?= =?us-ascii?Q?qwzb569dD/MSQLAeAiO4AcZkvxDD4l1csW67musbUJfleB8mKr/TclB3ttWg?= =?us-ascii?Q?QBmDq8kAZKhXa9tyInKtgW6PQKv44in1Z61T/QSgdAp2zFyuZ4zCoMJTQVbW?= =?us-ascii?Q?KPUZmdJQUZXBEEwEAp14+1HCasGnaZkDEjiap+70GyysOUr8uIidlIS5WdXP?= =?us-ascii?Q?Vby+ArqsgDVDPjQjD+2YP1ghMjOB8zu3FfHDJIYXicWRu5EygwIpNbmyZGp3?= =?us-ascii?Q?whDi8O5V5YQcfDpfTy6OZzigYjqVZGwkX+k7dZWvAPNeelct1WbAAQSTEY6G?= =?us-ascii?Q?Sz1kAZoJuXAd7CMwPE+gwZxdVDn9FIqWUB+yZJkwwIP5wQSMWr5ke/dRADnj?= =?us-ascii?Q?JLkBPCJ4INRT2HBKcAF3bjqL5zO8nVuMrv+usrZzMhG3fRvYBA=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:(13230037)(1800799021)(82310400023)(376011)(36860700010); DIR:OUT; SFP:1101; X-OriginatorOrg: leica-geosystems.com.cn X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jun 2024 10:22:32.4891 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8e7ce199-e040-4bc5-3d14-08dc9049bb21 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: DU2PEPF0001E9C3.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DUZPR06MB9008 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_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: Wed, 19 Jun 2024 14:57:50 +0200 Subject: [OSS-Tools] [PATCH platsch V5 2/5] 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: , Cc: bsp-development.geo@leica-geosystems.com 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 version update to 2024.06.0 cleanup .gitignore Signed-off-by: LI Qingwu --- .gitignore | 14 -------------- Makefile.am | 23 ----------------------- README.rst | 8 ++++++++ configure.ac | 13 ------------- meson.build | 14 ++++++++++++++ 5 files changed, 22 insertions(+), 50 deletions(-) delete mode 100644 Makefile.am delete mode 100644 configure.ac create mode 100644 meson.build diff --git a/.gitignore b/.gitignore index bef7e68..e69de29 100644 --- a/.gitignore +++ b/.gitignore @@ -1,14 +0,0 @@ -/*.o -/aclocal.m4 -/autom4te.cache -/compile -/config.log -/config.status -/configure -/depcomp -/.deps -/install-sh -/Makefile -/Makefile.in -/missing -/platsch 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..b732a06 --- /dev/null +++ b/meson.build @@ -0,0 +1,14 @@ +project('platsch', 'c', version: '2024.06.0', license : '0BSD') + +dep_libdrm = dependency('libdrm', + version: '>= 2.4.112', + static: true +) + +executable('platsch', + 'platsch.c', + dependencies: dep_libdrm, + link_args: '-static', + install: true, + install_dir : 'sbin' +) -- 2.34.1