mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
Don't link all plugins against QtDBus
This commit is contained in:
@@ -40,7 +40,7 @@ ENDMACRO(CDR)
|
|||||||
|
|
||||||
macro(tomahawk_add_plugin)
|
macro(tomahawk_add_plugin)
|
||||||
parse_arguments(PLUGIN
|
parse_arguments(PLUGIN
|
||||||
"SOURCES;UI;LINK_LIBRARIES;TYPE;EXPORT_MACRO;COMPILE_DEFINITIONS"
|
"SOURCES;UI;LINK_LIBRARIES;QT5_MODULES;TYPE;EXPORT_MACRO;COMPILE_DEFINITIONS"
|
||||||
"NO_INSTALL;SHARED_LIB"
|
"NO_INSTALL;SHARED_LIB"
|
||||||
${ARGN}
|
${ARGN}
|
||||||
)
|
)
|
||||||
@@ -77,7 +77,10 @@ macro(tomahawk_add_plugin)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
# add qt modules
|
# add qt modules
|
||||||
qt5_use_modules(${target} Core Network Widgets Sql Xml DBus)
|
qt5_use_modules(${target} Core Network Widgets Sql Xml)
|
||||||
|
if( PLUGIN_QT5_MODULES )
|
||||||
|
qt5_use_modules(${target} ${PLUGIN_QT5_MODULES})
|
||||||
|
endif()
|
||||||
|
|
||||||
# definitions - can this be moved into set_target_properties below?
|
# definitions - can this be moved into set_target_properties below?
|
||||||
add_definitions(${QT_DEFINITIONS})
|
add_definitions(${QT_DEFINITIONS})
|
||||||
|
@@ -27,4 +27,5 @@ SET(mpris_srcs
|
|||||||
tomahawk_add_plugin(mpris
|
tomahawk_add_plugin(mpris
|
||||||
TYPE infoplugin EXPORT_MACRO INFOPLUGINDLLEXPORT_PRO
|
TYPE infoplugin EXPORT_MACRO INFOPLUGINDLLEXPORT_PRO
|
||||||
SOURCES "${mpris_srcs}"
|
SOURCES "${mpris_srcs}"
|
||||||
|
QT5_MODULES "DBus"
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user