2016-07-14 16:48:44 -04:00
|
|
|
# To {dis,en}able libresapi via local socket (unix domain socket or windows named pipes)
|
|
|
|
# {,un}comment the following line
|
2016-07-18 07:49:21 -04:00
|
|
|
#CONFIG *= libresapilocalserver
|
2016-07-14 16:48:44 -04:00
|
|
|
|
2016-07-28 08:08:49 -04:00
|
|
|
# To {dis,en}able libresapi via HTTP (libmicrohttpd) {,un}comment the following line
|
|
|
|
CONFIG *= libresapihttpserver
|
|
|
|
|
2015-09-04 11:48:20 -04:00
|
|
|
# Gxs is always enabled now.
|
|
|
|
DEFINES *= RS_ENABLE_GXS
|
|
|
|
|
2015-08-31 11:55:30 -04:00
|
|
|
unix {
|
|
|
|
isEmpty(PREFIX) { PREFIX = "/usr" }
|
2015-08-31 12:01:55 -04:00
|
|
|
isEmpty(BIN_DIR) { BIN_DIR = "$${PREFIX}/bin" }
|
2015-08-31 11:55:30 -04:00
|
|
|
isEmpty(INC_DIR) { INC_DIR = "$${PREFIX}/include/retroshare06" }
|
|
|
|
isEmpty(LIB_DIR) { LIB_DIR = "$${PREFIX}/lib" }
|
|
|
|
isEmpty(DATA_DIR) { DATA_DIR = "$${PREFIX}/share/RetroShare06" }
|
2015-09-06 08:19:21 -04:00
|
|
|
isEmpty(PLUGIN_DIR) { PLUGIN_DIR = "$${LIB_DIR}/retroshare/extensions6" }
|
2015-08-31 11:55:30 -04:00
|
|
|
}
|
2015-09-04 11:43:52 -04:00
|
|
|
|
2016-07-28 08:08:49 -04:00
|
|
|
android-g++ {
|
|
|
|
DEFINES *= NO_SQLCIPHER
|
|
|
|
DEFINES *= "fopen64=fopen"
|
|
|
|
DEFINES *= "fseeko64=fseeko"
|
|
|
|
DEFINES *= "ftello64=ftello"
|
|
|
|
INCLUDEPATH *= $$NDK_TOOLCHAIN_PATH/sysroot/usr/include/
|
|
|
|
LIBS *= -L$$NDK_TOOLCHAIN_PATH/sysroot/usr/lib/
|
|
|
|
LIBS *= -lssl -lcrypto -lsqlite3 -lupnp -lixml
|
|
|
|
ANDROID_EXTRA_LIBS *= $$NDK_TOOLCHAIN_PATH/sysroot/usr/lib/libcrypto.so
|
|
|
|
ANDROID_EXTRA_LIBS *= $$NDK_TOOLCHAIN_PATH/sysroot/usr/lib/libssl.so
|
|
|
|
ANDROID_EXTRA_LIBS *= $$NDK_TOOLCHAIN_PATH/sysroot/usr/lib/libbz2.so
|
|
|
|
ANDROID_EXTRA_LIBS *= $$NDK_TOOLCHAIN_PATH/sysroot/usr/lib/libsqlite3.so
|
|
|
|
ANDROID_EXTRA_LIBS *= $$NDK_TOOLCHAIN_PATH/sysroot/usr/lib/libupnp.so
|
|
|
|
ANDROID_EXTRA_LIBS *= $$NDK_TOOLCHAIN_PATH/sysroot/usr/lib/libixml.so
|
|
|
|
message(NDK_TOOLCHAIN_PATH: $$NDK_TOOLCHAIN_PATH)
|
|
|
|
message(LIBS: $$LIBS)
|
|
|
|
message(ANDROID_EXTRA_LIBS: $$ANDROID_EXTRA_LIBS)
|
|
|
|
}
|
|
|
|
|
2015-09-23 12:25:03 -04:00
|
|
|
win32 {
|
|
|
|
message(***retroshare.pri:Win32)
|
|
|
|
exists($$PWD/../libs) {
|
2015-09-24 09:51:14 -04:00
|
|
|
message(Get pre-compiled libraries.)
|
2015-09-23 12:25:03 -04:00
|
|
|
isEmpty(PREFIX) { PREFIX = "$$PWD/../libs" }
|
|
|
|
isEmpty(BIN_DIR) { BIN_DIR = "$${PREFIX}/bin" }
|
|
|
|
isEmpty(INC_DIR) { INC_DIR = "$${PREFIX}/include" }
|
|
|
|
isEmpty(LIB_DIR) { LIB_DIR = "$${PREFIX}/lib" }
|
|
|
|
}
|
2016-08-14 08:11:01 -04:00
|
|
|
|
|
|
|
# Check for msys2
|
2016-08-17 17:58:22 -04:00
|
|
|
PREFIX_MSYS2 = $$(MINGW_PREFIX)
|
|
|
|
isEmpty(PREFIX_MSYS2) {
|
2016-08-15 10:16:46 -04:00
|
|
|
exists(C:/msys32/mingw32/include) {
|
|
|
|
message(MINGW_PREFIX is empty. Set it in your environment variables.)
|
|
|
|
message(Found it here:C:\msys32\mingw32)
|
2016-08-17 17:58:22 -04:00
|
|
|
PREFIX_MSYS2 = "C:\msys32\mingw32"
|
2016-08-15 10:16:46 -04:00
|
|
|
}
|
|
|
|
exists(C:/msys64/mingw32/include) {
|
|
|
|
message(MINGW_PREFIX is empty. Set it in your environment variables.)
|
|
|
|
message(Found it here:C:\msys64\mingw32)
|
2016-08-17 17:58:22 -04:00
|
|
|
PREFIX_MSYS2 = "C:\msys64\mingw32"
|
2016-08-15 10:16:46 -04:00
|
|
|
}
|
|
|
|
}
|
2016-08-14 08:11:01 -04:00
|
|
|
!isEmpty(PREFIX_MSYS2) {
|
|
|
|
message(msys2 is installed.)
|
2015-09-23 12:25:03 -04:00
|
|
|
BIN_DIR += "$${PREFIX_MSYS2}/bin"
|
|
|
|
INC_DIR += "$${PREFIX_MSYS2}/include"
|
|
|
|
LIB_DIR += "$${PREFIX_MSYS2}/lib"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-12-21 11:25:02 -05:00
|
|
|
macx {
|
|
|
|
message(***retroshare.pri:MacOSX)
|
|
|
|
BIN_DIR += "/usr/bin"
|
|
|
|
INC_DIR += "/usr/include"
|
|
|
|
INC_DIR += "/usr/local/include"
|
|
|
|
INC_DIR += "/opt/local/include"
|
|
|
|
LIB_DIR += "/usr/local/lib"
|
|
|
|
LIB_DIR += "/opt/local/lib"
|
2016-05-06 16:51:25 -04:00
|
|
|
!QMAKE_MACOSX_DEPLOYMENT_TARGET {
|
|
|
|
message(***retroshare.pri: No Target, set it to MacOS 10.10 )
|
|
|
|
QMAKE_MACOSX_DEPLOYMENT_TARGET=10.10
|
|
|
|
}
|
|
|
|
!QMAKE_MAC_SDK {
|
|
|
|
message(***retroshare.pri: No SDK, set it to MacOS 10.10 )
|
|
|
|
QMAKE_MAC_SDK = macosx10.10
|
|
|
|
}
|
2015-12-24 12:54:45 -05:00
|
|
|
CONFIG += c+11
|
2015-12-21 11:25:02 -05:00
|
|
|
}
|
|
|
|
|
2015-09-04 11:43:52 -04:00
|
|
|
unfinished {
|
|
|
|
CONFIG += gxscircles
|
|
|
|
CONFIG += gxsthewire
|
|
|
|
CONFIG += gxsphotoshare
|
|
|
|
CONFIG += wikipoos
|
|
|
|
}
|
2015-09-04 11:52:25 -04:00
|
|
|
|
|
|
|
wikipoos:DEFINES *= RS_USE_WIKI
|
2016-07-14 16:48:44 -04:00
|
|
|
|
|
|
|
libresapilocalserver:DEFINES *= LIBRESAPI_LOCAL_SERVER
|
2016-07-28 08:08:49 -04:00
|
|
|
libresapihttpserver::DEFINES *= ENABLE_WEBUI
|