Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
14 changes: 7 additions & 7 deletions docs/build_mozc_for_linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ descriptions below and make sure the operations before running them.
git clone https://github.com/google/mozc.git --recursive
cd mozc/src

bazelisk build package --config oss_linux --config release_build
bazelisk build package --config stable_channel --config oss_linux --config release_build
```

`bazel-bin/unix/mozc.zip` contains built files.
Expand Down Expand Up @@ -116,7 +116,7 @@ You should be able to build Mozc for Linux desktop as follows, assuming
`bazelisk` is in your `$PATH`.

```
bazelisk build package --config oss_linux --config release_build
bazelisk build package --config stable_channel --config oss_linux --config release_build
```

`package` is an alias to build Mozc executables and archive them into
Expand Down Expand Up @@ -174,23 +174,23 @@ git update-index --no-assume-unchanged src/config.bzl
### Run all tests

```
bazelisk test ... --config oss_linux --build_tests_only -c dbg
bazelisk test ... --config stable_channel --config oss_linux --build_tests_only -c dbg
```

* `...` means all targets under the current and subdirectories.

### Run tests under the specific directories

```
bazelisk test base/... composer/... --config oss_linux --build_tests_only -c dbg
bazelisk test base/... composer/... --config stable_channel --config oss_linux --build_tests_only -c dbg
```

* `<dir>/...` means all targets under the `<dir>/` directory.

### Run tests without the specific directories

```
bazelisk test ... --config oss_linux --build_tests_only -c dbg -- -base/...
bazelisk test ... --config stable_channel --config oss_linux --build_tests_only -c dbg -- -base/...
```

* `--` means the end of the flags which start from `-`.
Expand All @@ -199,15 +199,15 @@ bazelisk test ... --config oss_linux --build_tests_only -c dbg -- -base/...
### Run the specific test

```
bazelisk test base:util_test --config oss_linux -c dbg
bazelisk test base:util_test --config stable_channel --config oss_linux -c dbg
```

* `util_test` is defined in `base/BUILD.bazel`.

### Output logs to stderr

```
bazelisk test base:util_test --config oss_linux --test_arg=--stderrthreshold=0 --test_output=all
bazelisk test base:util_test --config stable_channel --config oss_linux --test_arg=--stderrthreshold=0 --test_output=all
```

* The `--test_arg=--stderrthreshold=0 --test_output=all` flags shows the
Expand Down
2 changes: 1 addition & 1 deletion scripts/build_fcitx5_bazel
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

_BUILD_TARGETS="${_BUILD_TARGETS:-unix/fcitx5:fcitx5-mozc.so server:mozc_server gui/tool:mozc_tool}"

bazel build -c opt --copt=-fPIC --config oss_linux --define server=1 "$@" $_BUILD_TARGETS
bazel build -c opt --copt=-fPIC --config stable_channel --config oss_linux --define server=1 "$@" $_BUILD_TARGETS
2 changes: 1 addition & 1 deletion scripts/build_fcitx_bazel
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

_BUILD_TARGETS="${_BUILD_TARGETS:-unix/fcitx:fcitx-mozc.so server:mozc_server gui/tool:mozc_tool}"

bazel build -c opt --copt=-fPIC --config oss_linux "$@" $_BUILD_TARGETS
bazel build -c opt --copt=-fPIC --config stable_channel --config oss_linux "$@" $_BUILD_TARGETS
2 changes: 1 addition & 1 deletion scripts/get_mozc_version
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
set -e
bazel build --config oss_linux base:mozc_version_txt >/dev/null 2>&1
bazel build --config stable_channel --config oss_linux base:mozc_version_txt >/dev/null 2>&1
python3 -c 'from build_tools.mozc_version import MozcVersion; print(MozcVersion("bazel-bin/base/mozc_version.txt").GetVersionString())'
Loading