Skip to content

Commit

Permalink
Improve Windows build instruction (#1079)
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 686026277
  • Loading branch information
tats-u authored Oct 15, 2024
1 parent 7be5a73 commit be811bf
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/build_mozc_in_windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ out_win\Release\Mozc64.msi

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

Hint: You can use Bazel to build Mozc (experimental). For details, please see below.

## Setup

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

For additional requirements for building Mozc with Bazel, please see below.

### Install pip modules

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

## Build with Bazel (experimental)

Additional requirements:

* [Bazel](https://bazel.build/)
* [MSYS2](https://github.com/msys2/msys2)

After running `build_tools/update_deps.py` and `build_tools/build_qt.py`, run the following command instead of `build_mozc.py`:

```
bazel --bazelrc=windows.bazelrc build --config oss_windows --config release_build package
```

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

### Tips for Bazel setup

* You do not need to install a new JDK just for Mozc.
* If you installed Bazel via [Scoop](https://scoop.sh), it is recommended to install MSYS2 via Scoop, too.

https://bazel.build/install/windows?hl=ja#install-compilers

---

## Build with GitHub Actions
Expand Down

0 comments on commit be811bf

Please sign in to comment.