This CMake module is used to build an application or a binding project for the AGL Application Framework. It allows to easily build a widget and its related test widget for running on top the application framework.

Installation for a native environment

To build your AGL project using the templates, you have to install them as a CMake module. The easy way is to install using your distro package manager following this guide.

To install it, depending on your distro:

  • Debian/Ubuntu
sudo apt-get install agl-cmake-apps-module-bin
  • openSUSE
sudo zypper install agl-cmake-apps-module
  • Fedora
sudo dnf install agl-cmake-apps-module

Installing in a cross compilation environment


Beginning with the Grumpy Guppy, version 7, the CMakeAfbTemplates CMake module is installed by default in the SDKs. So, you don’t need anything to use it.

Here are some links to the latest SDKs on the master branch:

Using bitbake recipes

If you have developed an application and you want to include it in the AGL image, you have to add a bitbake recipe in one of the AGL Yocto layer:

Then in your recipe, you simply have to add the class aglwgt to the inherit line:

inherit aglwgt

i.e with the HVAC app recipe:

SUMMARY     = "HVAC Service Binding"
DESCRIPTION = "AGL HVAC Service Binding"
HOMEPAGE    = "https://gerrit.automotivelinux.org/gerrit/#/admin/projects/apps/agl-service-hvac"
SECTION     = "apps"

LICENSE     = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=ae6497158920d9524cf208c09cc4c984"

SRC_URI = "gitsm://gerrit.automotivelinux.org/gerrit/apps/agl-service-hvac;protocol=https;branch=${AGL_BRANCH}"

PV = "1.0+git${SRCPV}"
S  = "${WORKDIR}/git"

DEPENDS = "json-c"
RDEPENDS_${PN} += "agl-service-identity-agent"

inherit cmake aglwgt pkgconfig

You’ll find usage samples here: