From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Thu, 13 Jun 2024 10:44:25 +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 1sHg4H-005HI6-1m for lore@lore.pengutronix.de; Thu, 13 Jun 2024 10:44:25 +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 1sHg4G-0005kO-CD; Thu, 13 Jun 2024 10:44:24 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sHg4E-0005k5-3l; Thu, 13 Jun 2024 10:44:22 +0200 Received: from [2a0a:edc0:2:b01:1d::c5] (helo=pty.whiteo.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sHg4D-001zF0-Kd; Thu, 13 Jun 2024 10:44:21 +0200 Received: from mtr by pty.whiteo.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1sHg4D-008RAt-1m; Thu, 13 Jun 2024 10:44:21 +0200 Date: Thu, 13 Jun 2024 10:44:21 +0200 From: Michael Tretter To: LI Qingwu Message-ID: References: <20240613070724.3400651-1-Qing-wu.Li@leica-geosystems.com.cn> <20240613070724.3400651-2-Qing-wu.Li@leica-geosystems.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20240613070724.3400651-2-Qing-wu.Li@leica-geosystems.com.cn> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain Subject: Re: [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: , Cc: oss-tools@pengutronix.de, m.felsch@pengutronix.de 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 Hi, On Thu, 13 Jun 2024 09:07:22 +0200, LI Qingwu wrote: > 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) The variable name is a bit unusual. Usually, the name of the library in the dependency is used in the variable name. I'd suggest calling it dep_libdrm. Michael > +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 > > >