diff --git a/CMakeLists.txt b/CMakeLists.txt index a3e47562c..6c59f6cfd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -269,6 +269,7 @@ add_subdirectory(3rdparty/universalchardet) add_subdirectory(tests) add_subdirectory(dist) add_subdirectory(tools/ultimate_lyrics_parser) +add_subdirectory(scripts) option(WITH_DEBIAN OFF) if(WITH_DEBIAN) diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt new file mode 100644 index 000000000..341e90043 --- /dev/null +++ b/scripts/CMakeLists.txt @@ -0,0 +1,15 @@ +function(install_script_files scriptname) + if(APPLE) + foreach(file ${ARGN}) + configure_file( + "${file}" + "${CMAKE_BINARY_DIR}/clementine.app/Contents/Resources/scripts/${scriptname}/${file}" + COPY_ONLY + ) + endforeach(file) + else(APPLE) + install(FILES ${ARGN} DESTINATION ${CMAKE_INSTALL_PREFIX}/share/clementine/scripts/${scriptname}/) + endif(APPLE) +endfunction(install_script_files) + +add_subdirectory(digitallyimported-radio) diff --git a/scripts/digitallyimported-radio/CMakeLists.txt b/scripts/digitallyimported-radio/CMakeLists.txt new file mode 100644 index 000000000..f4729b852 --- /dev/null +++ b/scripts/digitallyimported-radio/CMakeLists.txt @@ -0,0 +1,12 @@ +install_script_files(digitallyimported-radio + diservice.py + icon.png + icon-sky.png + icon-small.png + main.py + script.ini + servicebase.py + settingsdialog.py + settingsdialog.ui + skyservice.py +)