diff options
| author | Victor Kareh <[email protected]> | 2026-05-14 14:16:44 -0400 |
|---|---|---|
| committer | Luke from DC <[email protected]> | 2026-07-12 20:34:07 +0000 |
| commit | 789af2fb86aa6fbb5ec42370bc672afb6a84478e (patch) | |
| tree | 056929f5217349b0400ee9a981b1124cd52c55b9 | |
| parent | 1a5c28010afd483f7d30261744e80b15e29481ba (diff) | |
| download | atril-789af2fb86aa6fbb5ec42370bc672afb6a84478e.tar.bz2 atril-789af2fb86aa6fbb5ec42370bc672afb6a84478e.tar.xz | |
epub: Add libgepub-0.7 build dependency
Add libgepub as a required dependency for the EPUB backend in both meson
and autotools build systems. No source code changes yet, but this
prepares for replacing the hand-rolled EPUB parsing with libgepub.
Assisted-by: OpenCode:claude-opus-4-6
| -rw-r--r-- | backend/epub/meson.build | 1 | ||||
| -rw-r--r-- | configure.ac | 2 | ||||
| -rw-r--r-- | libview/meson.build | 1 | ||||
| -rw-r--r-- | meson.build | 3 |
4 files changed, 5 insertions, 2 deletions
diff --git a/backend/epub/meson.build b/backend/epub/meson.build index 7249286b..003ab400 100644 --- a/backend/epub/meson.build +++ b/backend/epub/meson.build @@ -11,6 +11,7 @@ epub_deps = [ gtk, xml, minizip_dep, + libgepub, ] shared_module( diff --git a/configure.ac b/configure.ac index 4b1afe8f..8c3c9dc1 100644 --- a/configure.ac +++ b/configure.ac @@ -633,7 +633,7 @@ if test "x$enable_epub" = "xyes"; then [webkit_pkg=webkit2gtk-4.0])]) PKG_CHECK_MODULES(EPUB, $webkit_pkg >= $WEBKIT_REQUIRED \ - libxml-2.0 >= $LIBXML_REQUIRED zlib,have_webkit=yes,have_webkit=no) + libxml-2.0 >= $LIBXML_REQUIRED zlib libgepub-0.7,have_webkit=yes,have_webkit=no) if test "x$have_webkit" = "xyes"; then AC_DEFINE([ENABLE_EPUB], [1], [Enable support for ePub documents.]) diff --git a/libview/meson.build b/libview/meson.build index a8b7067d..876a0260 100644 --- a/libview/meson.build +++ b/libview/meson.build @@ -82,6 +82,7 @@ libview_deps = [ if webkit.found() libview_deps += webkit + libview_deps += libgepub endif libview = library( diff --git a/meson.build b/meson.build index 779e08aa..ace6af5b 100644 --- a/meson.build +++ b/meson.build @@ -150,7 +150,8 @@ thumbnailer_mime_types = atril_mime_types mathjax_directory = 'not enabled' # EPUB backend webkit = dependency('webkit2gtk-4.1', version: '>= 2.4.3', required: get_option('epub')) -if webkit.found() +libgepub = dependency('libgepub-0.7', required: get_option('epub')) +if webkit.found() and libgepub.found() backend_subdirs += 'epub' atril_mime_types += 'application/epub+zip;' |
