Skip to content

Commit

Permalink
Sync renderer defaults
Browse files Browse the repository at this point in the history
Enable femtovg by default, disable Skia by default. This also makes
the clang layer optional. More to be added to the docs soon.
  • Loading branch information
tronical committed Oct 10, 2023
1 parent c282648 commit 48a7dd5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion conf/layer.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ BBFILE_COLLECTIONS += "meta-slint"
BBFILE_PATTERN_meta-slint = "^${LAYERDIR}/"
BBFILE_PRIORITY_meta-slint = "6"

LAYERDEPENDS_meta-slint = "core clang-layer"
LAYERDEPENDS_meta-slint = "core"
LAYERSERIES_COMPAT_meta-slint = "kirkstone langdale mickledore"

RUST_PANIC_STRATEGY = "abort"
5 changes: 2 additions & 3 deletions recipes-slint/slint/slint-cpp-v2.inc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ inherit slint_common
REQUIRED_DISTRO_FEATURES:append:class-target = "opengl"

DEPENDS:append:class-target = " fontconfig libxkbcommon virtual/libgl"
DEPENDS:append:class-target = " clang-cross-${TARGET_ARCH}"

SLINT_REV ?= "master"
SRC_URI = "git://github.com/slint-ui/slint.git;protocol=https;branch=master;rev=${SLINT_REV}"
Expand All @@ -31,15 +30,15 @@ EXTRA_OECMAKE:append:class-target = " -DSLINT_COMPILER=/\$ENV{OECORE_NATIVE_SYSR
PACKAGECONFIG:append:class-native = "slint-compiler"
PACKAGECONFIG:class-nativesdk = "slint-compiler"
PACKAGECONFIG:append:class-target = " \
slint-runtime renderer-skia interpreter \
slint-runtime renderer-femtovg interpreter \
${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'backend-winit-wayland', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'backend-winit-x11', '', d)} \
"

PACKAGECONFIG[slint-compiler] = "-DSLINT_FEATURE_COMPILER=ON, -DSLINT_FEATURE_COMPILER=OFF,"
PACKAGECONFIG[slint-runtime] = "-DSLINT_BUILD_RUNTIME=ON, -DSLINT_BUILD_RUNTIME=OFF,"
PACKAGECONFIG[backend-linuxkms] = "-DSLINT_FEATURE_BACKEND_LINUXKMS=ON, -DSLINT_FEATURE_BACKEND_LINUXKMS=OFF,libdrm virtual/egl virtual/libgbm seatd udev libinput"
PACKAGECONFIG[renderer-skia] = "-DSLINT_FEATURE_RENDERER_SKIA=ON, -DSLINT_FEATURE_RENDERER_SKIA=OFF,"
PACKAGECONFIG[renderer-skia] = "-DSLINT_FEATURE_RENDERER_SKIA=ON, -DSLINT_FEATURE_RENDERER_SKIA=OFF,clang-cross-${TARGET_ARCH}"
PACKAGECONFIG[renderer-femtovg] = "-DSLINT_FEATURE_RENDERER_FEMTOVG=ON, -DSLINT_FEATURE_RENDERER_FEMTOVG=OFF,"
PACKAGECONFIG[interpreter] = "-DSLINT_FEATURE_INTERPRETER=ON, -DSLINT_FEATURE_INTERPRETER=OFF,"
PACKAGECONFIG[backend-winit-wayland] = "-DSLINT_FEATURE_BACKEND_WINIT_WAYLAND=ON, -DSLINT_FEATURE_BACKEND_WINIT_WAYLAND=OFF,wayland"
Expand Down

0 comments on commit 48a7dd5

Please sign in to comment.