[wam][cef] Make it possible to use cef as a backend
[AGL/meta-agl-demo.git] / recipes-wam / wam / wam.inc
diff --git a/recipes-wam/wam/wam.inc b/recipes-wam/wam/wam.inc
new file mode 100644 (file)
index 0000000..f78fcfe
--- /dev/null
@@ -0,0 +1,12 @@
+DEPENDS += " chromium "
+
+EXTRA_OECMAKE = "\
+    -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_INSTALL_PREFIX=${prefix} \
+    -DPLATFORM_NAME=${@'${DISTRO}'.upper().replace('-', '_')} \
+    -DCHROMIUM_SRC_DIR=${STAGING_INCDIR}/chromium"
+
+do_install:append() {
+    install -v -D -m 644 ${WORKDIR}/WebAppMgr.env ${D}${sysconfdir}/default/WebAppMgr.env
+    sed -i -e 's#@WAM_EXE_DIR@#${bindir}#g' ${D}${systemd_system_unitdir}/WebAppMgr.service
+}