mirror of
https://invent.kde.org/graphics/okular
synced 2024-11-05 18:34:53 +00:00
fcf148b75b
Summary: libepub can't handle whitespace url encodings. This is why epub documents containing whitespaces urls aren't displayed correctly. Since libepub doesn't seem to be maintained anymore, it might be better to fix this issue here. BUG: 334711 Test Plan: Example epubs are in the ticket. Reviewers: #okular, aacid Reviewed By: #okular, aacid Subscribers: ngraham, aacid, okular-devel Tags: #okular Differential Revision: https://phabricator.kde.org/D14310
37 lines
1 KiB
CMake
37 lines
1 KiB
CMake
remove_definitions(-DTRANSLATION_DOMAIN="okular")
|
|
add_definitions(-DTRANSLATION_DOMAIN="okular_epub")
|
|
|
|
add_subdirectory(data)
|
|
|
|
include_directories(
|
|
${EPUB_INCLUDE_DIR}
|
|
)
|
|
|
|
|
|
########### next target ###############
|
|
|
|
set(okularGenerator_epub_PART_SRCS
|
|
converter.cpp
|
|
epubdocument.cpp
|
|
generator_epub.cpp
|
|
)
|
|
|
|
okular_add_generator(okularGenerator_epub ${okularGenerator_epub_PART_SRCS})
|
|
|
|
target_link_libraries(okularGenerator_epub okularcore ${EPUB_LIBRARIES} KF5::I18n Qt5::Widgets Qt5::Xml)
|
|
|
|
|
|
########### autotests ###############
|
|
|
|
add_definitions( -DKDESRCDIR="${CMAKE_CURRENT_SOURCE_DIR}/" )
|
|
ecm_add_test(autotests/epubgeneratortest.cpp
|
|
TEST_NAME "epubgeneratortest"
|
|
LINK_LIBRARIES Qt5::Test KF5::CoreAddons okularcore
|
|
)
|
|
|
|
|
|
########### install files ###############
|
|
install( FILES okularEPub.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} )
|
|
install( PROGRAMS okularApplication_epub.desktop org.kde.mobile.okular_epub.desktop DESTINATION ${KDE_INSTALL_APPDIR} )
|
|
install( FILES org.kde.okular-epub.metainfo.xml DESTINATION ${KDE_INSTALL_METAINFODIR} )
|
|
|