mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 11:10:52 +00:00
Updated CMake packaging logic to take FFMPEG_DECODER into account.
This commit is contained in:
parent
24b714ff4b
commit
1796fc9a6f
116
CMakeLists.txt
116
CMakeLists.txt
@ -129,39 +129,62 @@ install(
|
|||||||
|
|
||||||
# install the plugins
|
# install the plugins
|
||||||
if (CMAKE_SYSTEM_NAME MATCHES "Linux")
|
if (CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||||
# linux
|
if (${FFMPEG_DECODER} MATCHES "true")
|
||||||
install(
|
install(
|
||||||
FILES
|
FILES
|
||||||
bin/plugins/libalsaout.so
|
bin/plugins/libalsaout.so
|
||||||
bin/plugins/libpulseout.so
|
bin/plugins/libpulseout.so
|
||||||
bin/plugins/libnullout.so
|
bin/plugins/libnullout.so
|
||||||
bin/plugins/libflacdecoder.so
|
bin/plugins/libffmpegdecoder.so
|
||||||
bin/plugins/libm4adecoder.so
|
bin/plugins/libtaglibreader.so
|
||||||
bin/plugins/libnomaddecoder.so
|
bin/plugins/libserver.so
|
||||||
bin/plugins/liboggdecoder.so
|
bin/plugins/libhttpdatastream.so
|
||||||
bin/plugins/libtaglibreader.so
|
bin/plugins/libstockencoders.so
|
||||||
bin/plugins/libserver.so
|
DESTINATION share/musikcube/plugins)
|
||||||
bin/plugins/libhttpdatastream.so
|
else()
|
||||||
bin/plugins/libstockencoders.so
|
install(
|
||||||
DESTINATION share/musikcube/plugins
|
FILES
|
||||||
)
|
bin/plugins/libalsaout.so
|
||||||
else (CMAKE_SYSTEM_NAME MATCHES "Linux")
|
bin/plugins/libpulseout.so
|
||||||
# macos
|
bin/plugins/libnullout.so
|
||||||
install(
|
bin/plugins/libflacdecoder.so
|
||||||
FILES
|
bin/plugins/libm4adecoder.so
|
||||||
bin/plugins/libcoreaudioout.dylib
|
bin/plugins/libnomaddecoder.so
|
||||||
bin/plugins/libnullout.dylib
|
bin/plugins/liboggdecoder.so
|
||||||
bin/plugins/libflacdecoder.dylib
|
bin/plugins/libtaglibreader.so
|
||||||
bin/plugins/libm4adecoder.dylib
|
bin/plugins/libserver.so
|
||||||
bin/plugins/libnomaddecoder.dylib
|
bin/plugins/libhttpdatastream.so
|
||||||
bin/plugins/liboggdecoder.dylib
|
bin/plugins/libstockencoders.so
|
||||||
bin/plugins/libtaglibreader.dylib
|
DESTINATION share/musikcube/plugins)
|
||||||
bin/plugins/libserver.dylib
|
endif()
|
||||||
bin/plugins/libhttpdatastream.dylib
|
else () # macOS
|
||||||
bin/plugins/libstockencoders.dylib
|
if (${FFMPEG_DECODER} MATCHES "true")
|
||||||
DESTINATION share/musikcube/plugins
|
install(
|
||||||
)
|
FILES
|
||||||
endif (CMAKE_SYSTEM_NAME MATCHES "Linux")
|
bin/plugins/libcoreaudioout.dylib
|
||||||
|
bin/plugins/libnullout.dylib
|
||||||
|
bin/plugins/libffmpegdecoder.dylib
|
||||||
|
bin/plugins/libtaglibreader.dylib
|
||||||
|
bin/plugins/libserver.dylib
|
||||||
|
bin/plugins/libhttpdatastream.dylib
|
||||||
|
bin/plugins/libstockencoders.dylib
|
||||||
|
DESTINATION share/musikcube/plugins)
|
||||||
|
else()
|
||||||
|
install(
|
||||||
|
FILES
|
||||||
|
bin/plugins/libcoreaudioout.dylib
|
||||||
|
bin/plugins/libnullout.dylib
|
||||||
|
bin/plugins/libflacdecoder.dylib
|
||||||
|
bin/plugins/libm4adecoder.dylib
|
||||||
|
bin/plugins/libnomaddecoder.dylib
|
||||||
|
bin/plugins/liboggdecoder.dylib
|
||||||
|
bin/plugins/libtaglibreader.dylib
|
||||||
|
bin/plugins/libserver.dylib
|
||||||
|
bin/plugins/libhttpdatastream.dylib
|
||||||
|
bin/plugins/libstockencoders.dylib
|
||||||
|
DESTINATION share/musikcube/plugins)
|
||||||
|
endif()
|
||||||
|
endif ()
|
||||||
|
|
||||||
file(GLOB sdk_headers "src/core/sdk/*.h")
|
file(GLOB sdk_headers "src/core/sdk/*.h")
|
||||||
file(GLOB themes "src/musikcube/data/themes/*.json")
|
file(GLOB themes "src/musikcube/data/themes/*.json")
|
||||||
@ -215,29 +238,20 @@ if (GENERATE_DEB MATCHES "1")
|
|||||||
set(DEB_MICROHTTPD_VERSION "12")
|
set(DEB_MICROHTTPD_VERSION "12")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
set(DEPENDENCIES "libboost-thread${DEB_BOOST_VERSION}, libboost-system${DEB_BOOST_VERSION}, libboost-filesystem${DEB_BOOST_VERSION}, libboost-date-time${DEB_BOOST_VERSION}, libboost-atomic${DEB_BOOST_VERSION}, libboost-chrono${DEB_BOOST_VERSION}, libmicrohttpd${DEB_MICROHTTPD_VERSION}, libogg0, libvorbis0a, libvorbisfile3, libncursesw5, libasound2, libpulse0, pulseaudio, libmp3lame0,")
|
||||||
|
|
||||||
|
if (${FFMPEG_DECODER} MATCHES "true")
|
||||||
|
set(DEPENDENCIES "${DEPENDENCIES} libavcodec-extra, libavutil55, libavformat57, libswresample2")
|
||||||
|
else()
|
||||||
|
set(DEPENDENCIES "${DEPENDENCIES} libflac8, libfaad2")
|
||||||
|
endif()
|
||||||
|
|
||||||
set(CPACK_GENERATOR "DEB")
|
set(CPACK_GENERATOR "DEB")
|
||||||
set(CPACK_PACKAGE_DESCRIPTION "musikcube, a terminal-based music player and library")
|
set(CPACK_PACKAGE_DESCRIPTION "musikcube, a terminal-based music player and library")
|
||||||
set(CPACK_PACKAGE_VERSION_MAJOR "${musikcube_VERSION_MAJOR}")
|
set(CPACK_PACKAGE_VERSION_MAJOR "${musikcube_VERSION_MAJOR}")
|
||||||
set(CPACK_PACKAGE_VERSION_MINOR "${musikcube_VERSION_MINOR}")
|
set(CPACK_PACKAGE_VERSION_MINOR "${musikcube_VERSION_MINOR}")
|
||||||
set(CPACK_PACKAGE_VERSION_PATCH "${musikcube_VERSION_PATCH}")
|
set(CPACK_PACKAGE_VERSION_PATCH "${musikcube_VERSION_PATCH}")
|
||||||
set(CPACK_DEBIAN_PACKAGE_DEPENDS
|
set(CPACK_DEBIAN_PACKAGE_DEPENDS ${DEPENDENCIES})
|
||||||
"libboost-thread${DEB_BOOST_VERSION},
|
|
||||||
libboost-system${DEB_BOOST_VERSION},
|
|
||||||
libboost-filesystem${DEB_BOOST_VERSION},
|
|
||||||
libboost-date-time${DEB_BOOST_VERSION},
|
|
||||||
libboost-atomic${DEB_BOOST_VERSION},
|
|
||||||
libboost-chrono${DEB_BOOST_VERSION},
|
|
||||||
libmicrohttpd${DEB_MICROHTTPD_VERSION},
|
|
||||||
libogg0,
|
|
||||||
libvorbis0a,
|
|
||||||
libvorbisfile3,
|
|
||||||
libflac8,
|
|
||||||
libfaad2,
|
|
||||||
libncursesw5,
|
|
||||||
libasound2,
|
|
||||||
libpulse0,
|
|
||||||
pulseaudio,
|
|
||||||
libmp3lame0")
|
|
||||||
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "casey langen")
|
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "casey langen")
|
||||||
set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE ${DEB_ARCHITECTURE})
|
set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE ${DEB_ARCHITECTURE})
|
||||||
set(CPACK_PACKAGE_FILE_NAME "musikcube_${musikcube_VERSION}_${DEB_DISTRO}_${DEB_ARCHITECTURE}")
|
set(CPACK_PACKAGE_FILE_NAME "musikcube_${musikcube_VERSION}_${DEB_DISTRO}_${DEB_ARCHITECTURE}")
|
||||||
|
Loading…
Reference in New Issue
Block a user