Skip to content

Commit 47865f1

Browse files
docs: update readme (#224)
1 parent 1b219dc commit 47865f1

2 files changed

Lines changed: 27 additions & 15 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ jobs:
105105
mingw-w64-${{ matrix.toolchain }}-cmake
106106
mingw-w64-${{ matrix.toolchain }}-graphviz
107107
mingw-w64-${{ matrix.toolchain }}-ninja
108+
mingw-w64-${{ matrix.toolchain }}-nlohmann-json
108109
mingw-w64-${{ matrix.toolchain }}-nodejs
109110
mingw-w64-${{ matrix.toolchain }}-toolchain
110-
mingw-w64-${{ matrix.toolchain }}-nlohmann-json
111111
112112
- name: Setup python
113113
id: setup-python

README.md

Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,27 +28,39 @@ mkdir -p build
2828

2929
### Windows
3030

31-
#### Requirements
31+
First, you need to install [MSYS2](https://www.msys2.org).
3232

33-
First you need to install [MSYS2](https://www.msys2.org), then startup "MSYS2 UCRT64" and execute the following
34-
commands.
33+
For AMD64 startup "MSYS2 UCRT64" (or for ARM64 startup "MSYS2 CLANGARM64") then execute the following commands.
3534

36-
Update all packages:
35+
#### Update all packages
3736
```bash
3837
pacman -Syu
3938
```
4039

41-
Install dependencies:
40+
#### Set toolchain variable
41+
For UCRT64:
4242
```bash
43-
pacman -S \
44-
doxygen \
45-
mingw-w64-ucrt-x86_64-binutils \
46-
mingw-w64-ucrt-x86_64-cmake \
47-
mingw-w64-ucrt-x86_64-graphviz \
48-
mingw-w64-ucrt-x86_64-ninja \
49-
mingw-w64-ucrt-x86_64-toolchain \
50-
mingw-w64-ucrt-x86_64-boost \
51-
mingw-w64-ucrt-x86_64-nlohmann-json
43+
export TOOLCHAIN="ucrt-x86_64"
44+
```
45+
46+
For CLANGARM64:
47+
```bash
48+
export TOOLCHAIN="clang-aarch64"
49+
```
50+
51+
#### Install dependencies
52+
```bash
53+
dependencies=(
54+
"doxygen"
55+
"mingw-w64-${TOOLCHAIN}-boost"
56+
"mingw-w64-${TOOLCHAIN}-cmake"
57+
"mingw-w64-${TOOLCHAIN}-graphviz"
58+
"mingw-w64-${TOOLCHAIN}-ninja"
59+
"mingw-w64-${TOOLCHAIN}-nlohmann-json"
60+
"mingw-w64-${TOOLCHAIN}-nodejs"
61+
"mingw-w64-${TOOLCHAIN}-toolchain"
62+
)
63+
pacman -S "${dependencies[@]}"
5264
```
5365

5466
### Build

0 commit comments

Comments
 (0)