Add experimental Kotlin/Native Linux backend (X11)#1139
Draft
kdroidFilter wants to merge 4 commits intoJetBrains:masterfrom
Draft
Add experimental Kotlin/Native Linux backend (X11)#1139kdroidFilter wants to merge 4 commits intoJetBrains:masterfrom
kdroidFilter wants to merge 4 commits intoJetBrains:masterfrom
Conversation
- Add OpenGL (GLX), Vulkan (X11 presenter) and software redrawers with fallbacks - Wire X11 cinterop/linker opts and enable native Linux by default on Linux hosts - Add Linux system theme detection + clipboard/URI best-effort - Update SkiaMultiplatformSample to run as native Linux executable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR introduces an experimental Kotlin/Native Linux backend based on X11, allowing Skiko to run natively on Linux without relying on AWT or the JVM.
The main goal is to establish a minimal, maintainable native Linux foundation aligned with Skiko’s existing architecture, serving as a solid base for future Linux backends such as Wayland or EGL.
What’s Included
X11 Window Host
X11SkikoWindow
Linux
SkiaLayerImplementationneedRenderand redraw integrationupdate()and replay indraw()Native Rendering Backends with Automatic Fallback
XPutImageas a fallbackBuild and Toolchain Wiring
linuxX64andlinuxArm64autoon Linux hosts-ldl)__libc_single_threadedstub to unblock Kotlin/Native toolchain compatibilityLinux Platform Utilities
Sample Updates
runNativeGradle taskSKIKO_RENDER_APIselection for testingHow to Test (Linux)
Dependencies (Debian / Ubuntu)
Run
cd samples/SkiaMultiplatformSample ./gradlew runNativeNotes / Scope
Roadmap (Out of Scope for This PR)