@@ -24,6 +24,8 @@ out_win\Release\Mozc64.msi
24
24
25
25
Hint: You can also download ` Mozc64.msi ` from GitHub Actions. Check [ Build with GitHub Actions] ( #build-with-github-actions ) for details.
26
26
27
+ Hint: You can use Bazel to build Mozc (experimental). For details, please see below.
28
+
27
29
## Setup
28
30
29
31
### System Requirements
@@ -41,6 +43,8 @@ Building Mozc on Windows requires the following software.
41
43
* ` requests `
42
44
* ` .NET 6 ` or later (for ` dotnet ` command).
43
45
46
+ For additional requirements for building Mozc with Bazel, please see below.
47
+
44
48
### Install pip modules
45
49
46
50
```
@@ -160,12 +164,26 @@ Note that you can specify `--qtdir=` option instead of `--noqt` in GYP phase sin
160
164
161
165
## Build with Bazel (experimental)
162
166
167
+ Additional requirements:
168
+
169
+ * [ Bazel] ( https://bazel.build/ )
170
+ * [ MSYS2] ( https://github.com/msys2/msys2 )
171
+
172
+ After running ` build_tools/update_deps.py ` and ` build_tools/build_qt.py ` , run the following command instead of ` build_mozc.py ` :
173
+
163
174
```
164
175
bazel --bazelrc=windows.bazelrc build --config oss_windows --config release_build package
165
176
```
166
177
167
178
You have release build binaries in ` bazel-bin\win32\installer\Mozc64.msi ` .
168
179
180
+ ### Tips for Bazel setup
181
+
182
+ * You do not need to install a new JDK just for Mozc.
183
+ * If you installed Bazel via [ Scoop] ( https://scoop.sh ) , it is recommended to install MSYS2 via Scoop, too.
184
+
185
+ https://bazel.build/install/windows?hl=ja#install-compilers
186
+
169
187
---
170
188
171
189
## Build with GitHub Actions
0 commit comments