(Haiku) Added support for the PDF viewer

This commit is contained in:
Leon Styhre 2024-08-22 17:32:22 +02:00
parent 7992dbcf01
commit 51cb73b987
2 changed files with 6 additions and 15 deletions

View file

@ -715,26 +715,19 @@ if(COMPILE_LOCALIZATIONS)
add_subdirectory(locale) add_subdirectory(locale)
endif() endif()
if(NOT HAIKU) add_subdirectory(es-pdf-converter)
add_subdirectory(es-pdf-converter)
endif()
add_subdirectory(external) add_subdirectory(external)
add_subdirectory(es-core) add_subdirectory(es-core)
add_subdirectory(es-app) add_subdirectory(es-app)
# Make sure that es-pdf-convert is built first, and then that rlottie is built before es-core. # Make sure that es-pdf-convert is built first, and then that rlottie is built before es-core.
# Also set lottie2gif to not be built. add_dependencies(lunasvg es-pdf-convert)
if(NOT HAIKU)
add_dependencies(lunasvg es-pdf-convert)
endif()
if(COMPILE_LOCALIZATIONS) if(COMPILE_LOCALIZATIONS)
if(NOT HAIKU)
add_dependencies(es-pdf-convert localization) add_dependencies(es-pdf-convert localization)
else()
add_dependencies(lunasvg localization)
endif()
endif() endif()
add_dependencies(es-core rlottie) add_dependencies(es-core rlottie)
# Set lottie2gif to not be built.
set_target_properties(lottie2gif PROPERTIES EXCLUDE_FROM_ALL 1 EXCLUDE_FROM_DEFAULT_BUILD 1) set_target_properties(lottie2gif PROPERTIES EXCLUDE_FROM_ALL 1 EXCLUDE_FROM_DEFAULT_BUILD 1)

View file

@ -273,9 +273,7 @@ elseif(APPLE)
install(DIRECTORY ${CMAKE_SOURCE_DIR}/licenses DESTINATION ../Resources) install(DIRECTORY ${CMAKE_SOURCE_DIR}/licenses DESTINATION ../Resources)
elseif(NOT ANDROID) elseif(NOT ANDROID)
install(TARGETS es-de RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin) install(TARGETS es-de RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
if(NOT HAIKU)
install(TARGETS es-pdf-convert RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin) install(TARGETS es-pdf-convert RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
endif()
if(CMAKE_SYSTEM_NAME MATCHES Linux OR CMAKE_SYSTEM_NAME MATCHES FreeBSD) if(CMAKE_SYSTEM_NAME MATCHES Linux OR CMAKE_SYSTEM_NAME MATCHES FreeBSD)
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/assets/es-de.6.gz install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/assets/es-de.6.gz
DESTINATION ${CMAKE_INSTALL_PREFIX}/share/man/man6) DESTINATION ${CMAKE_INSTALL_PREFIX}/share/man/man6)