Skip to content

Commit

Permalink
Remove WORKSPACE support from Bazel builds
Browse files Browse the repository at this point in the history
  • Loading branch information
yukawa committed Nov 2, 2024
1 parent e1b40ed commit 78b77b4
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 352 deletions.
1 change: 1 addition & 0 deletions docs/build_mozc_in_osx.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ Building on Mac requires the following software.
* Xcode 13 (macOS 13 SDK) or later
* ⚠️Xcode Command Line Tools aren't sufficient.
* [Bazel](https://docs.bazel.build/versions/master/install-os-x.html) for Bazel build
* Check [.bazelversion](../src/.bazelversion) about which Bazel version is tested.
* Python 3.9 or later with the following pip module.
* `requests`
* CMake 3.18.4 or later (to build Qt6)
Expand Down
1 change: 1 addition & 0 deletions docs/build_mozc_in_windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ Note that you can specify `--qtdir=` option instead of `--noqt` in GYP phase sin
Additional requirements:

* [Bazel](https://bazel.build/)
* Check [.bazelversion](../src/.bazelversion) about which Bazel version is tested.
* [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`:
Expand Down
16 changes: 2 additions & 14 deletions src/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,6 @@ common:android --config=android_env --define TARGET=oss_android
common:oss_android --config=android_env --define TARGET=oss_android
common:prod_android --config=android_env --define TARGET=prod_android

## Bzlmod options: Bzlmod is the default except for Android.
common:linux_env --config=bzlmod
common:macos_env --config=bzlmod
common:windows_env --config=bzlmod
common:android_env --config=bzlmod

common:bzlmod --enable_bzlmod
common:workspace --noenable_bzlmod

## Dev channel
build:dev_channel --define CHANNEL=dev

Expand Down Expand Up @@ -74,9 +65,6 @@ build:windows_env --noincompatible_enable_cc_toolchain_resolution
# Android specific options
build:android_env --copt "-DOS_ANDROID"
build:android_env --build_tag_filters=-noandroid
test:android_env --test_tag_filters=-noandroid

## Android Blzmod specific options
### --experimental_google_legacy_api is required for all platforms.
build:bzlmod --experimental_google_legacy_api
build:android_env --experimental_google_legacy_api
build:android_env --experimental_enable_android_migration_apis
test:android_env --test_tag_filters=-noandroid
332 changes: 0 additions & 332 deletions src/WORKSPACE.bazel

This file was deleted.

6 changes: 0 additions & 6 deletions src/WORKSPACE.bzlmod

This file was deleted.

0 comments on commit 78b77b4

Please sign in to comment.