mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-20 13:19:07 -04:00
Merge branch 'RetroShare:master' into wire_notifynew
This commit is contained in:
commit
7c145b275a
9 changed files with 23 additions and 22 deletions
|
@ -43,6 +43,7 @@ set NSIS_PARAM=%NSIS_PARAM% /DDEPLOYDIR="%RsDeployPath%"
|
||||||
set NSIS_PARAM=%NSIS_PARAM% /DOUTDIR="%RsPackPath%"
|
set NSIS_PARAM=%NSIS_PARAM% /DOUTDIR="%RsPackPath%"
|
||||||
set NSIS_PARAM=%NSIS_PARAM% /DINSTALLERADD="%RsArchiveAdd%"
|
set NSIS_PARAM=%NSIS_PARAM% /DINSTALLERADD="%RsArchiveAdd%"
|
||||||
set NSIS_PARAM=%NSIS_PARAM% /DARCHITECTURE="%RsArchitecture%"
|
set NSIS_PARAM=%NSIS_PARAM% /DARCHITECTURE="%RsArchitecture%"
|
||||||
|
set NSIS_PARAM=%NSIS_PARAM% /DTOOLCHAIN="%RsToolchain%"
|
||||||
set NSIS_PARAM=%NSIS_PARAM% /DREVISION=%RsVersion.Extra%
|
set NSIS_PARAM=%NSIS_PARAM% /DREVISION=%RsVersion.Extra%
|
||||||
|
|
||||||
set QtMainVersion=%QtVersion:~0,1%
|
set QtMainVersion=%QtVersion:~0,1%
|
||||||
|
|
|
@ -28,7 +28,7 @@ if not "%ParamNoupdate%"=="1" (
|
||||||
if "%ParamPlugins%"=="1" %EnvMSYS2Cmd% "pacman --noconfirm --needed -S mingw-w64-%RsMSYS2Architecture%-speex mingw-w64-%RsMSYS2Architecture%-speexdsp mingw-w64-%RsMSYS2Architecture%-curl mingw-w64-%RsMSYS2Architecture%-libxslt mingw-w64-%RsMSYS2Architecture%-opencv mingw-w64-%RsMSYS2Architecture%-ffmpeg"
|
if "%ParamPlugins%"=="1" %EnvMSYS2Cmd% "pacman --noconfirm --needed -S mingw-w64-%RsMSYS2Architecture%-speex mingw-w64-%RsMSYS2Architecture%-speexdsp mingw-w64-%RsMSYS2Architecture%-curl mingw-w64-%RsMSYS2Architecture%-libxslt mingw-w64-%RsMSYS2Architecture%-opencv mingw-w64-%RsMSYS2Architecture%-ffmpeg"
|
||||||
|
|
||||||
:: Clang
|
:: Clang
|
||||||
if "%ParamClang%"=="1" %EnvMSYS2Cmd% "pacman --noconfirm --needed -S mingw-w64-%RsMSYS2Architecture%-clang"
|
if "%ClangCompiler%"=="1" %EnvMSYS2Cmd% "pacman --noconfirm --needed -S mingw-w64-%RsMSYS2Architecture%-clang"
|
||||||
|
|
||||||
:: Indexing
|
:: Indexing
|
||||||
if "%ParamIndexing%"=="1" %EnvMSYS2Cmd% "pacman --noconfirm --needed -S mingw-w64-%RsMSYS2Architecture%-xapian-core mingw-w64-%RsMSYS2Architecture%-libvorbis mingw-w64-%RsMSYS2Architecture%-flac mingw-w64-%RsMSYS2Architecture%-taglib"
|
if "%ParamIndexing%"=="1" %EnvMSYS2Cmd% "pacman --noconfirm --needed -S mingw-w64-%RsMSYS2Architecture%-xapian-core mingw-w64-%RsMSYS2Architecture%-libvorbis mingw-w64-%RsMSYS2Architecture%-flac mingw-w64-%RsMSYS2Architecture%-taglib"
|
||||||
|
@ -79,11 +79,10 @@ echo %RsBuildConfig% >> buildinfo.txt
|
||||||
echo %RsArchitecture% >> buildinfo.txt
|
echo %RsArchitecture% >> buildinfo.txt
|
||||||
echo Qt %QtVersion% >> buildinfo.txt
|
echo Qt %QtVersion% >> buildinfo.txt
|
||||||
echo %RsToolchain% >> buildinfo.txt
|
echo %RsToolchain% >> buildinfo.txt
|
||||||
echo %RsCompiler% >> buildinfo.txt
|
|
||||||
|
|
||||||
call "%ToolsPath%\msys2-path.bat" "%SourcePath%" MSYS2SourcePath
|
call "%ToolsPath%\msys2-path.bat" "%SourcePath%" MSYS2SourcePath
|
||||||
call "%ToolsPath%\msys2-path.bat" "%EnvMSYS2Path%" MSYS2EnvMSYS2Path
|
call "%ToolsPath%\msys2-path.bat" "%EnvMSYS2Path%" MSYS2EnvMSYS2Path
|
||||||
if "%ParamClang%"=="1" (
|
if "%ClangCompiler%"=="1" (
|
||||||
%EnvMSYS2Cmd% "qmake "%MSYS2SourcePath%/RetroShare.pro" -r -spec win32-clang-g++ %RS_QMAKE_CONFIG%"
|
%EnvMSYS2Cmd% "qmake "%MSYS2SourcePath%/RetroShare.pro" -r -spec win32-clang-g++ %RS_QMAKE_CONFIG%"
|
||||||
) else (
|
) else (
|
||||||
%EnvMSYS2Cmd% "qmake "%MSYS2SourcePath%/RetroShare.pro" -r -spec win32-g++ %RS_QMAKE_CONFIG%"
|
%EnvMSYS2Cmd% "qmake "%MSYS2SourcePath%/RetroShare.pro" -r -spec win32-g++ %RS_QMAKE_CONFIG%"
|
||||||
|
|
|
@ -5,7 +5,7 @@ set ParamAutologin=0
|
||||||
set ParamPlugins=0
|
set ParamPlugins=0
|
||||||
set ParamTor=0
|
set ParamTor=0
|
||||||
set ParamWebui=0
|
set ParamWebui=0
|
||||||
set ParamClang=0
|
set ClangCompiler=0
|
||||||
set ParamIndexing=0
|
set ParamIndexing=0
|
||||||
set ParamFriendserver=0
|
set ParamFriendserver=0
|
||||||
set ParamNoupdate=0
|
set ParamNoupdate=0
|
||||||
|
@ -55,8 +55,6 @@ if "%~1" NEQ "" (
|
||||||
set ParamWebui=1
|
set ParamWebui=1
|
||||||
) else if "%%~a"=="singlethread" (
|
) else if "%%~a"=="singlethread" (
|
||||||
set CoreCount=1
|
set CoreCount=1
|
||||||
) else if "%%~a"=="clang" (
|
|
||||||
set ParamClang=1
|
|
||||||
) else if "%%~a"=="indexing" (
|
) else if "%%~a"=="indexing" (
|
||||||
set ParamIndexing=1
|
set ParamIndexing=1
|
||||||
) else if "%%~a"=="friendserver" (
|
) else if "%%~a"=="friendserver" (
|
||||||
|
@ -96,24 +94,18 @@ if "%RsToolchain%"=="mingw32" (
|
||||||
set RsArchitecture=x64
|
set RsArchitecture=x64
|
||||||
set RsMSYS2Architecture=clang-x86_64
|
set RsMSYS2Architecture=clang-x86_64
|
||||||
set MSYSTEM=CLANG64
|
set MSYSTEM=CLANG64
|
||||||
set ParamClang=1
|
set ClangCompiler=1
|
||||||
) else if "%RsToolchain%"=="clang32" (
|
) else if "%RsToolchain%"=="clang32" (
|
||||||
set RsArchitecture=x86
|
set RsArchitecture=x86
|
||||||
set RsMSYS2Architecture=clang-i686
|
set RsMSYS2Architecture=clang-i686
|
||||||
set MSYSTEM=CLANG32
|
set MSYSTEM=CLANG32
|
||||||
set ParamClang=1
|
set ClangCompiler=1
|
||||||
) else if "%RsToolchain%"=="clangarm64" (
|
) else if "%RsToolchain%"=="clangarm64" (
|
||||||
set RsArchitecture=arm64
|
set RsArchitecture=arm64
|
||||||
set RsMSYS2Architecture=clang-aarch64
|
set RsMSYS2Architecture=clang-aarch64
|
||||||
set MSYSTEM=CLANGARM64
|
set MSYSTEM=CLANGARM64
|
||||||
)
|
)
|
||||||
|
|
||||||
if "%ParamClang%"=="1" (
|
|
||||||
set RsCompiler=Clang
|
|
||||||
) else (
|
|
||||||
set RsCompiler=GCC
|
|
||||||
)
|
|
||||||
|
|
||||||
if "%ParamRelease%"=="1" (
|
if "%ParamRelease%"=="1" (
|
||||||
if "%ParamDebug%"=="1" (
|
if "%ParamDebug%"=="1" (
|
||||||
echo.
|
echo.
|
||||||
|
@ -162,7 +154,6 @@ echo autologin Build with autologin
|
||||||
echo plugins Build plugins
|
echo plugins Build plugins
|
||||||
echo webui Enable JsonAPI and pack webui files
|
echo webui Enable JsonAPI and pack webui files
|
||||||
echo singlethread Use only 1 thread for building
|
echo singlethread Use only 1 thread for building
|
||||||
echo clang Use clang compiler instead of GCC
|
|
||||||
echo indexing Build with deep channel and file indexing support
|
echo indexing Build with deep channel and file indexing support
|
||||||
echo friendserver Enable friendserver support
|
echo friendserver Enable friendserver support
|
||||||
echo noupdate Skip updating the libraries
|
echo noupdate Skip updating the libraries
|
||||||
|
|
|
@ -14,8 +14,8 @@ if "%QtVersion%"=="" %cecho% error "Cannot get Qt version." & exit /B 1
|
||||||
|
|
||||||
set RsMinGWPath=%EnvMSYS2BasePath%\%RsToolchain%
|
set RsMinGWPath=%EnvMSYS2BasePath%\%RsToolchain%
|
||||||
|
|
||||||
set RsBuildPath=%BuildPath%\Qt-%QtVersion%-%RsToolchain%-%RsCompiler%-%RsBuildConfig%
|
set RsBuildPath=%BuildPath%\Qt-%QtVersion%-%RsToolchain%-%RsBuildConfig%
|
||||||
set RsDeployPath=%DeployPath%\Qt-%QtVersion%%RsType%-%RsToolchain%-%RsCompiler%-%RsBuildConfig%
|
set RsDeployPath=%DeployPath%\Qt-%QtVersion%-%RsToolchain%%RsType%-%RsBuildConfig%
|
||||||
set RsPackPath=%DeployPath%
|
set RsPackPath=%DeployPath%
|
||||||
set RsArchiveAdd=
|
set RsArchiveAdd=
|
||||||
set RsWebuiBuildPath=%RsBuildPath%\retroshare-webui\webui
|
set RsWebuiBuildPath=%RsBuildPath%\retroshare-webui\webui
|
||||||
|
|
|
@ -71,9 +71,9 @@ if "%QtMainVersion%"=="4" set QtMainVersion2=4
|
||||||
if "%QtMainVersion%"=="5" set QtMainVersion1=5
|
if "%QtMainVersion%"=="5" set QtMainVersion1=5
|
||||||
|
|
||||||
if "%RsBuildConfig%" NEQ "release" (
|
if "%RsBuildConfig%" NEQ "release" (
|
||||||
set Archive=%RsPackPath%\RetroShare-%RsVersion%-Windows-Portable-%RsDate%-%RsVersion.Extra%-%RsArchitecture%-msys2%RsType%%RsArchiveAdd%-%RsBuildConfig%.7z
|
set Archive=%RsPackPath%\RetroShare-%RsVersion%-Windows-Portable-%RsDate%-%RsVersion.Extra%-%RsToolchain%-msys2%RsType%%RsArchiveAdd%-%RsBuildConfig%.7z
|
||||||
) else (
|
) else (
|
||||||
set Archive=%RsPackPath%\RetroShare-%RsVersion%-Windows-Portable-%RsDate%-%RsVersion.Extra%-%RsArchitecture%-msys2%RsType%%RsArchiveAdd%.7z
|
set Archive=%RsPackPath%\RetroShare-%RsVersion%-Windows-Portable-%RsDate%-%RsVersion.Extra%-%RsToolchain%-msys2%RsType%%RsArchiveAdd%.7z
|
||||||
)
|
)
|
||||||
|
|
||||||
if exist "%Archive%" del /Q "%Archive%"
|
if exist "%Archive%" del /Q "%Archive%"
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
;!define REVISION ""
|
;!define REVISION ""
|
||||||
;!define DEPLOYDIR ""
|
;!define DEPLOYDIR ""
|
||||||
;!define ARCHITECTURE ""
|
;!define ARCHITECTURE ""
|
||||||
|
;!define TOOLCHAIN ""
|
||||||
|
|
||||||
# Optional defines
|
# Optional defines
|
||||||
;!define OUTDIR ""
|
;!define OUTDIR ""
|
||||||
|
@ -21,6 +22,9 @@
|
||||||
!ifndef ARCHITECTURE
|
!ifndef ARCHITECTURE
|
||||||
!error "ARCHITECTURE is not defined"
|
!error "ARCHITECTURE is not defined"
|
||||||
!endif
|
!endif
|
||||||
|
!ifndef TOOLCHAIN
|
||||||
|
!error "TOOLCHAIN is not defined"
|
||||||
|
!endif
|
||||||
|
|
||||||
# Check optional defines
|
# Check optional defines
|
||||||
!ifdef OUTDIR
|
!ifdef OUTDIR
|
||||||
|
@ -72,7 +76,7 @@ ${!defineifexist} TOR_EXISTS "${DEPLOYDIR}\tor.exe"
|
||||||
# Main Install settings
|
# Main Install settings
|
||||||
Name "${APPNAMEANDVERSION}"
|
Name "${APPNAMEANDVERSION}"
|
||||||
InstallDirRegKey HKLM "Software\${APPNAME}" ""
|
InstallDirRegKey HKLM "Software\${APPNAME}" ""
|
||||||
OutFile "${OUTDIR_}RetroShare-${VERSION}-${Date}-${REVISION}-${ARCHITECTURE}${RSTYPE}${INSTALLERADD}-setup.exe"
|
OutFile "${OUTDIR_}RetroShare-${VERSION}-${Date}-${REVISION}-${TOOLCHAIN}-msys2${RSTYPE}${INSTALLERADD}-setup.exe"
|
||||||
BrandingText "${APPNAMEANDVERSION}"
|
BrandingText "${APPNAMEANDVERSION}"
|
||||||
RequestExecutionlevel highest
|
RequestExecutionlevel highest
|
||||||
# Use compression
|
# Use compression
|
||||||
|
|
|
@ -55,7 +55,6 @@ Run the scripts in this order:
|
||||||
* "CONFIG+=..." enable other extra compile time features, you can find the almost complete list in file *<sourcefolder>\retroshare.pri*
|
* "CONFIG+=..." enable other extra compile time features, you can find the almost complete list in file *<sourcefolder>\retroshare.pri*
|
||||||
* For fixing compile problems (optional)
|
* For fixing compile problems (optional)
|
||||||
* singlethread: use only 1 thread for building, slow but useful if you don't find the error message in the console
|
* singlethread: use only 1 thread for building, slow but useful if you don't find the error message in the console
|
||||||
* clang: use clang compiler instead of GCC
|
|
||||||
* noupdate: skip the msys2 update step, sometimes some msys2 packages are broken, you can manually switch back to the older package, and this option will prevent updating to the broken version again
|
* noupdate: skip the msys2 update step, sometimes some msys2 packages are broken, you can manually switch back to the older package, and this option will prevent updating to the broken version again
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
|
@ -65,6 +65,9 @@ HomePage::HomePage(QWidget *parent) :
|
||||||
QAction *RecAction = new QAction(QIcon(),tr("Recommend friends to each others"), this);
|
QAction *RecAction = new QAction(QIcon(),tr("Recommend friends to each others"), this);
|
||||||
connect(RecAction, SIGNAL(triggered()), this, SLOT(recommendFriends()));
|
connect(RecAction, SIGNAL(triggered()), this, SLOT(recommendFriends()));
|
||||||
|
|
||||||
|
QAction *SaveAction = new QAction(QIcon(),tr("Save to File"), this);
|
||||||
|
connect(SaveAction, SIGNAL(triggered()), this, SLOT(saveCert()));
|
||||||
|
|
||||||
QAction *SendAction = new QAction(QIcon(),tr("Send via Email"), this);
|
QAction *SendAction = new QAction(QIcon(),tr("Send via Email"), this);
|
||||||
connect(SendAction, SIGNAL(triggered()), this, SLOT(runEmailClient()));
|
connect(SendAction, SIGNAL(triggered()), this, SLOT(runEmailClient()));
|
||||||
|
|
||||||
|
@ -75,6 +78,7 @@ HomePage::HomePage(QWidget *parent) :
|
||||||
menu->addAction(CopyIdAction);
|
menu->addAction(CopyIdAction);
|
||||||
|
|
||||||
menu->addSeparator();
|
menu->addSeparator();
|
||||||
|
menu->addAction(SaveAction);
|
||||||
menu->addAction(SendAction);
|
menu->addAction(SendAction);
|
||||||
menu->addAction(WebMailAction);
|
menu->addAction(WebMailAction);
|
||||||
menu->addAction(RecAction);
|
menu->addAction(RecAction);
|
||||||
|
|
|
@ -734,7 +734,10 @@ android-* {
|
||||||
# To export all symbols for the plugins on Windows build we need to build
|
# To export all symbols for the plugins on Windows build we need to build
|
||||||
# libretroshare as shared library. Fix linking error (ld.exe: Error: export
|
# libretroshare as shared library. Fix linking error (ld.exe: Error: export
|
||||||
# ordinal too large) due to too many exported symbols.
|
# ordinal too large) due to too many exported symbols.
|
||||||
retroshare_plugins:win32:CONFIG *= libretroshare_shared
|
#retroshare_plugins:win32:CONFIG *= libretroshare_shared
|
||||||
|
|
||||||
|
# Always build libretroshare on Windows as shared library to be compatible when building with and without plugins
|
||||||
|
win32:CONFIG *= libretroshare_shared
|
||||||
|
|
||||||
win32-g++|win32-clang-g++ {
|
win32-g++|win32-clang-g++ {
|
||||||
!isEmpty(EXTERNAL_LIB_DIR) {
|
!isEmpty(EXTERNAL_LIB_DIR) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue