Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Windows build instruction #1079

Merged
merged 2 commits into from
Oct 15, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions docs/build_mozc_in_windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@ cd mozc\src

python build_tools/update_deps.py
python build_tools/build_qt.py --release --confirm_license
# Choose one of the following:
# 1. Build with GYP
python build_mozc.py gyp
python build_mozc.py build -c Release package
# 2. Build with Bazel
tats-u marked this conversation as resolved.
Show resolved Hide resolved
bazel --bazelrc=windows.bazelrc build --config oss_windows --config release_build package

# Install Mozc
out_win\Release\Mozc64.msi
Expand All @@ -40,6 +44,8 @@ Building Mozc on Windows requires the following software.
* `six`
* `requests`
* `.NET 6` or later (for `dotnet` command).
* [Bazel](https://bazel.build/) (If you are building Mozc with Bazel. However, you do not need to install a new JDK just for Mozc)
tats-u marked this conversation as resolved.
Show resolved Hide resolved
* [MSYS2](https://github.com/msys2/msys2) (if you use Bazel)
tats-u marked this conversation as resolved.
Show resolved Hide resolved

### Install pip modules

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

## Build with Bazel (experimental)

If you installed Bazel via [Scoop](https://scoop.sh), it is recommended to install MSYS2 via Scoop, too.
tats-u marked this conversation as resolved.
Show resolved Hide resolved

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

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

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