mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 22:25:04 -04:00
Windows build environment:
- Added build script - Added build-installer script - Added pack script - Added gitlog script - Use shadow build
This commit is contained in:
parent
ebfc82cc1e
commit
a35985e3fc
60 changed files with 1357 additions and 444 deletions
34
build_scripts/Windows/tools/get-qt-version.bat
Normal file
34
build_scripts/Windows/tools/get-qt-version.bat
Normal file
|
@ -0,0 +1,34 @@
|
|||
:: Usage:
|
||||
:: call get-qt-version.bat variable
|
||||
|
||||
setlocal
|
||||
|
||||
set Var=%~1
|
||||
if "%Var%"=="" (
|
||||
echo.
|
||||
echo Parameter error.
|
||||
exit /B 1
|
||||
)
|
||||
|
||||
set QtVersion=
|
||||
|
||||
call "%~dp0find-in-path.bat" QMakePath qmake.exe
|
||||
if "%QMakePath%"=="" (
|
||||
echo.
|
||||
echo Cannot find qmake.exe in PATH.
|
||||
goto exit
|
||||
)
|
||||
|
||||
qmake.exe -version >"%~dp0qtversion.tmp"
|
||||
for /F "tokens=1,2,3,4" %%A in (%~sdp0qtversion.tmp) do (
|
||||
if "%%A"=="Using" (
|
||||
set QtVersion=%%D
|
||||
goto exit
|
||||
)
|
||||
)
|
||||
|
||||
:exit
|
||||
if exist "%~dp0qtversion.tmp" del /Q "%~dp0qtversion.tmp"
|
||||
|
||||
endlocal & set %Var%=%QtVersion%
|
||||
exit /B 0
|
Loading…
Add table
Add a link
Reference in a new issue