mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Use PLUGIN_DIR to define plugin directory only once
This commit is contained in:
parent
fe1ec9d510
commit
0793a6a52d
@ -165,7 +165,7 @@ linux-* {
|
|||||||
}
|
}
|
||||||
|
|
||||||
unix {
|
unix {
|
||||||
DEFINES *= LIB_DIR=\"\\\"$${LIB_DIR}\\\"\"
|
DEFINES *= PLUGIN_DIR=\"\\\"$${PLUGIN_DIR}\\\"\"
|
||||||
DEFINES *= DATA_DIR=\"\\\"$${DATA_DIR}\\\"\"
|
DEFINES *= DATA_DIR=\"\\\"$${DATA_DIR}\\\"\"
|
||||||
|
|
||||||
## where to put the librarys interface
|
## where to put the librarys interface
|
||||||
|
@ -1251,7 +1251,7 @@ int RsServer::StartupRetroShare()
|
|||||||
std::vector<std::string> plugins_directories ;
|
std::vector<std::string> plugins_directories ;
|
||||||
|
|
||||||
#ifndef WINDOWS_SYS
|
#ifndef WINDOWS_SYS
|
||||||
plugins_directories.push_back(std::string(LIB_DIR) + "/retroshare/extensions6/") ;
|
plugins_directories.push_back(std::string(PLUGIN_DIR)) ;
|
||||||
#endif
|
#endif
|
||||||
std::string extensions_dir = rsAccounts->PathBaseDirectory() + "/extensions6/" ;
|
std::string extensions_dir = rsAccounts->PathBaseDirectory() + "/extensions6/" ;
|
||||||
plugins_directories.push_back(extensions_dir) ;
|
plugins_directories.push_back(extensions_dir) ;
|
||||||
|
@ -7,7 +7,7 @@ DEPENDPATH += ../../libretroshare/src/ ../../retroshare-gui/src/
|
|||||||
INCLUDEPATH += ../../libretroshare/src/ ../../retroshare-gui/src/
|
INCLUDEPATH += ../../libretroshare/src/ ../../retroshare-gui/src/
|
||||||
|
|
||||||
unix {
|
unix {
|
||||||
target.path = "$${LIB_DIR}/retroshare/extensions6"
|
target.path = "$${PLUGIN_DIR}"
|
||||||
INSTALLS += target
|
INSTALLS += target
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,6 +7,7 @@ unix {
|
|||||||
isEmpty(INC_DIR) { INC_DIR = "$${PREFIX}/include/retroshare06" }
|
isEmpty(INC_DIR) { INC_DIR = "$${PREFIX}/include/retroshare06" }
|
||||||
isEmpty(LIB_DIR) { LIB_DIR = "$${PREFIX}/lib" }
|
isEmpty(LIB_DIR) { LIB_DIR = "$${PREFIX}/lib" }
|
||||||
isEmpty(DATA_DIR) { DATA_DIR = "$${PREFIX}/share/RetroShare06" }
|
isEmpty(DATA_DIR) { DATA_DIR = "$${PREFIX}/share/RetroShare06" }
|
||||||
|
isEmpty(PLUGIN_DIR) { PLUGIN_DIR = "$${LIB_DIR}/retroshare/extensions6" }
|
||||||
}
|
}
|
||||||
|
|
||||||
unfinished {
|
unfinished {
|
||||||
|
Loading…
Reference in New Issue
Block a user