forked from catneptune/basicthemer6
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.cmd
More file actions
31 lines (26 loc) · 738 Bytes
/
build.cmd
File metadata and controls
31 lines (26 loc) · 738 Bytes
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
@echo off
setlocal enabledelayedexpansion
:: create output directory if it doesn't exist
if not exist ".\out" mkdir ".\out"
:: compile all source files with the following flags
g++ -O2 ^
.\src\main.cpp ^
.\src\process_monitor.cpp ^
.\src\window_manager.cpp ^
-o .\out\basicthemer.exe ^
-I.\src ^
-std=c++17 ^
-ldwmapi ^
-luser32 ^
-lgdi32 ^
-lshlwapi ^
-Wl,--subsystem,windows
:: verify if the compilation was successful
if %errorlevel% neq 0 (
echo error compiling
exit /b %errorlevel%
)
:: copy the example blacklist.txt to the output directory
copy /Y ".\src\blacklist.txt" ".\out\blacklist.txt" >nul 2>&1
echo build successful
echo executable generated in .\out\basicthemer.exe