Mesa hardware drivers can be built for Android one of two ways: built into the Android OS using the ndk-build build system on older versions of Android, or out-of-tree using the Meson build system and the Android NDK.