mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-02 10:35:15 -05:00
Rename DATA_DIR macro to less polluting RS_DATA_DIR
This commit is contained in:
parent
e55fa2b9d5
commit
94bd099407
@ -1 +1 @@
|
|||||||
Subproject commit b260e58346b1eec782bdf88a7e8f3c9d36fd3ecb
|
Subproject commit df16cb915465d058c75277678799ce4dadeae287
|
@ -205,7 +205,7 @@ linux-* {
|
|||||||
LIBS *= -ldl
|
LIBS *= -ldl
|
||||||
|
|
||||||
DEFINES *= PLUGIN_DIR=\"\\\"$${PLUGIN_DIR}\\\"\"
|
DEFINES *= PLUGIN_DIR=\"\\\"$${PLUGIN_DIR}\\\"\"
|
||||||
DEFINES *= DATA_DIR=\"\\\"$${DATA_DIR}\\\"\"
|
DEFINES *= RS_DATA_DIR=\"\\\"$${RS_DATA_DIR}\\\"\"
|
||||||
}
|
}
|
||||||
|
|
||||||
linux-g++ {
|
linux-g++ {
|
||||||
@ -289,7 +289,7 @@ mac {
|
|||||||
#LIBS += -lsqlite3
|
#LIBS += -lsqlite3
|
||||||
|
|
||||||
DEFINES *= PLUGIN_DIR=\"\\\"$${PLUGIN_DIR}\\\"\"
|
DEFINES *= PLUGIN_DIR=\"\\\"$${PLUGIN_DIR}\\\"\"
|
||||||
DEFINES *= DATA_DIR=\"\\\"$${DATA_DIR}\\\"\"
|
DEFINES *= RS_DATA_DIR=\"\\\"$${RS_DATA_DIR}\\\"\"
|
||||||
}
|
}
|
||||||
|
|
||||||
################################# FreeBSD ##########################################
|
################################# FreeBSD ##########################################
|
||||||
|
@ -841,14 +841,15 @@ static bool checkAccount(const std::string &accountdir, AccountDetails &account,
|
|||||||
|
|
||||||
/* Use RetroShare's exe dir */
|
/* Use RetroShare's exe dir */
|
||||||
dataDirectory = ".";
|
dataDirectory = ".";
|
||||||
#elif defined(ANDROID)
|
#elif defined(__ANDROID__)
|
||||||
|
// TODO: This is probably not really used on Android
|
||||||
dataDirectory = PathBaseDirectory()+"/usr/share/retroshare";
|
dataDirectory = PathBaseDirectory()+"/usr/share/retroshare";
|
||||||
#elif defined(DATA_DIR)
|
#elif defined(RS_DATA_DIR)
|
||||||
// cppcheck-suppress ConfigurationNotChecked
|
// cppcheck-suppress ConfigurationNotChecked
|
||||||
dataDirectory = DATA_DIR;
|
dataDirectory = RS_DATA_DIR;
|
||||||
// For all other OS the data directory must be set in libretroshare.pro
|
// For all other OS the data directory must be set in libretroshare.pro
|
||||||
#else
|
#else
|
||||||
# error "For your target OS automatic data dir discovery is not supported, cannot compile if DATA_DIR variable not set."
|
# error "For your target OS automatic data dir discovery is not supported, cannot compile if RS_DATA_DIR variable not set."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!check)
|
if (!check)
|
||||||
|
@ -245,7 +245,7 @@ bool BroadcastDiscoveryService::isMulticastListeningEnabled()
|
|||||||
env, "isHeld" );
|
env, "isHeld" );
|
||||||
|
|
||||||
return mAndroidWifiMulticastLock.Call(env, isHeld);
|
return mAndroidWifiMulticastLock.Call(env, isHeld);
|
||||||
#else if // def __ANDROID__
|
#else // def __ANDROID__
|
||||||
return true;
|
return true;
|
||||||
#endif // def __ANDROID__
|
#endif // def __ANDROID__
|
||||||
}
|
}
|
||||||
|
@ -816,5 +816,4 @@ contains(RS_UPNP_LIB, upnp):DEFINES*=RS_USE_LIBUPNP
|
|||||||
isEmpty(BIN_DIR) : BIN_DIR = $${RS_BIN_DIR}
|
isEmpty(BIN_DIR) : BIN_DIR = $${RS_BIN_DIR}
|
||||||
isEmpty(INC_DIR) : INC_DIR = $${RS_INCLUDE_DIR}
|
isEmpty(INC_DIR) : INC_DIR = $${RS_INCLUDE_DIR}
|
||||||
isEmpty(LIBDIR) : LIBDIR = $${QMAKE_LIBDIR}
|
isEmpty(LIBDIR) : LIBDIR = $${QMAKE_LIBDIR}
|
||||||
isEmpty(DATA_DIR) : DATA_DIR = $${RS_DATA_DIR}
|
|
||||||
isEmpty(PLUGIN_DIR): PLUGIN_DIR= $${RS_PLUGIN_DIR}
|
isEmpty(PLUGIN_DIR): PLUGIN_DIR= $${RS_PLUGIN_DIR}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user