Add Linux port: GTK 4 GUI with MuPDF rendering engine#5631
Open
iqbaljunaid wants to merge 3 commits into
Open
Conversation
Phase 1 of the Linux port. Builds MuPDF and all dependencies from source using Meson/Ninja on x86_64 Linux. - Meson build system with all 14 external libraries compiled from source - MuPDF renders PDF, XPS, SVG, CBZ, IMG, HTML, EPUB formats - Font resources embedded via ld -r -b binary (HAVE_OBJCOPY) - FreeType uses MuPDF's slim module config - CI workflow for automated builds and GitHub Releases - Packaging script producing distributable tar.gz + AppImage support
- main_gtk.c: Full PDF viewer with GTK 4 header bar, page navigation, zoom controls, keyboard shortcuts, drag-and-drop, fullscreen support - Renders pages via MuPDF to Cairo surfaces - Handles file opening via GApplication open signal - meson.build: Add sumatrapdf GUI target with gtk4 dependency, rename old test binary to test-mupdf - CI: Add libgtk-4-dev to build dependencies
|
Wow! Looks simpler than expected. Thank you! Relattion to issue:
|
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.
Summary
This PR adds a native Linux port of SumatraPDF using GTK 4 for the UI and MuPDF for PDF rendering.
What's included
Build instructions
Files added
linux/src/main_gtk.c— GTK 4 GUI applicationlinux/src/meson.build— Build targetslinux/ext/*/meson.build— Build files for each dependencylinux/dist/— Packaging files (.desktop, metainfo, package.sh).github/workflows/linux-package.yml— CI/CDmeson.build,meson.options— Root build configurationNo existing Windows code is modified.