-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_windows.bat
More file actions
53 lines (46 loc) · 1.29 KB
/
build_windows.bat
File metadata and controls
53 lines (46 loc) · 1.29 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
@echo off
REM Build script for VpeNativeInput on Windows
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
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: VisualPinball.Engine\VisualPinball.Unity\VisualPinball.Unity\Plugins\win-x64\VpeNativeInput.dll
echo.
echo Next steps:
echo 1. Open Unity project
echo 2. Add SimulationThreadComponent to your table GameObject
echo 3. Enable "Enable Native Input" in Inspector
echo 4. Press Play
echo.