blob: 3425fb8366394df79486f7662a7c4d3bd61a0fda (
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
|
# Themes
This subproject provides themes for the website.
## Prerequisites
- Emscripten SDK (emsdk)
- Meson build system (`pip install meson` or via your package manager)
- Ninja build backend (usually installed with Meson)
## Building
### Initial Setup
```bash
meson setup builddir --cross-file emscripten.ini
```
### Compile
```bash
meson compile -C builddir
```
The output files will be automatically copied to:
- `dist/output.js`
- `dist/output.wasm`
The original build artifacts are also available in `builddir/` if needed.
### Clean Build
```bash
# Clean and rebuild
meson compile -C builddir --clean
meson compile -C builddir
```
### Complete Clean
```bash
# Remove the build directory entirely
rm -rf builddir
```
## Build Options
You can configure build options during setup:
```bash
# Debug build
meson setup builddir --cross-file emscripten.ini --buildtype=debug
# Release build with optimizations
meson setup builddir --cross-file emescripten.ini --buildtype=release
# Reconfigure an existing build
meson configure builddir --buildtype=debug
```
|