commit | 75dc840d93d4a647e08d241015292a177334c5a4 | [log] [tgz] |
---|---|---|
author | Prashanth Swaminathan <[email protected]> | Wed Feb 07 23:50:16 2024 -0800 |
committer | Prashanth Swaminathan <[email protected]> | Wed Feb 07 23:50:16 2024 -0800 |
tree | 360070e4df1aa95b6ecd85f8ac4d15b4f8f225a4 | |
parent | 8e1f260925118a3d7ab68ac496032a7e4bd8fadc [diff] |
Update Docker build to use latest dependencies Building against newer NDKs requires updated versions of cmake, which are unavailable in Debian stretch. Further, the base image now installs it's own Python without SSL. Update Docker to use the latest LTS Ubuntu image and update the required apt dependencies. Test: ./scripts/build_release.sh Change-Id: I609d85826e29c37ff8f029364bb584e8dec99c62
A collection of Android build scripts for various third-party libraries and the tooling to build them.
If you're an Android app developer looking to consume these libraries, this is probably not what you want. This project builds AARs to be published to Maven. You most likely want to use the AAR, not build it yourself.
Note: Gradle support for consuming these artifacts from an AAR is a work in progress.
Each third-party project is called a “port”. Ports consist of a description of where to fetch the source, apply any patches needed, build, install, and package the library into an AAR.
A port is a subclass of the abstract Kotlin class com.android.ndkports.Port
. Projects define the name and version of the port, the URL to fetch source from, a list of modules (libraries) to build, and the build steps.
See the Port class for documentation on the port API.
Individual port files are kept in ports/$name/port.kts
. For example, the cURL port is ports/curl/port.kts.
We recommend using the supplied scripts and Dockerfile for consistent builds.
To build a release for distribution to a Maven repo, scripts/build_release.sh
To build a snapshot, scripts/build_snapshot.sh
You can also pass custom gradle targets: scripts/build_snapshot.sh curl
The scripts use the standard ANDROID_NDK_ROOT
environment variable to locate the NDK. For example, ANDROID_NDK_ROOT=/path/to/ndk scripts/build_release.sh