mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-29 01:16:20 -05:00
655582e970
FSFE licensing checking program lint is now happy $ reuse lint * Bad licenses: * Missing licenses: * Unused licenses: * Used licenses: AGPL-3.0-only, AGPL-3.0-or-later, Apache-2.0, CC-BY-SA-4.0, CC0-1.0, GPL-3.0-or-later, LGPL-3.0-or-later, MIT * Read errors: 0 * Files with copyright information: 6324 / 6324 * Files with license information: 6324 / 6324 Congratulations! Your project is compliant with version 3.0 of the REUSE Specification :-)
105 lines
3.2 KiB
Plaintext
105 lines
3.2 KiB
Plaintext
# SPDX-FileCopyrightText: (C) 2004-2019 Retroshare Team <contact@retroshare.cc>
|
|
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
RS_SRC_PATH=$$clean_path($${PWD}/../../)
|
|
RS_BUILD_PATH=$$clean_path($${OUT_PWD}/../../)
|
|
|
|
DEPENDPATH *= $$clean_path($${RS_SRC_PATH}/libretroshare/src/)
|
|
INCLUDEPATH *= $$clean_path($${RS_SRC_PATH}/libretroshare/src)
|
|
LIBS *= -L$$clean_path($${RS_BUILD_PATH}/libretroshare/src/lib/) -lretroshare
|
|
|
|
equals(TARGET, retroshare):equals(TEMPLATE, lib){
|
|
} else {
|
|
PRE_TARGETDEPS *= $$clean_path($${RS_BUILD_PATH}/libretroshare/src/lib/libretroshare.a)
|
|
}
|
|
|
|
!include("../../openpgpsdk/src/use_openpgpsdk.pri"):error("Including")
|
|
|
|
bitdht {
|
|
!include("../../libbitdht/src/use_libbitdht.pri"):error("Including")
|
|
}
|
|
|
|
# when rapidjson is mainstream on all distribs, we will not need the sources
|
|
# anymore in the meantime, they are part of the RS directory so that it is
|
|
# always possible to find them
|
|
RAPIDJSON_AVAILABLE = $$system(pkg-config --atleast-version 1.1 RapidJSON && echo yes)
|
|
isEmpty(RAPIDJSON_AVAILABLE) {
|
|
message("using rapidjson from submodule")
|
|
INCLUDEPATH *= $$clean_path($${PWD}/../../supportlibs/rapidjson/include)
|
|
} else {
|
|
message("using system rapidjson")
|
|
}
|
|
|
|
|
|
sLibs =
|
|
mLibs = $$RS_SQL_LIB ssl crypto $$RS_THREAD_LIB $$RS_UPNP_LIB
|
|
dLibs =
|
|
|
|
rs_jsonapi {
|
|
no_rs_cross_compiling {
|
|
RESTBED_SRC_PATH=$$clean_path($${RS_SRC_PATH}/supportlibs/restbed)
|
|
RESTBED_BUILD_PATH=$$clean_path($${RS_BUILD_PATH}/supportlibs/restbed)
|
|
INCLUDEPATH *= $$clean_path($${RESTBED_BUILD_PATH}/include/)
|
|
DEPENDPATH *= $$clean_path($${RESTBED_BUILD_PATH}/include/)
|
|
QMAKE_LIBDIR *= $$clean_path($${RESTBED_BUILD_PATH}/)
|
|
# Using sLibs would fail as librestbed.a is generated at compile-time
|
|
LIBS *= -L$$clean_path($${RESTBED_BUILD_PATH}/) -lrestbed
|
|
} else:sLibs *= restbed
|
|
|
|
win32-g++:dLibs *= wsock32
|
|
}
|
|
|
|
linux-* {
|
|
mLibs += dl
|
|
}
|
|
|
|
rs_deep_channels_index | rs_deep_files_index {
|
|
mLibs += xapian
|
|
win32-g++:mLibs += rpcrt4
|
|
}
|
|
|
|
rs_deep_files_index_ogg {
|
|
mLibs += vorbisfile
|
|
}
|
|
|
|
rs_deep_files_index_flac {
|
|
mLibs += FLAC++
|
|
}
|
|
|
|
rs_deep_files_index_taglib {
|
|
mLibs += tag
|
|
}
|
|
|
|
rs_broadcast_discovery {
|
|
no_rs_cross_compiling {
|
|
UDP_DISCOVERY_SRC_PATH=$$clean_path($${RS_SRC_PATH}/supportlibs/udp-discovery-cpp/)
|
|
UDP_DISCOVERY_BUILD_PATH=$$clean_path($${RS_BUILD_PATH}/supportlibs/udp-discovery-cpp/)
|
|
INCLUDEPATH *= $$clean_path($${UDP_DISCOVERY_SRC_PATH})
|
|
DEPENDPATH *= $$clean_path($${UDP_DISCOVERY_BUILD_PATH})
|
|
QMAKE_LIBDIR *= $$clean_path($${UDP_DISCOVERY_BUILD_PATH})
|
|
# Using sLibs would fail as libudp-discovery.a is generated at compile-time
|
|
LIBS *= -L$$clean_path($${UDP_DISCOVERY_BUILD_PATH}) -ludp-discovery
|
|
} else:sLibs *= udp-discovery
|
|
|
|
win32-g++:dLibs *= wsock32
|
|
}
|
|
|
|
static {
|
|
sLibs *= $$mLibs
|
|
} else {
|
|
dLibs *= $$mLibs
|
|
}
|
|
|
|
LIBS += $$linkStaticLibs(sLibs)
|
|
PRE_TARGETDEPS += $$pretargetStaticLibs(sLibs)
|
|
|
|
LIBS += $$linkDynamicLibs(dLibs)
|
|
|
|
android-* {
|
|
## ifaddrs is missing on Android to add them don't use the one from
|
|
## https://github.com/morristech/android-ifaddrs
|
|
## because it crash, use QNetworkInterface from Qt instead
|
|
CONFIG *= qt
|
|
QT *= network
|
|
}
|