-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 'Build_all.bat' script to compile all targets
- Loading branch information
Showing
13 changed files
with
165 additions
and
8 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,32 @@ | ||
@echo off | ||
|
||
:: Locate Visual Studio installation and MSBuild path using vswhere | ||
for /f "tokens=*" %%i in ('"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -latest -products * -requires Microsoft.Component.MSBuild -find MSBuild\**\Bin\MSBuild.exe') do set msbuild_path=%%i | ||
|
||
:: Check if MSBuild was found | ||
if not defined msbuild_path ( | ||
echo MSBuild.exe not found! | ||
exit /b 1 | ||
) | ||
|
||
:: Set your solution file name | ||
set solution=vgframework.sln | ||
|
||
:: List of configurations and platforms to build | ||
set configurations=Debug Release Final | ||
set platforms="Win64 DX12" "Win64 Vulkan" "ARM64EC DX12" "ARM64EC Vulkan" | ||
|
||
:: Loop through each configuration | ||
for %%c in (%configurations%) do ( | ||
:: Loop through each platform | ||
for %%p in (%platforms%) do ( | ||
echo Building Configuration: %%c, Platform: %%p | ||
"%msbuild_path%" %solution% /p:Configuration=%%c /p:Platform=%%p /m | ||
if errorlevel 1 ( | ||
echo Build failed for Configuration: %%c, Platform: %%p | ||
exit /b 1 | ||
) | ||
) | ||
) | ||
|
||
echo Build completed for all configurations and platforms. |
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 |
---|---|---|
|
@@ -31,4 +31,5 @@ del *.pdb | |
cd .. | ||
cd .. | ||
del package.bat | ||
del build_all.bat | ||
|
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
Binary file not shown.
File renamed without changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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