From c282648ef62eae15ba4bc2e672f92ba59a88f447 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Fri, 6 Oct 2023 17:05:09 +0200 Subject: [PATCH] Add support for slint-compiler in the SDK Currently this requires TOOLCHAIN_HOST_TASK:append = " nativesdk-slint-cpp" in conf/local.conf, but perhaps this can be done with a bbappend to the corresponding package group or it needs to be documented. cc #9 --- recipes-slint/slint/slint-cpp-v2.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/recipes-slint/slint/slint-cpp-v2.inc b/recipes-slint/slint/slint-cpp-v2.inc index 2bed845..3c488b9 100644 --- a/recipes-slint/slint/slint-cpp-v2.inc +++ b/recipes-slint/slint/slint-cpp-v2.inc @@ -29,6 +29,7 @@ DEPENDS:append:class-target = " ${PN}-native" EXTRA_OECMAKE:append:class-target = " -DSLINT_COMPILER=/\$ENV{OECORE_NATIVE_SYSROOT}/usr/bin/slint-compiler" PACKAGECONFIG:append:class-native = "slint-compiler" +PACKAGECONFIG:class-nativesdk = "slint-compiler" PACKAGECONFIG:append:class-target = " \ slint-runtime renderer-skia interpreter \ ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'backend-winit-wayland', '', d)} \ @@ -88,4 +89,7 @@ EXTRA_OECMAKE:append = " -DBUILD_TESTING=OFF -DSLINT_BUILD_EXAMPLES=OFF -DCMAKE_ EXTRA_OECMAKE:append = " -DCMAKE_DISABLE_FIND_PACKAGE_Qt5=true -DSLINT_FEATURE_BACKEND_QT=OFF" EXTRA_OECMAKE:append = " -DSLINT_FEATURE_BACKEND_WINIT=OFF" -BBCLASSEXTEND = "native" +# The slint compiler for the SDK doesn't need (shared) libstd-rs +RUSTLIB_DEP:class-nativesdk = "" + +BBCLASSEXTEND = "native nativesdk"