libre.patch 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. --- bibletime-2.11.2.orig/CMakeLists.txt 2018-06-18 15:07:00.000000000 -0500
  2. +++ bibletime-2.11.2/CMakeLists.txt 2020-04-10 12:50:57.857672342 -0500
  3. @@ -156,21 +156,10 @@
  4. ADD_DEFINITIONS("-DBT_MOBILE")
  5. ENDIF()
  6. -FIND_PACKAGE(Qt5WebEngine QUIET)
  7. -IF(NOT Qt5WebEngine_FOUND)
  8. MESSAGE(STATUS "Using Qt WebKit")
  9. FIND_PACKAGE(Qt5WebKit REQUIRED)
  10. FIND_PACKAGE(Qt5WebKitWidgets REQUIRED)
  11. SET(USEWEBENGINE OFF)
  12. -ELSE()
  13. - MESSAGE(STATUS "Using Qt WebEngine")
  14. - FIND_PACKAGE(Qt5WebEngineWidgets REQUIRED)
  15. - SET(USEWEBENGINE ON)
  16. -ENDIF()
  17. -
  18. -IF(USEWEBENGINE)
  19. - ADD_DEFINITIONS("-DUSEWEBENGINE")
  20. -ENDIF()
  21. # Define $bibletime_SOURCES
  22. INCLUDE("${CMAKE_CURRENT_SOURCE_DIR}/cmake/BTSourceFileList.cmake")
  23. @@ -232,8 +221,6 @@
  24. IF(${BIBLETIME_FRONTEND} STREQUAL "MOBILE")
  25. TARGET_LINK_LIBRARIES("bibletime" Qt5::Widgets Qt5::WebKitWidgets Qt5::Qml Qt5::Quick Qt5::Xml Qt5::Network Qt5::PrintSupport Qt5::Svg)
  26. -ELSEIF(USEWEBENGINE)
  27. - TARGET_LINK_LIBRARIES("bibletime" Qt5::Widgets Qt5::WebEngine Qt5::WebEngineWidgets Qt5::WebChannel Qt5::Xml Qt5::Network Qt5::PrintSupport Qt5::Svg)
  28. ELSE()
  29. TARGET_LINK_LIBRARIES("bibletime" Qt5::Widgets Qt5::WebKit Qt5::WebKitWidgets Qt5::Xml Qt5::Network Qt5::PrintSupport Qt5::Svg)
  30. ENDIF()
  31. @@ -288,13 +275,8 @@
  32. DESTINATION "${BT_SHARE_PATH}/bibletime/display-templates/")
  33. -IF(USEWEBENGINE)
  34. - INSTALL(FILES "src/frontend/display/btwebengine.js"
  35. - DESTINATION "${BT_SHARE_PATH}/bibletime/javascript/")
  36. -ELSE()
  37. - INSTALL(FILES "src/frontend/display/bthtml.js"
  38. - DESTINATION "${BT_SHARE_PATH}/bibletime/javascript/")
  39. -ENDIF()
  40. +INSTALL(FILES "src/frontend/display/bthtml.js"
  41. + DESTINATION "${BT_SHARE_PATH}/bibletime/javascript/")
  42. INSTALL(FILES "docs/license.html"
  43. DESTINATION "${BT_SHARE_PATH}/bibletime/license/")