skiasharp/scripts/vcvarsall.bat
Matthew Leibowitz 79162b3cc3
Add support for WinUI accelerated views (#2733)
Adds the GPU views for WinUI, but there are a few othe things it need
to do:
- Builds ANGLE as this is the primary interop between SkiaSharp and
  DirectX
- Builds an interop library that extends types needed for interacting
  with ANGLE
- Enables AngleSwapChainPanel as this is the WinUI view that sets up
  the GL context
- Enables the SKSwapChainPanel as this is the SkiaSharp accelerated
  view
- Add a new NativeAssets package for WinUI native files
2024-02-03 18:25:18 +08:00

33 lines
612 B
Batchfile

@echo off
REM Check if all three arguments are provided
if "%~2"=="" (
echo Usage: %0 ^<visual studio root^> ^<vcvars args^> ^<script^>
exit /b 1
)
set __VSCMD_ARG_NO_LOGO=1
set VSCMD_START_DIR=%CD%
REM Run vcvarsall.bat script
call "%~1\VC\Auxiliary\Build\vcvarsall.bat" %~2
shift
shift
REM drop the path to the VS install
set "args="
:getRemainingArgs
if "%~1" neq "" (
set ^"args=%args% %1"
shift /1
goto :getRemainingArgs
)
REM Check if vcvarsall.bat ran successfully
if %errorlevel% neq 0 (
echo Error: Failed to run vcvarsall.bat
exit /b 1
)
REM Run the provided command
%args%