-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_windows.bat
More file actions
55 lines (47 loc) · 1.37 KB
/
build_windows.bat
File metadata and controls
55 lines (47 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
@echo off
REM Build script for VpeNativeInput on Windows
set SCRIPT_DIR=%~dp0
set OUTPUT_DIR=%SCRIPT_DIR%artifacts\win-x64
echo ========================================
echo Building VpeNativeInput for Windows
echo ========================================
REM Check if CMake is installed
where cmake >nul 2>nul
if %ERRORLEVEL% NEQ 0 (
echo ERROR: CMake not found. Please install CMake and add it to PATH.
exit /b 1
)
REM Create build directory
if not exist build mkdir build
cd build
REM Configure CMake (Visual Studio 2022, x64)
echo.
echo Configuring CMake...
cmake .. -G "Visual Studio 17 2022" -A x64 -DNATIVEINPUT_OUTPUT_DIR="%OUTPUT_DIR%"
if %ERRORLEVEL% NEQ 0 (
echo ERROR: CMake configuration failed.
cd ..
exit /b 1
)
REM Build Release configuration
echo.
echo Building Release configuration...
cmake --build . --config Release
if %ERRORLEVEL% NEQ 0 (
echo ERROR: Build failed.
cd ..
exit /b 1
)
cd ..
echo.
echo ========================================
echo Build complete!
echo ========================================
echo.
echo Output: artifacts\win-x64\VisualPinball.NativeInput.dll
echo.
echo Next steps:
echo 1. Pack/publish VisualPinball.NativeInput NuGet package from artifacts
echo 2. Update VisualPinball.Engine package version if needed
echo 3. Build VisualPinball.Engine to copy binaries into Unity Plugins
echo.