From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Wed, 26 Jun 2024 10:41:47 +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 1sMODr-00CU97-2B for lore@lore.pengutronix.de; Wed, 26 Jun 2024 10:41:47 +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 1sMODh-0007sb-Ti; Wed, 26 Jun 2024 10:41:37 +0200 Received: from mail-vi1eur05on2089.outbound.protection.outlook.com ([40.107.21.89] helo=EUR05-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 1sLLnU-0008Kd-7M; Sun, 23 Jun 2024 13:54:17 +0200 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=S/MVmXP352k5TQ2ylYf6ZR8m2CKXOPtD4gjmk1lrjCt+6Kopy6k80eOK/8u8indIgP/bTMhWJsFnr25ZJbFJ0Fwcubnas7UfnVb9F04k5HGN74BNASwZGkvUebOjh0bHkY/72OX5PcCxvKwO8pn0mnGxP80NCoXCWDpp24JE56N0bfsUtxEcuk7c7AimPXdPcTpEyoXgZH6fFDbDx4/G0bXy1WUCPL8mhdoxVK+EF6KeYmSs8KxvLkk/1M3Joz8HvObU78jLf1cdLkLr4hYY9GVCZPJvI0WYUVvRIkS3bp907j7tUNS7BpYwtdpa7oSEFoxioXuJhuZOmRzcRwx4vQ== 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=GX2rR3fMop1Jg1Hm1OAtRpk+QocBJqPDtDgmhUyroEGXqn1vC7lJU1uNfSF0nYZgGrQroYjSRIMBxhnfFSVAnuVVDn3gCS7a26XDz7gYmQZ2Kgg3MkTVbi8HI2/lChg9liW8pphSqwjeCmOItnvSCRt17nhvnel0SW9yrxKYlu3RI8UYDl/8VRBYVNarp3/Fkps76G4aGVs8Xe2MqCQgu2l2TOQC203KjD6Zg0zKNOIN498dqJMkN6hYv6ovR1ek5RSLENRsbn6pd3Uk4iRP718DH704lkJOl3UAFlVzeUe6RlY2YMPKmdazsdw1F1mu+wc4Ou422HRGFa9yFdo2Pw== 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=d0j4JgDDXORGFHrGd4SCzQaL3JWQoOqi1nRL2Qr8T3k46K+UeMGy8C/FS3ZYw1KakmGaaIhbLFivCLsVhyJQNhFivWrEsptPQrncBB1+cDJY4kvoJ4a/nng1q+gKi/qQ83r7PHelJBKon9tTGNamu5U0cO0scHc+DeRHNsFqarM= Received: from AM8P251CA0008.EURP251.PROD.OUTLOOK.COM (2603:10a6:20b:21b::13) by PA4PR06MB7312.eurprd06.prod.outlook.com (2603:10a6:102:f8::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7698.26; Sun, 23 Jun 2024 11:54:12 +0000 Received: from AMS0EPF00000190.eurprd05.prod.outlook.com (2603:10a6:20b:21b:cafe::d5) by AM8P251CA0008.outlook.office365.com (2603:10a6:20b:21b::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.37 via Frontend Transport; Sun, 23 Jun 2024 11:54:12 +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 AMS0EPF00000190.mail.protection.outlook.com (10.167.16.213) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.15 via Frontend Transport; Sun, 23 Jun 2024 11:54:12 +0000 Received: from aherlnxbspsrv01.lgs-net.com ([10.60.34.116]) by hexagon.com with Microsoft SMTPSVC(10.0.17763.1697); Sun, 23 Jun 2024 13:54:09 +0200 From: LI Qingwu To: Qing-wu.Li@leica-geosystems.com.cn, oss-tools@pengutronix.de, m.felsch@pengutronix.de Date: Sun, 23 Jun 2024 13:54:04 +0200 Message-Id: <20240623115407.983326-2-Qing-wu.Li@leica-geosystems.com.cn> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240623115407.983326-1-Qing-wu.Li@leica-geosystems.com.cn> References: <20240623115407.983326-1-Qing-wu.Li@leica-geosystems.com.cn> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 23 Jun 2024 11:54:09.0320 (UTC) FILETIME=[0E999A80:01DAC564] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AMS0EPF00000190:EE_|PA4PR06MB7312:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 28150b1c-a335-44ef-6fee-08dc937b32c5 X-SET-LOWER-SCL-SCANNER: YES X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230037|36860700010|1800799021|376011|82310400023; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?YSGXtoq15E5188kgPh6cSuEqRdrIWmlLYnB7BL09dh0jn+s/RBZkpWhdCv6a?= =?us-ascii?Q?GpeYrjdEbHoDPtkOI4T5O4Duqs4Nyc7zs2SWTknRp+2LxAG65kWxr/KU/A7D?= =?us-ascii?Q?GlBEM9XgvEjOzyvbY+RDQSPjEnhUMpk8wDTx/xSHg48czNTdCvbadEPs8LVw?= =?us-ascii?Q?3rHWGoxbqUqXwkfrIjjwwZWpLy/I+crchlDnOSRKefL4ILRdUT7U1OHtK/mR?= =?us-ascii?Q?jvem+pxYoTTkJmxzoHhroBKCdi46HanrDcEyf8BakVqj1EQs8MWJFs4p1gh9?= =?us-ascii?Q?VoaPs9X5VjGtwFy/nyhViX9zysstmpy7bhhWZMYwC4Z+GWLL1yxCUSE1XPev?= =?us-ascii?Q?HDlmkHaIWfZAkgQ9wBcD0jP1Jex209Fa/stAA0CYu/aBan7iEhab2ZKkQP4g?= =?us-ascii?Q?EwI7ny7C4rA91KSiI8eao9cupSZBQWq6upT9jwXSF7WQgnf0jlXditp8Ydsu?= =?us-ascii?Q?uBRRZEaKGlGzQ1e/p+hUuwhPMuwMo69AAY+Y10enV3czmEBsrBFeGn1VWskd?= =?us-ascii?Q?bwEDQYughGSpDNeO9pt68zWsz5rZsRcQni/TNjrFbZLyGXxhd6EX8b41OFI5?= =?us-ascii?Q?r45dC47GmoxkIWxLrTdzYwn924OnzP4jUJorS24UTVs6rqwgZXBzGWra5ld0?= =?us-ascii?Q?olxB1erBLt0zsa9rj0mZx7mW2Y5wlrs8MxqCc0v2tUNRL1ugS49DedSaDRhb?= =?us-ascii?Q?k3XmBYt7qXgPDKK+YCgTXFwUFJCH2BVWMc+3eoq+n+eNxjRoPbYGR+OeVFpH?= =?us-ascii?Q?meIjCbeJdkVEeFDL4Rv3J+Vr7c7yR3jBcwu5X3uxWtdn1CfYtTVuMowFxQEL?= =?us-ascii?Q?183Ly0jFGb6GuDGYn+LmCKPoK2kNx1AxJjnyR5g0z6NPffUEvyeA0r4bTmzP?= =?us-ascii?Q?HYevNPBQ9CrmjjotZfC1gVbUdgWGorJe6urMaWFniXmcKL21XypKUwZg8Ui9?= =?us-ascii?Q?e61UScLgscVxJ/6sBYpyXga1Pc8J0CXFoEqLCfgSveiZG6Jq+PqK8+FM8VZF?= =?us-ascii?Q?kQ/a6aV6Xr247fmX5avXIYIHi5jEsAFhyVovHqFftipIw/J/dCWvhmNufabj?= =?us-ascii?Q?xqInELxlMdW8ifHyyfg7Ip857wRkrfVtHeYGj1lkckLS4kbh12XkWBRc9Woq?= =?us-ascii?Q?vGCZsmY6nPuDy05L90hrIRD89dqwz19bPJHmdUejlspdW4GhjjqCx3x2HekI?= =?us-ascii?Q?vokpBgUdkqCmSFH3kfpBzTG/ymE4MNB7pc0CgwTSWBPIGjIs07ZOb4Yq+UHb?= =?us-ascii?Q?YxWrL0Lv3oa162OTM+q8oiTybz/QvVmVX5YeEh7eATZmbOp/jdBTNx/B7ocr?= =?us-ascii?Q?vzzbS7EbSDl7aSqsvckgrpTIZy8uhh2jWJZdjTbuooglJM5DZwzlyQNcIAfm?= =?us-ascii?Q?G4hKw0bE5t3L4yX9QoGudO5ifdQixHs+dqRo1rVWTg8vqk/sXA=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)(36860700010)(1800799021)(376011)(82310400023); DIR:OUT; SFP:1101; X-OriginatorOrg: leica-geosystems.com.cn X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Jun 2024 11:54:12.0890 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 28150b1c-a335-44ef-6fee-08dc937b32c5 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: AMS0EPF00000190.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR06MB7312 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_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 X-Mailman-Approved-At: Wed, 26 Jun 2024 10:41:35 +0200 Subject: [OSS-Tools] [PATCH platsch V6 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