summaryrefslogtreecommitdiff
path: root/BUILD.md
blob: 3a581b1372a1a4451ac3dd8416b06b6e55251c1e (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
# Build Instructions

Debug build:
cmake -S . -B build
cmake --build build

Size-optimized build:
cmake -S . -B build -DDEMO_SIZE_OPT=ON
cmake --build build

## Windows Cross-Compilation (from macOS)

Requires `mingw-w64` and `wine-stable` (for testing).

1. Fetch Windows binaries:
   ```bash
   ./scripts/fetch_win_deps.sh
   ```

2. Build for Windows:
   ```bash
   ./scripts/build_win.sh
   ```
   This will produce `build_win/demo64k_packed.exe`.

3. Run with Wine:
   ```bash
   ./scripts/run_win.sh
   ```