From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Thu, 04 Jul 2024 11:59:04 +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 1sPJF0-001Suz-1R for lore@lore.pengutronix.de; Thu, 04 Jul 2024 11:59:04 +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 1sPJEz-0003I5-41; Thu, 04 Jul 2024 11:59:01 +0200 Received: from mail-am6eur05on2072.outbound.protection.outlook.com ([40.107.22.72] helo=EUR05-AM6-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 1sPJ2z-0002V1-Od; Thu, 04 Jul 2024 11:46:38 +0200 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nm4697MlOmOnGpj3ne3f5wQGH5dsDpwVwVt7QwQhZgJvq+zK4foIbxKehocQd33dD7LflbLMlEySln3U10aza193f5DIQddYXX771P2BmHaoMNksP50IsdMSWeT1wE3t/3Mbncbk8Qaw1eqpqfB14sCmVBpBMuPIbGLNooCyXW6Yxlwlg+4GAwskX9AElB6Jzg4dDuKzU0RSiZdp3RhfM38+UGBHshxLLRJQyRgdzPs29/3XoXta/DAUCfmDJx/hH41vyO7QOhhyAEOVXLof1wmM3YufhjfYpzp/XTpoXp0YbtNGAf/NRI352qAl0oDQS7+a37ecOFRuutq/sHh+mw== 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=35VgBrWumwaUAQpMG/rnFHzZE70bVZOgC2U8ksqCEbI=; b=bV+JCtMVqhnFdgbnLazTDNlf6QO2Zko4OXN0o/eKtBNsEeqqijUQLrJbiVdmAOiW2eQbWhyCbn/ANXcTm4qQ19AtqEvIFKS7B7c4TFtHCUVxe7PlaG8xZyxxBnZqB6B22P4KzFELnV89J6Et1k2uYfXmsRQxatC6KGw6zFQeX3ocT35rXHtKX6obHhx+RaFqczJzpTg4bHDko0IwGYawYkkoiD5CeXuXmED4khBsM6Q1Mev9dHQBt6/f/AWIeEvNfJFxgzX5e8Ddn6cI8hMHcgPRriUyBLiQ5yLP7fsIb6GNXo3ixKXZiyXGl7ysbzVi5joRkakwVHuZNceM8Dai5Q== 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=35VgBrWumwaUAQpMG/rnFHzZE70bVZOgC2U8ksqCEbI=; b=RDamCTu+AmgXygyQ+IYLcdkoRZ9L6FnUwM7IVclx7liDVKomggAmlHlQCaHZI4BjyyDawb7WX1b4qeeJuOome+taf6nWV6ItY4Is+YUw9AHCzVOcjLUVREeXjHAIMYDW24wEkQKkPE4qYMS2QBMT1rxdhbhU/hxsPj6M3wawFZE= Received: from AM0PR02CA0006.eurprd02.prod.outlook.com (2603:10a6:208:3e::19) by DB9PR06MB8202.eurprd06.prod.outlook.com (2603:10a6:10:294::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.29; Thu, 4 Jul 2024 09:46:34 +0000 Received: from AM3PEPF0000A79C.eurprd04.prod.outlook.com (2603:10a6:208:3e:cafe::f1) by AM0PR02CA0006.outlook.office365.com (2603:10a6:208:3e::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.25 via Frontend Transport; Thu, 4 Jul 2024 09:46:34 +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 AM3PEPF0000A79C.mail.protection.outlook.com (10.167.16.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.18 via Frontend Transport; Thu, 4 Jul 2024 09:46:34 +0000 Received: from aherlnxbspsrv01.lgs-net.com ([10.60.34.116]) by hexagon.com with Microsoft SMTPSVC(10.0.17763.1697); Thu, 4 Jul 2024 11:46:32 +0200 From: LI Qingwu To: Qing-wu.Li@leica-geosystems.com.cn, jie.gu@leica-geosystems.com.cn, oss-tools@pengutronix.de, m.felsch@pengutronix.de Date: Thu, 4 Jul 2024 11:46:27 +0200 Message-Id: <20240704094630.1216852-2-Qing-wu.Li@leica-geosystems.com.cn> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240704094630.1216852-1-Qing-wu.Li@leica-geosystems.com.cn> References: <20240704094630.1216852-1-Qing-wu.Li@leica-geosystems.com.cn> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 04 Jul 2024 09:46:32.0877 (UTC) FILETIME=[0D8C5DD0:01DACDF7] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM3PEPF0000A79C:EE_|DB9PR06MB8202:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 6b883c6b-13ee-4e7d-54bd-08dc9c0e310e X-SET-LOWER-SCL-SCANNER: YES X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|82310400026|36860700013|376014|1800799024; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?kjBUnAu8mw6jjSIeAFYgy3Lx8J0JkP4lv1ovEn95HsFsWgcVdv8z9lDDXS1j?= =?us-ascii?Q?sZlFwG5I5PDwggqI5Qa0yKYN8KjCih/D7bRNiFatc/TkRpIaS5Insx5lIbfv?= =?us-ascii?Q?7x6xi8iHebJxANYF9ceSyIGGz25ZFmPlqXIap+XfsweNmucoe42LtOX6UwVa?= =?us-ascii?Q?AFjl/JFeOo4UMm0E8B69cBYl6lsW4BsuNU+Tb5xS8Us66XOaLIp6q8dNYD0W?= =?us-ascii?Q?oiz4/bp9k/y5/IOl1sNXn8iRayIhutd+511Yke3EzBwpFd5sgqaAh/g1tqXB?= =?us-ascii?Q?quM6Ryk9QP6r8Kdzk31BDYrrGGNAyFoaG8ADeR2p/FOq9+P4ZYYIuRBE5OBi?= =?us-ascii?Q?/BKBpTR5yjEGjRns44RU4rTJ9IF1EVEwfYq721acAqLWIh1N1S9mOKiYR063?= =?us-ascii?Q?I/mFTdCW2qFjYFttVY2nf1U7jOmxcQTZ7kPMYYu1KDuCvfk5IcH/qGGmCJ++?= =?us-ascii?Q?mB5YeF7MnPXWwfTPuOGXsv1BxRqhxLcDsUzefmZPxT7FN8ozpdkpnfZ/f7T1?= =?us-ascii?Q?ZyZB4+jCrdvV09mLc9XU9C7S+QM4a0lzhL1bNkPPtmRZcmdj/6maDoxyNa+0?= =?us-ascii?Q?91qLX30tlk4dvZhf0Gd+wrbdI+cIzZWoUAit674y9xjjteXC+QAqrR8rHw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L; SFV:NSPM; H:hexagon.com; PTR:ahersrvdom50.leica-geosystems.com; CAT:NONE; SFS:(13230040)(82310400026)(36860700013)(376014)(1800799024); DIR:OUT; SFP:1101; X-OriginatorOrg: leica-geosystems.com.cn X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2024 09:46:34.5328 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6b883c6b-13ee-4e7d-54bd-08dc9c0e310e 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: AM3PEPF0000A79C.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR06MB8202 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.7 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 autolearn=ham autolearn_force=no version=3.4.2 X-Mailman-Approved-At: Thu, 04 Jul 2024 11:58:58 +0200 Subject: [OSS-Tools] [PATCH platsch V6 RESEND 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 | 10 ++++++++++ configure.ac | 13 ------------- meson.build | 12 ++++++++++++ 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..e905437 100644 --- a/README.rst +++ b/README.rst @@ -141,3 +141,13 @@ 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 -Dprefer_static=true build + meson compile -C build + +To ensure fast startup, ``platsch`` prefers using static libraries. 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..9060514 --- /dev/null +++ b/meson.build @@ -0,0 +1,12 @@ +project('platsch', 'c', version: '2024.06.0', license: '0BSD') + +dep_libdrm = dependency('libdrm', + version: '>= 2.4.112' +) + +executable('platsch', + 'platsch.c', + dependencies: dep_libdrm, + install: true, + install_dir: 'sbin' +) -- 2.34.1