summaryrefslogtreecommitdiffstats
path: root/documentation/dev-manual/new-recipe.rst
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/dev-manual/new-recipe.rst')
-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