mirror of
https://github.com/jellyfin/jellyfin-desktop.git
synced 2026-10-26 16:45:24 +00:00
- Fixes build and package for at least Ubuntu 24.04 - Defaulted to building and statically linking mpvqt as most platforms lack packages for it. - Workaround mpvqt requiring qt>=6.5 for wayland support with a few workarounds when statically building. - Additionally, default to xcb on qt<6.5 due to mpvqt using qt>=6.5 fetures for wayland. Wayland can be forced, but seems to give black video.
48 lines
1.4 KiB
CMake
48 lines
1.4 KiB
CMake
find_package(PkgConfig)
|
|
|
|
include(FetchDependencies)
|
|
|
|
if(DEPENDENCY_TOKEN)
|
|
set(DEPENDCY_FOLDER "")
|
|
if(OPENELEC)
|
|
set(DEPENDCY_FOLDER plexmediaplayer-openelec-codecs)
|
|
set(DEPS_BUILD_NUMBER 90)
|
|
elseif(APPLE OR WIN32)
|
|
set(DEPENDCY_FOLDER plexmediaplayer-dependencies-codecs)
|
|
set(DEPS_BUILD_NUMBER 260)
|
|
endif()
|
|
if(NOT (DEPENDCY_FOLDER STREQUAL ""))
|
|
download_deps(
|
|
"${DEPENDCY_FOLDER}"
|
|
ARTIFACTNAME konvergo-codecs-depends
|
|
BUILD_NUMBER ${DEPS_BUILD_NUMBER}
|
|
DIRECTORY dir
|
|
DEPHASH_VAR DEPS_HASH
|
|
DYLIB_SCRIPT_PATH ${PROJECT_SOURCE_DIR}/scripts/fix-install-names.py
|
|
TOKEN ${DEPENDENCY_TOKEN}
|
|
)
|
|
message("dependencies are: ${dir}")
|
|
set(DEFAULT_ROOT ${dir})
|
|
endif()
|
|
endif(DEPENDENCY_TOKEN)
|
|
|
|
set(DEPENDENCY_ROOT ${DEFAULT_ROOT} CACHE PATH "Path where the deps are located")
|
|
|
|
if(IS_DIRECTORY ${DEPENDENCY_ROOT})
|
|
message(STATUS "Going to use bundled deps in directory: ${DEPENDENCY_ROOT}")
|
|
list(APPEND CMAKE_FIND_ROOT_PATH ${DEPENDENCY_ROOT})
|
|
list(APPEND CMAKE_PREFIX_PATH ${DEPENDENCY_ROOT})
|
|
set(ENV{PKG_CONFIG_LIBDIR} ${CMAKE_FIND_ROOT_PATH}/lib/pkgconfig)
|
|
set(PKG_CONFIG_USE_CMAKE_PREFIX_PATH TRUE)
|
|
include_directories(${DEPENDENCY_ROOT}/include)
|
|
else(IS_DIRECTORY ${DEPENDENCY_ROOT})
|
|
message(STATUS "Not using bundled deps")
|
|
endif(IS_DIRECTORY ${DEPENDENCY_ROOT})
|
|
|
|
find_package(Threads REQUIRED)
|
|
find_package(PythonInterp REQUIRED)
|
|
|
|
if(NOT USE_STATIC_MPVQT)
|
|
find_package(MpvQt REQUIRED)
|
|
endif()
|