Android Adopts Bazel For Build System
Written by Kay Ewbank   
Thursday, 19 November 2020

The Android Platform is migrating from its current build systems (Soong and Make) to Bazel. While components of Bazel have been already checked into the Android Open Source Project (AOSP) source tree, this will be a phased migration over the next few Android releases. 

Bazel, which originated at Google, is an open source tool that automates software building and testing. Google developed, and uses, the build tool Blaze internally and released an open-sourced part of Blaze as Bazel, named as an anagram of Blaze. The developers describe Bazel as similar to Make, Maven, and Gradle. It uses a human-readable, high-level build language to describe the build properties of your project at a high semantical level. Bazel uses the concepts of libraries, binaries, scripts, and data sets to avoid the need for developers to write individual calls to tools such as compilers and linkers.

bazel

The developers say the migration will include

"many concrete and digestible milestones to make the transformation as seamless and easy as possible."

Migrating to Bazel will enable AOSP to provide more flexibility for configuring the AOSP build through better support for conditionals. It will also give the AOSP developers more insight into the AOSP build progress and dependencies. The AOSP builds will be reproducible and hermetic, and the Bazel configuration mechanism will reduce build complexity. The AOSP team says the new system will also allow for greater integration of build and test activities.

The migration will also benefit Bazel through significant ongoing investment in Bazel to support the Android Platform builds, and an expansion of the Bazel ecosystem and community to include, initially, tens of thousands of Android Platform developers and Android handset OEMs and chipset vendors.

Google’s Bazel rules for building Android apps will be open sourced, used in AOSP, and maintained by Google in partnership with the Android / Bazel community. The team says this will lead to better rules support for other languages used to build Android platform, including Rust, Java, Python and Go.

bazel

More Information

Bazel On GitHub

Bazel HomePage

Related Articles

Bazel 1.0 Released

Gradle 2.0 Released

 

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.

Banner


Google Boosts Opportunities For Job Seekers
15/03/2021

Google has announced renewed efforts towards helping people without university degrees to prepare for and land jobs in the technology sector. These include expanding its employer consortium of compani [ ... ]



Automatic Off-By-One Detection
31/03/2021

We all know about off-by-one errors and also know that, however aware of the problem you might be, they manage to bite us eventually. What about applying the power of deep learning? Perhaps this magic [ ... ]


More News

square

 



 

Comments




or email your comment to: comments@i-programmer.info