forked from aseprite/aseprite
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
4 changed files
with
468 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,4 +14,5 @@ | |
.vs | ||
tests/_test* | ||
build | ||
.build | ||
CMakeSettings.json |
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,14 @@ | ||
@echo off | ||
|
||
rem If cl.exe is not available, we try to run the vcvars64.bat | ||
where cl.exe >nul 2>nul | ||
if %errorlevel%==1 ( | ||
@call "%ProgramFiles%\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat" | ||
) | ||
|
||
rem Add an extra path element which will be invalidated by Git Bash. | ||
rem In this way we avoid invalidating the PATH location where cl.exe is. | ||
set PATH=.;%PATH% | ||
|
||
powershell -ExecutionPolicy Bypass -File .\build.ps1 %* | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
if (Test-Path "$env:ProgramFiles\Git\bin") { | ||
$env:Path = "$env:ProgramFiles\Git\bin;$env:ProgramFiles\Git\mingw64\bin" + $env:Path | ||
} | ||
elseif (Test-Path "$env:ProgramFiles(x86)\Git\bin") { | ||
$env:Path = "$env:ProgramFiles(x86)\Git\bin;$env:ProgramFiles(x86)\Git\mingw64\bin;" + $env:Path | ||
} | ||
|
||
try { | ||
sh.exe build.sh $args | ||
} | ||
catch { | ||
echo "bash.exe doesn't found" | ||
echo "`r`nInstall Git Bash from:" | ||
echo "`r`n https://gitforwindows.org/`r`n" | ||
} |
Oops, something went wrong.