CompleteBundleWin.cmake.in 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  1. set(PROJECT_SOURCE_DIR @PROJECT_SOURCE_DIR@)
  2. execute_process(COMMAND @QTROOT@/bin/windeployqt.exe --verbose 9 --qmldir @SOURCE_ROOT@/src/ui ${CMAKE_INSTALL_PREFIX}/JellyfinMediaPlayer.exe)
  3. # on windows windeployqt doesnt install non qt libraries, let cmake do that
  4. # include(BundleUtilities)
  5. foreach(d @CMAKE_FIND_ROOT_PATH@)
  6. list(APPEND SEARCHDIRS ${d}/bin)
  7. list(APPEND SEARCHDIRS ${d}/lib)
  8. endforeach()
  9. get_filename_component(CEC_DIR @CEC_LIBRARY@ DIRECTORY)
  10. list(APPEND SEARCHDIRS ${CEC_DIR})
  11. # fixup_bundle("${CMAKE_INSTALL_PREFIX}/JellyfinMediaPlayer.exe" "" "${SEARCHDIRS}")
  12. #install(PROGRAMS ${VCREDIST_DIR}/vcredist_msvc2017_x64.exe DESTINATION .)
  13. file(INSTALL @MPV_LIBRARY@ DESTINATION "${CMAKE_INSTALL_PREFIX}")
  14. if(@DO_ENABLE_ANGLE_DEP@)
  15. message(STATUS "Deploying separate ANGLE deps")
  16. file(INSTALL @DEPENDENCY_CACHE_DIR@/libEGL.dll @DEPENDENCY_CACHE_DIR@/libGLESv2.dll @DEPENDENCY_CACHE_DIR@/d3dcompiler_47.dll DESTINATION ${CMAKE_INSTALL_PREFIX})
  17. else()
  18. message(STATUS "Not using separate ANGLE deps")
  19. endif()
  20. if(@DO_SIGN@)
  21. file(GLOB_RECURSE EXES ${CMAKE_INSTALL_PREFIX}/*.exe ${CMAKE_INSTALL_PREFIX}/*.dll)
  22. set(ENV{errorlevel} 1)
  23. foreach(e ${EXES})
  24. message("-- Signing: ${PROJECT_SOURCE_DIR}/scripts/WindowsSign.cmd ${e}")
  25. execute_process(COMMAND ${PROJECT_SOURCE_DIR}/scripts/WindowsSign.cmd "${e}" RESULT_VARIABLE RES)
  26. endforeach()
  27. endif()