Merge pull request #7075 from knaerzche/wayland

Enable wayland build for all projects and devices
This commit is contained in:
Frank Hartung 2022-11-01 18:40:57 +01:00 committed by GitHub
commit c253839275
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 0 deletions

View File

@ -50,6 +50,7 @@ configure_package() {
-DAPP_RENDER_SYSTEM=gl" -DAPP_RENDER_SYSTEM=gl"
elif [ "${DISPLAYSERVER}" = "wl" ]; then elif [ "${DISPLAYSERVER}" = "wl" ]; then
PKG_DEPENDS_TARGET+=" wayland waylandpp" PKG_DEPENDS_TARGET+=" wayland waylandpp"
PKG_PATCH_DIRS+=" wayland"
CFLAGS+=" -DEGL_NO_X11" CFLAGS+=" -DEGL_NO_X11"
CXXFLAGS+=" -DEGL_NO_X11" CXXFLAGS+=" -DEGL_NO_X11"
KODI_PLATFORM="-DCORE_PLATFORM_NAME=wayland \ KODI_PLATFORM="-DCORE_PLATFORM_NAME=wayland \

View File

@ -10,5 +10,8 @@ if [ ! -z "$(lsmod | grep 'nvidia')" ]; then
SWAY_GPU_ARGS="--unsupported-gpu" SWAY_GPU_ARGS="--unsupported-gpu"
fi fi
# start sway, even if no input devices are connected
export WLR_LIBINPUT_NO_DEVICES=1
logger -t Sway "### Starting Sway with -V ${SWAY_GPU_ARGS} ${SWAY_DAEMON_ARGS}" logger -t Sway "### Starting Sway with -V ${SWAY_GPU_ARGS} ${SWAY_DAEMON_ARGS}"
/usr/bin/sway -V ${SWAY_GPU_ARGS} ${SWAY_DAEMON_ARGS} > ${SWAY_LOG_FILE} 2>&1 /usr/bin/sway -V ${SWAY_GPU_ARGS} ${SWAY_DAEMON_ARGS} > ${SWAY_LOG_FILE} 2>&1