Skip to content

Commit

Permalink
Add support for slint-compiler in the SDK
Browse files Browse the repository at this point in the history
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
  • Loading branch information
tronical committed Oct 6, 2023
1 parent 4b24233 commit c282648
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion recipes-slint/slint/slint-cpp-v2.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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)} \
Expand Down Expand Up @@ -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"

0 comments on commit c282648

Please sign in to comment.