diff options
| -rw-r--r-- | CMakeLists.txt | 1 | ||||
| -rw-r--r-- | README | 3 | ||||
| -rw-r--r-- | README.RUS | 1 | ||||
| -rw-r--r-- | src/plugins/General/CMakeLists.txt | 5 | ||||
| -rw-r--r-- | src/plugins/General/streambrowser/CMakeLists.txt | 68 |
5 files changed, 77 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 4d2b9d62c..9675a55c4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -170,6 +170,7 @@ PRINT_SUMMARY ("File operations ..................." USE_FILEOPS 1) PRINT_SUMMARY ("Cover manager ....................." USE_COVER 1) PRINT_SUMMARY ("KDE4 notifications support ........" USE_KDENOTIFY 1) PRINT_SUMMARY ("Audio converter ..................." USE_CONVERTER TAGLIB_FOUND) +PRINT_SUMMARY ("Stream browser ...................." USE_SB 1) MESSAGE("") MESSAGE("File Dialogs:") @@ -53,6 +53,7 @@ Other features: - ReplayGain support - Last.fm/Libre.fm scrobbler - CDDB support +- stream browser Requirements: - OS GNU Linux @@ -109,7 +110,7 @@ Available options: - USE_SRC, USE_BS2B, USE_LADSPA, USE_CROSSFADE, USE_STEREO (effects); - USE_ANALYZER, USE_PROJECTM (visualization); - USE_MPRIS, USE_SCROBBLER, USE_STATICON, USE_NOTIFIER, USE_LYRICS, USE_HAL, USE_HOTKEY, USE_FILEOPS, USE_COVER, - USE_KDENOTIFY, USE_UDISKS, USE_CONVERTER (general plugins); + USE_KDENOTIFY, USE_UDISKS, USE_CONVERTER, USE_SB (general plugins); - USE_QMMP_DIALOG (file dialog); - USE_ENCA (automatic charset detection); - USE_SKINNED (standard skinned UI) diff --git a/README.RUS b/README.RUS index 9f7f60c18..056811e1b 100644 --- a/README.RUS +++ b/README.RUS @@ -53,6 +53,7 @@ Qmmp - Qt-based multimedia player - поддержка ReplayGain - скробблер Last.fm/Libre.fm - поддержка CDDB +- обзор потоков Требования: diff --git a/src/plugins/General/CMakeLists.txt b/src/plugins/General/CMakeLists.txt index 136b4c156..0fa3afc15 100644 --- a/src/plugins/General/CMakeLists.txt +++ b/src/plugins/General/CMakeLists.txt @@ -10,6 +10,7 @@ SET(USE_FILEOPS TRUE CACHE BOOL "enable/disable fileops plugin") SET(USE_COVER TRUE CACHE BOOL "enable/disable cover manager plugin") SET(USE_KDENOTIFY TRUE CACHE BOOL "enable/disable kde notification plugin") SET(USE_CONVERTER TRUE CACHE BOOL "enable/disable audio converter plugin") +SET(USE_SB TRUE CACHE BOOL "enable/disable stream browser plugin") IF(USE_MPRIS) add_subdirectory(mpris) @@ -58,3 +59,7 @@ ENDIF(USE_KDENOTIFY) IF(USE_CONVERTER AND TAGLIB_FOUND) add_subdirectory(converter) ENDIF(USE_CONVERTER AND TAGLIB_FOUND) + +IF(USE_SB) +add_subdirectory(streambrowser) +ENDIF(USE_SB) diff --git a/src/plugins/General/streambrowser/CMakeLists.txt b/src/plugins/General/streambrowser/CMakeLists.txt new file mode 100644 index 000000000..d1059701c --- /dev/null +++ b/src/plugins/General/streambrowser/CMakeLists.txt @@ -0,0 +1,68 @@ +project(libstreambrowser) + +cmake_minimum_required(VERSION 2.4.7) + +SET(QT_USE_QTNETWORK TRUE) +INCLUDE(FindQt4) + +include(${QT_USE_FILE}) + +if(COMMAND cmake_policy) +cmake_policy(SET CMP0003 NEW) +endif(COMMAND cmake_policy) + + +# qt plugin +ADD_DEFINITIONS( -Wall ) +ADD_DEFINITIONS(${QT_DEFINITIONS}) +ADD_DEFINITIONS(-DQT_PLUGIN) +ADD_DEFINITIONS(-DQT_NO_DEBUG) +ADD_DEFINITIONS(-DQT_SHARED) +ADD_DEFINITIONS(-DQT_THREAD) + +include_directories(${CMAKE_CURRENT_BINARY_DIR}) + +SET(QT_INCLUDES + ${QT_INCLUDES} + ${CMAKE_CURRENT_SOURCE_DIR}/../../../ +) + +# libqmmpui & libqmmp +include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../../../) +link_directories(${CMAKE_CURRENT_BINARY_DIR}/../../../qmmpui) +link_directories(${CMAKE_CURRENT_BINARY_DIR}/../../../qmmp) + +SET(libstreambrowser_SRCS + streambrowser.cpp + streambrowserfactory.cpp + streamwindow.cpp +) + +SET(libstreambrowser_MOC_HDRS + streambrowserfactory.h + streambrowser.h + streamwindow.h +) + +SET(libstreambrowser_RCCS + translations/translations.qrc) + +QT4_ADD_RESOURCES(libstreambrowser_RCC_SRCS ${libstreambrowser_RCCS}) + +QT4_WRAP_CPP(libstreambrowser_MOC_SRCS ${libstreambrowser_MOC_HDRS}) + +# user interface + +SET(libstreambrowser_UIS + streamwindow.ui +) + +QT4_WRAP_UI(libstreambrowser_UIS_H ${libstreambrowser_UIS}) +# Don't forget to include output directory, otherwise +# the UI file won't be wrapped! +include_directories(${CMAKE_CURRENT_BINARY_DIR}) + +ADD_LIBRARY(streambrowser MODULE ${libstreambrowser_SRCS} ${libstreambrowser_MOC_SRCS} ${libstreambrowser_UIS_H} ${libstreambrowser_RCC_SRCS}) +add_dependencies(streambrowser qmmpui) +target_link_libraries(streambrowser ${QT_LIBRARIES} -lqmmpui -lqmmp) +install(TARGETS streambrowser DESTINATION ${LIB_DIR}/qmmp/General) |
