-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.bat
More file actions
44 lines (40 loc) · 1.06 KB
/
build.bat
File metadata and controls
44 lines (40 loc) · 1.06 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
@echo off
echo ================================
echo Building Keyboard Macro Tool v1.2
echo ================================
echo.
REM Check if g++ is available
where g++ >nul 2>nul
if %errorlevel% neq 0 (
echo ERROR: g++ compiler not found!
echo Please install MinGW-w64 or another C++ compiler.
echo.
echo You can download MinGW-w64 from:
echo https://www.mingw-w64.org/downloads/
echo.
echo After installation, make sure g++ is in your PATH.
pause
exit /b 1
)
REM Compile the program
echo Compiling macro_tool.cpp...
g++ -o macro_tool.exe macro_tool.cpp -luser32 -std=c++23 -O3 -Wall -static
if %errorlevel% neq 0 (
echo.
echo ERROR: Compilation failed!
echo Please check the error messages above.
pause
exit /b 1
)
echo.
echo ================================
echo Build successful!
echo ================================
echo.
echo Executable created: macro_tool.exe
echo.
echo To run the macro tool:
echo macro_tool.exe (uses macro.ini)
echo macro_tool.exe config.ini (uses custom config file)
echo.
pause