-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from treefrogframework/support_copypaste
Support copy and paste
- Loading branch information
Showing
7 changed files
with
171 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
@echo off | ||
|
||
set PATH=C:\Qt\6.7.0\msvc2019_64\bin;%PATH% | ||
set CWD=%~dp0 | ||
|
||
set VCVARSBAT="" | ||
set VSVER=2022 2019 2017 | ||
set VSWHERE="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" | ||
|
||
where cl.exe >NUL 2>&1 | ||
if ERRORLEVEL 1 ( | ||
if exist %VSWHERE% ( | ||
for %%v in (%VSVER%) do ( | ||
for /f "usebackq tokens=*" %%i in (`%VSWHERE% -find **\vcvarsall.bat`) do ( | ||
echo %%i | find "%%v" >NUL | ||
if not ERRORLEVEL 1 ( | ||
set VCVARSBAT="%%i" | ||
set VSVER=%%v | ||
goto :break | ||
) | ||
) | ||
) | ||
) | ||
|
||
:break | ||
if exist %VCVARSBAT% ( | ||
echo Setting up environment for MSVC %VSVER% usage... | ||
call %VCVARSBAT% amd64 | ||
) | ||
) | ||
|
||
cd /D %CWD% | ||
qmake | ||
nmake | ||
if ERRORLEVEL 1 ( | ||
pause | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,30 @@ | ||
@echo OFF | ||
@echo off | ||
|
||
set CWD=%~dp0 | ||
set VCVARSBAT="" | ||
set VSVER= | ||
set VSVER2022=2022 | ||
set VSVER2019=2019 | ||
set VSVER2017=2017 | ||
set VSWHERE="%PROGRAMFILES(X86)%\Microsoft Visual Studio\Installer\vswhere.exe" | ||
set VSVER=2022 2019 2017 | ||
set VSWHERE="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" | ||
|
||
if exist %VSWHERE% ( | ||
for /f "usebackq tokens=*" %%i in (`%VSWHERE% -find **\vcvarsall.bat`) do ( | ||
echo %%i | find "%VSVER2022%" >NUL | ||
if not ERRORLEVEL 1 ( | ||
set VCVARSBAT="%%i" | ||
set VSVER=%VSVER2022% | ||
goto :break | ||
) | ||
echo %%i | find "%VSVER2019%" >NUL | ||
if not ERRORLEVEL 1 ( | ||
set VCVARSBAT="%%i" | ||
set VSVER=%VSVER2019% | ||
goto :break | ||
) | ||
echo %%i | find "%VSVER2017%" >NUL | ||
if not ERRORLEVEL 1 ( | ||
set VCVARSBAT="%%i" | ||
set VSVER=%VSVER2017% | ||
goto :break | ||
where cl.exe >NUL | ||
if ERRORLEVEL 1 ( | ||
if exist %VSWHERE% ( | ||
for %%v in (%VSVER%) do ( | ||
for /f "usebackq tokens=*" %%i in (`%VSWHERE% -find **\vcvarsall.bat`) do ( | ||
echo %%i | find "%%v" >NUL | ||
if not ERRORLEVEL 1 ( | ||
set VCVARSBAT="%%i" | ||
goto :break | ||
) | ||
) | ||
) | ||
) | ||
) | ||
|
||
:break | ||
if exist %VCVARSBAT% ( | ||
call %VCVARSBAT% amd64 >nul | ||
echo Set up environment for MSVC %VSVER% usage | ||
if exist %VCVARSBAT% ( | ||
echo Setting up environment for MSVC usage... | ||
call %VCVARSBAT% amd64 | ||
) | ||
) | ||
|
||
@rem Run cpi | ||
cd /D %CWD% | ||
cpi.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters