blob: a1995d6f6cb9ee12c8f565fdb0538674be1d2d30 (
plain)
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
@echo off
REM ReiLua Development Build Script
REM Run this from w64devkit shell or CMD with MinGW in PATH
echo ================================
echo ReiLua - Development Build
echo ================================
echo.
REM Get script directory and navigate to project root
cd /d "%~dp0.."
REM Create and navigate to build directory
if not exist "build" mkdir build
cd build
if errorlevel 1 (
echo ERROR: Cannot access build directory
exit /b 1
)
REM ALWAYS clean build folder for fresh build
echo Cleaning build directory for fresh build...
del /Q /S * >nul 2>&1
for /d %%p in (*) do rmdir "%%p" /s /q >nul 2>&1
echo * Build directory cleaned
echo.
REM Configure
echo Configuring CMake for development...
cmake -G "MinGW Makefiles" ..
if errorlevel 1 (
echo.
echo ERROR: CMake configuration failed!
pause
exit /b 1
)
REM Build
echo.
echo Building ReiLua...
mingw32-make
if errorlevel 1 (
echo.
echo ERROR: Build failed!
pause
exit /b 1
)
echo.
echo ================================
echo Build Complete!
echo ================================
echo.
echo Development build created successfully!
echo.
echo To run your game:
echo cd \path\to\your\game
echo \path\to\ReiLua\build\ReiLua.exe
echo.
echo To run with console logging:
echo \path\to\ReiLua\build\ReiLua.exe --log
echo.
echo Features:
echo - Lua files load from file system
echo - Assets load from file system
echo - Fast iteration - edit and reload
echo.
pause
|