This repository has been archived by the owner on Dec 8, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bb57ede
commit 489e2a9
Showing
6 changed files
with
2,015 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,19 @@ | ||
set BuiltInVsWhereExe="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" | ||
if not defined ProgramFiles(x86) ( set "BuiltInVsWhereExe="%ProgramFiles%\Microsoft Visual Studio\Installer\vswhere.exe"" ) | ||
|
||
if not exist %BuiltInVsWhereExe% (echo 请安装VS2017或者更高版本然后继续!& goto:eof ) | ||
|
||
for /f "tokens=*" %%i in ('%BuiltInVsWhereExe% -latest -prerelease -property installationPath') do ( set LatestVisualStudioRoot=%%i) | ||
|
||
@call "%LatestVisualStudioRoot%\VC\Auxiliary\Build\vcvarsamd64_arm.bat" | ||
|
||
set libfile=%~dp0..\..\..\..\VC\14.11.25503\lib\%Platform%\vccorlib.lib | ||
|
||
del "%libfile%" /q | ||
lib /MACHINE:%Platform% /DEF:"%~dp0..\..\..\..\src\%Platform%\wincorlib.def" /out:"%libfile%" | ||
lib /MACHINE:%Platform% "%libfile%" "%~dp0vccorlib.lib" | ||
|
||
lib "%libfile%" /remove:vccorlib140.dll | ||
lib /MACHINE:%Platform% "%libfile%" "%~dp0..\..\..\..\Redist\%Platform%\vccorlib140_ltl.lib" | ||
|
||
pause |
Oops, something went wrong.