File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -151,11 +151,16 @@ if(WITH_QRENCODE)
151
151
set (USE_QRCODE TRUE )
152
152
endif ()
153
153
154
+ cmake_dependent_option (WITH_DBUS "Enable DBus support." ON "CMAKE_SYSTEM_NAME STREQUAL \" Linux\" AND BUILD_GUI" OFF )
154
155
if (BUILD_GUI )
155
156
set (qt_components Core Gui Widgets LinguistTools )
156
157
if (ENABLE_WALLET )
157
158
list (APPEND qt_components Network )
158
159
endif ()
160
+ if (WITH_DBUS )
161
+ list (APPEND qt_components DBus )
162
+ set (USE_DBUS TRUE )
163
+ endif ()
159
164
find_package (Qt5 5.11.3 MODULE REQUIRED
160
165
COMPONENTS ${qt_components}
161
166
)
@@ -498,6 +503,7 @@ message(" - using UPnP ....................... ${WITH_MINIUPNPC}")
498
503
message (" ZeroMQ .............................. ${WITH_ZMQ} " )
499
504
message (" USDT tracing ........................ ${WITH_USDT} " )
500
505
message (" QR code (GUI) ....................... ${WITH_QRENCODE} " )
506
+ message (" DBus (GUI, Linux only) .............. ${WITH_DBUS} " )
501
507
message ("Tests:" )
502
508
message (" test_bitcoin ........................ ${BUILD_TESTS} " )
503
509
message (" bench_bitcoin ....................... ${BUILD_BENCH} " )
Original file line number Diff line number Diff line change 141
141
/* Define if BDB support should be compiled in */
142
142
#cmakedefine USE_BDB 1
143
143
144
+ /* Define if dbus support should be compiled in */
145
+ #cmakedefine USE_DBUS 1
146
+
144
147
/* Define if QR support should be compiled in */
145
148
#cmakedefine USE_QRCODE 1
146
149
Original file line number Diff line number Diff line change @@ -214,6 +214,10 @@ if(ENABLE_WALLET)
214
214
)
215
215
endif ()
216
216
217
+ if (WITH_DBUS )
218
+ target_link_libraries (bitcoinqt PRIVATE Qt5::DBus )
219
+ endif ()
220
+
217
221
if (qt_lib_type STREQUAL "STATIC_LIBRARY" )
218
222
# We want to define static plugins to link ourselves, thus preventing
219
223
# automatic linking against a "sane" set of default static plugins.
You can’t perform that action at this time.
0 commit comments