Skip to content

Commit c0d0c5f

Browse files
committed
Add support for renderer-software in PACKAGECONFIG and enable it by default
1 parent 6c660ca commit c0d0c5f

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,13 @@ set `PREFERRED_VERSION_slint-cpp = "x.x.x"` and `PREFERRED_VERSION_slint-cpp-nat
2929
For git builds and builds from Slint version 1.3 onwards, certain features are
3030
configurable via `PACKAGECONFIG`.
3131

32-
| Feature Name | Description | Enabled by Default |
33-
|--------------------|-------------------------------------|--------------------|
34-
| `renderer-skia` | Skia OpenGL renderer | No |
35-
| `renderer-femtovg` | Lightweight FemtoVG OpenGL renderer | Yes |
36-
| `backend-linuxkms` | Backend for rendering via KMS/DRM | No |
37-
| `interpreter` | C++ API for Slint Interpreter | Yes |
32+
| Feature Name | Description | Enabled by Default |
33+
|---------------------|-------------------------------------|--------------------|
34+
| `renderer-skia` | Skia OpenGL renderer | No |
35+
| `renderer-femtovg` | Lightweight FemtoVG OpenGL renderer | Yes |
36+
| `backend-linuxkms` | Backend for rendering via KMS/DRM | No |
37+
| `renderer-software` | Slint softwware renderer | Yes |
38+
| `interpreter` | C++ API for Slint Interpreter | Yes |
3839

3940
Set the `PACKAGECONFIG:pn-slint-cpp` variable in your `conf/local.conf` to tweak.
4041
For example, to disable the FemtoVG renderer, enable Skia, and the linuxkms

recipes-slint/slint/slint-cpp-v2.inc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ EXTRA_OECMAKE:append:class-target = " -DSLINT_COMPILER=/\$ENV{OECORE_NATIVE_SYSR
2929
PACKAGECONFIG:append:class-native = "slint-compiler"
3030
PACKAGECONFIG:class-nativesdk = "slint-compiler"
3131
PACKAGECONFIG:append:class-target = " \
32-
slint-runtime renderer-femtovg interpreter \
32+
slint-runtime renderer-femtovg renderer-software interpreter \
3333
${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'backend-winit-wayland', '', d)} \
3434
${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'backend-winit-x11', '', d)} \
3535
"
@@ -39,6 +39,7 @@ PACKAGECONFIG[slint-runtime] = "-DSLINT_BUILD_RUNTIME=ON, -DSLINT_BUILD_RUNTIME=
3939
PACKAGECONFIG[backend-linuxkms] = "-DSLINT_FEATURE_BACKEND_LINUXKMS=ON, -DSLINT_FEATURE_BACKEND_LINUXKMS=OFF,libdrm virtual/egl virtual/libgbm seatd udev libinput"
4040
PACKAGECONFIG[renderer-skia] = "-DSLINT_FEATURE_RENDERER_SKIA=ON, -DSLINT_FEATURE_RENDERER_SKIA=OFF,clang-cross-${TARGET_ARCH}"
4141
PACKAGECONFIG[renderer-femtovg] = "-DSLINT_FEATURE_RENDERER_FEMTOVG=ON, -DSLINT_FEATURE_RENDERER_FEMTOVG=OFF,"
42+
PACKAGECONFIG[renderer-software] = "-DSLINT_FEATURE_RENDERER_SOFTWARE=ON, -DSLINT_FEATURE_RENDERER_SOFTWARE=OFF,"
4243
PACKAGECONFIG[interpreter] = "-DSLINT_FEATURE_INTERPRETER=ON, -DSLINT_FEATURE_INTERPRETER=OFF,"
4344
PACKAGECONFIG[backend-winit-wayland] = "-DSLINT_FEATURE_BACKEND_WINIT_WAYLAND=ON, -DSLINT_FEATURE_BACKEND_WINIT_WAYLAND=OFF,wayland"
4445
PACKAGECONFIG[backend-winit-x11] = "-DSLINT_FEATURE_BACKEND_WINIT_X11=ON, -DSLINT_FEATURE_BACKEND_WINIT_X11=OFF,libxcb"

0 commit comments

Comments
 (0)