summaryrefslogtreecommitdiffstats
path: root/documentation/dev-manual
diff options
context:
space:
mode:
authorMichael Opdenacker <michael.opdenacker@bootlin.com>2023-02-23 15:58:53 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-02-24 15:43:25 +0000
commitf279a84ee70bf1c1746757abc11aa5debf19b311 (patch)
tree88259ea1c63dab8fbe920d1e97448df11a2796d8 /documentation/dev-manual
parent6175e5bc9dcf6e5e1e49fceaa150837f9bbe077f (diff)
downloadpoky-f279a84ee70bf1c1746757abc11aa5debf19b311.tar.gz
dev-manual: new-recipe.rst: add Meson example recipe
(From yocto-docs rev: 30cded4e59020a98205877970c530de35da46a60) Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com> Reviewed-by: Quentin Schulz <foss+yocto@0leil.net> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/dev-manual')
-rw-r--r--documentation/dev-manual/new-recipe.rst31
1 files changed, 31 insertions, 0 deletions
diff --git a/documentation/dev-manual/new-recipe.rst b/documentation/dev-manual/new-recipe.rst
index 143c8b9c3b..a73920f8a4 100644
--- a/documentation/dev-manual/new-recipe.rst
+++ b/documentation/dev-manual/new-recipe.rst
@@ -1173,6 +1173,8 @@ recipe examples given various scenarios:
1173 1173
1174- Building an Autotooled package 1174- Building an Autotooled package
1175 1175
1176- Building a Meson package
1177
1176- Splitting an application into multiple packages 1178- Splitting an application into multiple packages
1177 1179
1178- Adding binaries to an image 1180- Adding binaries to an image
@@ -1288,6 +1290,35 @@ as described in the ":ref:`dev-manual/licenses:tracking license changes`"
1288section in the Yocto Project Overview and Concepts Manual. You can quickly 1290section in the Yocto Project Overview and Concepts Manual. You can quickly
1289create Autotool-based recipes in a manner similar to the previous example. 1291create Autotool-based recipes in a manner similar to the previous example.
1290 1292
1293Building a Meson Package
1294------------------------
1295
1296Applications built with the `Meson build system <https://mesonbuild.com/>`__
1297just need a recipe that has sources described in :term:`SRC_URI` and inherits
1298the :ref:`ref-classes-meson` class.
1299
1300The :oe_git:`ipcalc recipe </meta-openembedded/tree/meta-networking/recipes-support/ipcalc>`
1301is a simple example of an application without dependencies::
1302
1303 SUMMARY = "Tool to assist in network address calculations for IPv4 and IPv6."
1304 HOMEPAGE = "https://gitlab.com/ipcalc/ipcalc"
1305
1306 SECTION = "net"
1307
1308 LICENSE = "GPL-2.0-only"
1309 LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
1310
1311 SRC_URI = "git://gitlab.com/ipcalc/ipcalc.git;protocol=https;branch=master"
1312 SRCREV = "4c4261a47f355946ee74013d4f5d0494487cc2d6"
1313
1314 S = "${WORKDIR}/git"
1315
1316 inherit meson
1317
1318Applications with dependencies are likely to inherit the
1319:ref:`ref-classes-pkgconfig` class, as ``pkg-config`` is the default method
1320used by Meson to find dependencies and compile applications against them.
1321
1291Splitting an Application into Multiple Packages 1322Splitting an Application into Multiple Packages
1292----------------------------------------------- 1323-----------------------------------------------
1293 1324