使用 bitbake 为 yocto distro 编译 flutter 桌面应用程序
Compile flutter desktop application using bitbake for yocto distro
我想为 yocto 发行版编译我的 flutter 桌面应用程序,所以我需要以某种方式访问 flutter build。
我怎样才能在 do_compile(){} 中使用 flutter?它安装在我用来构建 yocto 图像的 docker 容器中。
recipe.bb
SUMMARY = "larning-installer recipe"
DESCRIPTION = "Larning installer app for installing other larning software"
SRCREV= "aa237f9ad19436b61b2f930721837682a637759b"
LICENSE="GPLv3"
LIC_FILES_CHKSUM = "file://src/LICENSE;md5=442763063122646a01b61b4839320293"
PV="0.0.1+git${SRCPV}"
PR="r1"
SRC_URI="git://gitlab.com/larning/installer.git \
file://config.json"
S = "${WORKDIR}"
FILES_${PN} += "${bindir}"
do_configure() {
rm git/assets/config.json
mv config.json git/assets/
}
do_compile() {
cd git
flutter build linux
cd ..
}
do_install() {
install -d ${D}${bindir}
install -m 0755 git/build/release/bundle/installer ${D}${bindir}
}
您必须向该工具添加构建时间相关性,为此您必须使用 DEPENDS 变量。
DEPENDS += "flutter-engine-native"
克隆后将 meta-flutter 图层添加到 bblayers.conf。
https://layers.openembedded.org/layerindex/branch/zeus/layer/meta-flutter/
我想为 yocto 发行版编译我的 flutter 桌面应用程序,所以我需要以某种方式访问 flutter build。 我怎样才能在 do_compile(){} 中使用 flutter?它安装在我用来构建 yocto 图像的 docker 容器中。
recipe.bb
SUMMARY = "larning-installer recipe"
DESCRIPTION = "Larning installer app for installing other larning software"
SRCREV= "aa237f9ad19436b61b2f930721837682a637759b"
LICENSE="GPLv3"
LIC_FILES_CHKSUM = "file://src/LICENSE;md5=442763063122646a01b61b4839320293"
PV="0.0.1+git${SRCPV}"
PR="r1"
SRC_URI="git://gitlab.com/larning/installer.git \
file://config.json"
S = "${WORKDIR}"
FILES_${PN} += "${bindir}"
do_configure() {
rm git/assets/config.json
mv config.json git/assets/
}
do_compile() {
cd git
flutter build linux
cd ..
}
do_install() {
install -d ${D}${bindir}
install -m 0755 git/build/release/bundle/installer ${D}${bindir}
}
您必须向该工具添加构建时间相关性,为此您必须使用 DEPENDS 变量。
DEPENDS += "flutter-engine-native"
克隆后将 meta-flutter 图层添加到 bblayers.conf。
https://layers.openembedded.org/layerindex/branch/zeus/layer/meta-flutter/