make sure rs_webui cannot be enabled without rs_jsonapi

This commit is contained in:
csoler 2019-11-27 21:22:21 +01:00
parent 9a24af87a4
commit 887e3ad394
No known key found for this signature in database
GPG Key ID: 7BCA522266C0804C
2 changed files with 10 additions and 4 deletions

View File

@ -29,6 +29,12 @@ rs_jsonapi:isEmpty(JSONAPI_GENERATOR_EXE) {
libretroshare.depends += jsonapi-generator libretroshare.depends += jsonapi-generator
} }
rs_webui {
!rs_jsonapi {
error("rs_webui requires rs_jsonapi")
}
}
SUBDIRS += libbitdht SUBDIRS += libbitdht
libbitdht.file = libbitdht/src/libbitdht.pro libbitdht.file = libbitdht/src/libbitdht.pro
libretroshare.depends += openpgpsdk libbitdht libretroshare.depends += openpgpsdk libbitdht

View File

@ -180,10 +180,10 @@ rs_use_native_dialogs:CONFIG -= no_rs_use_native_dialogs
CONFIG *= rs_broadcast_discovery CONFIG *= rs_broadcast_discovery
no_rs_broadcast_discovery:CONFIG -= rs_broadcast_discovery no_rs_broadcast_discovery:CONFIG -= rs_broadcast_discovery
# To disable webui append the following assignation to qmake # To enable webui append the following assignation to qmake
# command line "CONFIG+=rs_no_webui" # command line "CONFIG+=rs_webui"
CONFIG *= rs_webui CONFIG *= rs_no_webui
rs_no_webui:CONFIG -= rs_webui rs_webui:CONFIG -= rs_no_webui
# To enable webui append the following assignation to qmake # To enable webui append the following assignation to qmake
# command line "CONFIG+=rs_service_webui_terminal_password" # command line "CONFIG+=rs_service_webui_terminal_password"