{"id":19269389,"url":"https://github.com/atsushieno/ndkports","last_synced_at":"2026-06-21T00:32:06.082Z","repository":{"id":66679179,"uuid":"249552645","full_name":"atsushieno/ndkports","owner":"atsushieno","description":"private fork of ndkports for my own packages, see https://android.googlesource.com/platform/tools/ndkports/","archived":false,"fork":false,"pushed_at":"2020-04-27T06:13:28.000Z","size":75341,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"aap","last_synced_at":"2025-02-23T20:12:43.639Z","etag":null,"topics":["external"],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/atsushieno.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-23T21:54:42.000Z","updated_at":"2021-01-20T14:13:15.000Z","dependencies_parsed_at":"2023-04-13T10:54:32.116Z","dependency_job_id":null,"html_url":"https://github.com/atsushieno/ndkports","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/atsushieno/ndkports","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atsushieno%2Fndkports","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atsushieno%2Fndkports/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atsushieno%2Fndkports/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atsushieno%2Fndkports/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atsushieno","download_url":"https://codeload.github.com/atsushieno/ndkports/tar.gz/refs/heads/aap","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atsushieno%2Fndkports/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34590213,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-20T02:00:06.407Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["external"],"created_at":"2024-11-09T20:19:43.126Z","updated_at":"2026-06-21T00:32:06.045Z","avatar_url":"https://github.com/atsushieno.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ndkports\n\nA collection of Android build scripts for various third-party libraries and the\ntooling to build them.\n\nIf you're an Android app developer looking to *consume* these libraries, this is\nprobably not what you want. This project builds AARs to be published to Maven.\nYou most likely want to use the AAR, not build it yourself.\n\nNote: Gradle support for consuming these artifacts from an AAR is a work in\nprogress.\n\n## Ports\n\nEach third-party project is called a \"port\". Ports consist of a description of\nwhere to fetch the source, apply any patches needed, build, install, and package\nthe library into an AAR.\n\nA port is a subclass of the abstract Kotlin class `com.android.ndkports.Port`.\nProjects define the name and version of the port, the URL to fetch source from,\na list of modules (libraries) to build, and the build steps.\n\n```kotlin\nabstract class Port {\n    abstract val name: String\n    abstract val version: String\n    abstract val url: String\n\n    open val dependencies: List\u003cString\u003e = emptyList()\n    abstract val modules: List\u003cModule\u003e\n\n    open fun fetchSource(\n        sourceDirectory: File,\n        workingDirectory: File\n    ): Result\u003cUnit, String\u003e\n\n    open fun configure(\n        toolchain: Toolchain,\n        sourceDirectory: File,\n        buildDirectory: File,\n        installDirectory: File,\n        workingDirectory: File\n    ): Result\u003cUnit, String\u003e\n\n    open fun build(\n        toolchain: Toolchain,\n        buildDirectory: File\n    ): Result\u003cUnit, String\u003e\n\n    open fun install(\n        toolchain: Toolchain,\n        buildDirectory: File,\n        installDirectory: File\n    ): Result\u003cUnit, String\u003e\n}\n```\n\nIndividual port files are kept in `ports/$name/port.kts`. For example, the cURL\nport is [ports/curl/port.kts](ports/curl/port.kts).\n\n## Building a Port\n\nndkports requires an NDK to be used for building to be specified on the command\nline as well as a list of packages to build. For example, to build cURL:\n\n```bash\n$ ./gradlew run --args='--ndk /path/to/android-ndk-r20 openssl curl'\nBuild output...\n$ find  -name '*.aar'\n./out/curl/curl.aar\n./out/openssl/openssl.aar\n```\n\nNote that dependencies currently need to be already built or ordered explicitly.\n\nTo build all ports using Docker, use `scripts/build.sh`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatsushieno%2Fndkports","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatsushieno%2Fndkports","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatsushieno%2Fndkports/lists"}