mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-04-11 18:29:16 -04:00
added switch to compile with rnp or openpgp-sdk
This commit is contained in:
parent
d222cfe8e0
commit
3361727a37
@ -25,9 +25,6 @@ CONFIG += c++14
|
||||
|
||||
TEMPLATE = subdirs
|
||||
|
||||
SUBDIRS += openpgpsdk
|
||||
openpgpsdk.file = openpgpsdk/src/openpgpsdk.pro
|
||||
|
||||
rs_jsonapi:isEmpty(JSONAPI_GENERATOR_EXE) {
|
||||
SUBDIRS += jsonapi-generator
|
||||
jsonapi-generator.file = jsonapi-generator/src/jsonapi-generator.pro
|
||||
@ -36,7 +33,7 @@ rs_jsonapi:isEmpty(JSONAPI_GENERATOR_EXE) {
|
||||
|
||||
SUBDIRS += libbitdht
|
||||
libbitdht.file = libbitdht/src/libbitdht.pro
|
||||
libretroshare.depends += openpgpsdk libbitdht
|
||||
libretroshare.depends += libbitdht
|
||||
|
||||
SUBDIRS += libretroshare
|
||||
libretroshare.file = libretroshare/src/libretroshare.pro
|
||||
|
@ -182,7 +182,10 @@ rs_deep_files_index_taglib:CONFIG -= no_rs_deep_files_index_taglib
|
||||
CONFIG *= no_rs_use_native_dialogs
|
||||
rs_use_native_dialogs:CONFIG -= no_rs_use_native_dialogs
|
||||
|
||||
CONFIG *= use_rnp
|
||||
# By default, use RNP lib for RFC4880 PGP management. If not, compilation will
|
||||
# default to openpgp-sdk, which is old and unmaintained, so probably not very secure.
|
||||
CONFIG *= rs_rnplib
|
||||
rs_no_rnplib:CONFIG -= use_rnp_lib
|
||||
|
||||
# To disable broadcast discovery append the following assignation to qmake
|
||||
# command line "CONFIG+=no_rs_broadcast_discovery"
|
||||
@ -851,6 +854,17 @@ isEmpty(RS_UPNP_LIB) {
|
||||
}
|
||||
}
|
||||
|
||||
rs_rnplib {
|
||||
DEFINES += USE_RNP_LIB
|
||||
message("Using RNP lib for PGP")
|
||||
} else {
|
||||
SUBDIRS += openpgpsdk
|
||||
openpgpsdk.file = openpgpsdk/src/openpgpsdk.pro
|
||||
libretroshare.depends += openpgpsdk
|
||||
message("Using OpenPGP-SDK for PGP")
|
||||
}
|
||||
|
||||
|
||||
equals(RS_UPNP_LIB, none):RS_UPNP_LIB=
|
||||
equals(RS_UPNP_LIB, miniupnpc):DEFINES*=RS_USE_LIBMINIUPNPC
|
||||
contains(RS_UPNP_LIB, upnp):DEFINES*=RS_USE_LIBUPNP
|
||||
|
Loading…
x
Reference in New Issue
Block a user