mirror of
https://github.com/clangen/musikcube.git
synced 2024-12-27 03:14:30 +00:00
Fix add_plugin().
This commit is contained in:
parent
c59b130569
commit
67077638fe
@ -1,7 +1,7 @@
|
||||
# libopenmpt detection
|
||||
find_library(LIBOPENMPT NAMES openmpt)
|
||||
if (NOT "${LIBOPENMPT}" STREQUAL "LIBOPENMPT-NOTFOUND")
|
||||
add_plugin(libopenmptdecoder)
|
||||
add_plugin("src/plugins/libopenmptdecoder" "openmptdecoder")
|
||||
endif()
|
||||
|
||||
# systemd / MPRIS detection
|
||||
@ -18,31 +18,31 @@ if (NOT ENABLE_MPRIS MATCHES "false")
|
||||
endif()
|
||||
|
||||
if (CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||
add_subdirectory(src/plugins/alsaout)
|
||||
add_subdirectory(src/plugins/pulseout)
|
||||
add_plugin("src/plugins/alsaout" "alsaout")
|
||||
add_plugin("src/plugins/pulseout" "pulseout")
|
||||
if (${ENABLE_PIPEWIRE} MATCHES "true")
|
||||
add_plugin(pipewireout)
|
||||
add_plugin("src/plugins/pipewireout" "pipewireout")
|
||||
endif()
|
||||
if (${ENABLE_MPRIS} MATCHES "true")
|
||||
add_plugin(mpris)
|
||||
add_plugin("src/plugins/mpris" "mpris")
|
||||
endif()
|
||||
if (${ENABLE_SNDIO} MATCHES "true")
|
||||
add_plugin(sndioout)
|
||||
add_plugin("src/plugins/sndioout" "sndioout")
|
||||
endif()
|
||||
elseif (CMAKE_SYSTEM_NAME MATCHES "OpenBSD")
|
||||
add_subdirectory(src/plugins/sndioout)
|
||||
if (${ENABLE_PULSEAUDIO} MATCHES "true")
|
||||
add_plugin(pulseout)
|
||||
add_plugin("src/plugins/pulseout" "pulseout")
|
||||
endif()
|
||||
elseif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
|
||||
add_subdirectory(src/plugins/sndioout)
|
||||
if (${ENABLE_PULSEAUDIO} MATCHES "true")
|
||||
add_plugin(pulseout)
|
||||
add_plugin("src/plugins/pulseout" "pulseout")
|
||||
endif()
|
||||
if (${ENABLE_ALSA} MATCHES "true")
|
||||
add_plugin(alsaout)
|
||||
add_plugin("src/plugins/alsaout" "alsaout")
|
||||
endif()
|
||||
elseif (CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
||||
add_plugin(coreaudioout)
|
||||
add_plugin(macosmediakeys)
|
||||
add_plugin("src/plugins/coreaudioout" "coreaudioout")
|
||||
add_plugin("src/plugins/macosmediakeys" "macosmediakeys")
|
||||
endif()
|
@ -1,6 +1,7 @@
|
||||
function(add_plugin plugin_name)
|
||||
message(STATUS "[add-plugin] adding '${plugin_name}' to musikcube and musikcubed targets")
|
||||
add_subdirectory("src/plugins/${plugin_name}")
|
||||
add_dependencies(musikcube plugin_name)
|
||||
add_dependencies(musikcubed plugin_name)
|
||||
endfunction(add_plugin)
|
||||
macro(add_plugin plugin_dir plugin_name)
|
||||
message(STATUS "[add-plugin] adding '${plugin_name}' at path '${plugin_dir}")
|
||||
add_subdirectory(${plugin_dir})
|
||||
add_dependencies(musikcube ${plugin_name})
|
||||
add_dependencies(musikcubed ${plugin_name})
|
||||
add_dependencies(core_c_demo ${plugin_name})
|
||||
endmacro(add_plugin)
|
@ -77,14 +77,14 @@ add_subdirectory(src/musikcubed)
|
||||
add_dependencies(musikcube musikcore)
|
||||
add_dependencies(musikcubed musikcore)
|
||||
|
||||
add_plugin(taglib_plugin)
|
||||
add_plugin(nullout)
|
||||
add_plugin(server)
|
||||
add_plugin(httpdatastream)
|
||||
add_plugin(stockencoders)
|
||||
add_plugin(supereqdsp)
|
||||
add_plugin(gmedecoder)
|
||||
add_plugin(ffmpegdecoder)
|
||||
add_plugin("src/plugins/taglib_plugin" "taglibreader")
|
||||
add_plugin("src/plugins/nullout" "nullout")
|
||||
add_plugin("src/plugins/server" "server")
|
||||
add_plugin("src/plugins/httpdatastream" "httpdatastream")
|
||||
add_plugin("src/plugins/stockencoders" "stockencoders")
|
||||
add_plugin("src/plugins/supereqdsp" "supereqdsp")
|
||||
add_plugin("src/plugins/gmedecoder" "gmedecoder")
|
||||
add_plugin("src/plugins/ffmpegdecoder" "ffmpegdecoder")
|
||||
|
||||
include(AddOsSpecificPlugins)
|
||||
include(InstallFiles)
|
||||
|
Loading…
Reference in New Issue
Block a user