Files
video-v1/vav2/platforms/windows/vavcore/build-windows.bat

69 lines
1.5 KiB
Batchfile

@echo off
REM VavCore Windows Build Script (for comparison with Android build)
setlocal enabledelayedexpansion
REM Configuration
set SCRIPT_DIR=%~dp0
set BUILD_DIR=%SCRIPT_DIR%build-windows
set BUILD_TYPE=Release
echo.
echo 🚀 VavCore Windows Build Configuration
echo =========================================
echo Script Directory: %SCRIPT_DIR%
echo Build Directory: %BUILD_DIR%
echo Build Type: %BUILD_TYPE%
echo =========================================
REM Clean previous build
if exist "%BUILD_DIR%" (
echo 🧹 Cleaning previous build...
rmdir /s /q "%BUILD_DIR%"
)
REM Create build directory
echo 📁 Creating build directory...
mkdir "%BUILD_DIR%"
REM Configure with CMake
echo ⚙️ Configuring VavCore for Windows...
cd /d "%BUILD_DIR%"
cmake ^
-G "Visual Studio 17 2022" ^
-A x64 ^
-DCMAKE_BUILD_TYPE=%BUILD_TYPE% ^
"%SCRIPT_DIR%"
if %ERRORLEVEL% neq 0 (
echo ❌ CMake configuration failed
exit /b 1
)
REM Build the library
echo 🔨 Building VavCore...
cmake --build . --config %BUILD_TYPE%
if %ERRORLEVEL% neq 0 (
echo ❌ Build failed
exit /b 1
)
REM Verify build output
echo 🔍 Verifying build output...
set LIB_FILE=%BUILD_DIR%\%BUILD_TYPE%\VavCore.lib
if exist "%LIB_FILE%" (
echo ✅ Build successful!
echo 📄 Library: %LIB_FILE%
dir "%LIB_FILE%"
) else (
echo ❌ Build verification failed - library not found
exit /b 1
)
echo.
echo 🎉 VavCore Windows build completed successfully!
pause