Fix a spell miss of document.
[AGL/documentation.git] / docs / 3_Developer_Guides / 5_Using_CMAKE_Applications_Module / 6_Using_CMake_Templates_from_Bitbake_Recipes.md
1 ---
2 title: Using CMake Templates from BitBake Recipes
3 ---
4
5 If you have developed an application and you want to include it in an AGL image,
6 you must add a BitBake recipe in one of the following layers:
7
8 * [meta-agl](https://gerrit.automotivelinux.org/gerrit/#/admin/projects/AGL/meta-agl):
9  meta-agl layer (core AGL)
10 * [meta-agl-cluster-demo](https://gerrit.automotivelinux.org/gerrit/#/admin/projects/AGL/meta-agl-cluster-demo):
11  cluster demo specific recipes and configuration
12 * [meta-agl-demo](https://gerrit.automotivelinux.org/gerrit/#/admin/projects/AGL/meta-agl-demo):
13  meta-agl-demo layer (demo/staging/"one-shot")
14 * [meta-agl-devel](https://gerrit.automotivelinux.org/gerrit/#/admin/projects/AGL/meta-agl-devel):
15  meta-agl-devel (Development and Community BSPs)
16 * [meta-agl-extra](https://gerrit.automotivelinux.org/gerrit/#/admin/projects/AGL/meta-agl-extra):
17  meta-agl-extra (additional/optional components for AGL)
18
19 Once you have the recipe in place, edit it to include the following
20 line to cause the `aglwgt` class to be inherited:
21
22 ```bb
23 inherit aglwgt
24 ```
25
26 Following is an example that uses the HVAC application recipe (i.e. `hvac.bb`), which
27 builds the HVAC application:
28
29 ```bb
30 SUMMARY     = "HVAC Service Binding"
31 DESCRIPTION = "AGL HVAC Service Binding"
32 HOMEPAGE    = "https://gerrit.automotivelinux.org/gerrit/#/admin/projects/apps/agl-service-hvac"
33 SECTION     = "apps"
34
35 LICENSE     = "Apache-2.0"
36 LIC_FILES_CHKSUM = "file://LICENSE;md5=ae6497158920d9524cf208c09cc4c984"
37
38 SRC_URI = "gitsm://gerrit.automotivelinux.org/gerrit/apps/agl-service-hvac;protocol=https;branch=${AGL_BRANCH}"
39 SRCREV  = "${AGL_APP_REVISION}"
40
41 PV = "1.0+git${SRCPV}"
42 S  = "${WORKDIR}/git"
43
44 DEPENDS = "json-c"
45 RDEPENDS_${PN} += "agl-service-identity-agent"
46
47 inherit cmake aglwgt pkgconfig
48 ```
49
50 The following links provide more examples of recipes that use the
51 CMake templates:
52
53 * [agl-service-helloworld](https://gerrit.automotivelinux.org/gerrit/admin/repos/apps/agl-service-helloworld)
54 * [agl-service-audio-4a](https://gerrit.automotivelinux.org/gerrit/#/admin/projects/apps/agl-service-audio-4a)
55 * [agl-service-unicens](https://gerrit.automotivelinux.org/gerrit/#/admin/projects/apps/agl-service-unicens)
56 * [4a-hal-unicens](https://gerrit.automotivelinux.org/gerrit/#/admin/projects/src/4a-hal-unicens)