Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add MPRIS Interface #231

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ add_subdirectory(src/radiotray-ng/gui/editor)
if (CMAKE_SYSTEM_NAME MATCHES "Linux")
add_subdirectory(src/radiotray-ng/extras/rtng_dbus)
target_compile_definitions(radiotray-ng PRIVATE RTNG_DBUS)
add_subdirectory(src/radiotray-ng/extras/mpris_dbus)
target_compile_definitions(radiotray-ng PRIVATE MPRIS_DBUS)
endif()

# which gui?
Expand Down
1 change: 1 addition & 0 deletions src/radiotray-ng/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ endif()

if (CMAKE_SYSTEM_NAME MATCHES "Linux")
target_link_libraries(radiotray-ng rtng_dbus)
target_link_libraries(radiotray-ng mpris_dbus)
endif()

target_link_libraries(
Expand Down
3 changes: 3 additions & 0 deletions src/radiotray-ng/extras/mpris_dbus/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
add_library(mpris_dbus STATIC mpris_dbus.cpp mpris_dbus.hpp)
target_link_libraries(mpris_dbus ${GLIBMM_LIBRARIES} ${GIOMM_LIBRARIES})
target_include_directories(mpris_dbus SYSTEM PRIVATE ${GIOMM_INCLUDE_DIRS} ${GLIBMM_INCLUDE_DIRS})
Loading