Skip to content

Commit be811bf

Browse files
authored
Improve Windows build instruction (#1079)
PiperOrigin-RevId: 686026277
1 parent 7be5a73 commit be811bf

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

docs/build_mozc_in_windows.md

+18
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ out_win\Release\Mozc64.msi
2424

2525
Hint: You can also download `Mozc64.msi` from GitHub Actions. Check [Build with GitHub Actions](#build-with-github-actions) for details.
2626

27+
Hint: You can use Bazel to build Mozc (experimental). For details, please see below.
28+
2729
## Setup
2830

2931
### System Requirements
@@ -41,6 +43,8 @@ Building Mozc on Windows requires the following software.
4143
* `requests`
4244
* `.NET 6` or later (for `dotnet` command).
4345

46+
For additional requirements for building Mozc with Bazel, please see below.
47+
4448
### Install pip modules
4549

4650
```
@@ -160,12 +164,26 @@ Note that you can specify `--qtdir=` option instead of `--noqt` in GYP phase sin
160164

161165
## Build with Bazel (experimental)
162166

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+
163174
```
164175
bazel --bazelrc=windows.bazelrc build --config oss_windows --config release_build package
165176
```
166177

167178
You have release build binaries in `bazel-bin\win32\installer\Mozc64.msi`.
168179

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+
169187
---
170188

171189
## Build with GitHub Actions

0 commit comments

Comments
 (0)