diff options
Diffstat (limited to 'documentation/dev-manual/new-recipe.rst')
-rw-r--r-- | documentation/dev-manual/new-recipe.rst | 31 |
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`" | |||
1288 | section in the Yocto Project Overview and Concepts Manual. You can quickly | 1290 | section in the Yocto Project Overview and Concepts Manual. You can quickly |
1289 | create Autotool-based recipes in a manner similar to the previous example. | 1291 | create Autotool-based recipes in a manner similar to the previous example. |
1290 | 1292 | ||
1293 | Building a Meson Package | ||
1294 | ------------------------ | ||
1295 | |||
1296 | Applications built with the `Meson build system <https://mesonbuild.com/>`__ | ||
1297 | just need a recipe that has sources described in :term:`SRC_URI` and inherits | ||
1298 | the :ref:`ref-classes-meson` class. | ||
1299 | |||
1300 | The :oe_git:`ipcalc recipe </meta-openembedded/tree/meta-networking/recipes-support/ipcalc>` | ||
1301 | is 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 | |||
1318 | Applications with dependencies are likely to inherit the | ||
1319 | :ref:`ref-classes-pkgconfig` class, as ``pkg-config`` is the default method | ||
1320 | used by Meson to find dependencies and compile applications against them. | ||
1321 | |||
1291 | Splitting an Application into Multiple Packages | 1322 | Splitting an Application into Multiple Packages |
1292 | ----------------------------------------------- | 1323 | ----------------------------------------------- |
1293 | 1324 | ||