@echo off
REM ============================================================
REM  build_packimages.bat -- rebuilds packimages.dll from this folder.
REM
REM  Drop your images in the folder named after their TYPE (png\, svg\,
REM  ico\, jpg\, bmp\, gif\), run this, and copy the result over
REM  ..\img\packimages.dll.
REM
REM  Needs rc.exe (Windows SDK) and link.exe (Visual Studio Build Tools),
REM  both free from Microsoft. Nothing else.
REM ============================================================
SETLOCAL
SET "HERE=%~dp0"
powershell -NoProfile -ExecutionPolicy Bypass -File "%HERE%build_resource_dll.ps1" -Source "%HERE%." -Out "%HERE%packimages.dll"
IF ERRORLEVEL 1 (
    echo.
    echo FAILED. If the message above says "tool not found", install the
    echo Visual Studio Build Tools with the Windows SDK component :
    echo   https://visualstudio.microsoft.com/downloads/
    EXIT /B 1
)
echo.
echo Done : packimages.dll is in this folder.
echo Copy it over ..\img\packimages.dll to use it in the demonstration.
EXIT /B 0
