If you are not sure what the following commands do, please check the descriptions below and make sure the operations before running them.
git clone https://github.com/google/mozc.git
cd mozc/src
python3 build_tools/update_deps.py
bazelisk build package --config oss_android --config release_build
Client code for Android apk is deprecated. (the last revision with Android client code is afb03dd).
Currently macOS and Linux are tested to build libmozc.so
for Android.
Building libmozc.so
for Android requires the following software.
- bazelisk
- C++ compiler (GCC or clang)
- Python 3.9 or later
You can download Mozc source code as follows:
git clone https://github.com/google/mozc.git
cd mozc/src
Hereafter you can do all the operations without changing directory.
python3 build_tools/update_deps.py
In this step, additional build dependencies will be downloaded.
bazelisk build package --config oss_android --config release_build
package
is an alias to build android/jni:native_libs
.