commit | 91a9e387b251b256a2ba77aa9ee83527422898f9 | [log] [tgz] |
---|---|---|
author | James Farrell <[email protected]> | Mon Jun 27 16:22:24 2022 +0000 |
committer | Automerger Merge Worker <[email protected]> | Mon Jun 27 16:22:24 2022 +0000 |
tree | b3e16bdaaacf6542088ab0dc45ec6bd3518fe0b7 | |
parent | 0591c732a0b29662bba4a1d1bc48084e234445b8 [diff] | |
parent | a30a82e065f38ec91ee14f340322ac4b6bd400d0 [diff] |
Docker build script improvements. am: e063ed0056 am: 4a489c7eaf am: 07c4054409 am: 8ee7a34a66 am: a30a82e065 Original change: https://android-review.googlesource.com/c/platform/tools/ndkports/+/2135589 Change-Id: I46d376d1a618975de515315b508138827b0acee3 Signed-off-by: Automerger Merge Worker <[email protected]>
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