{"id":19933762,"url":"https://github.com/bazelbuild/rules_android_ndk","last_synced_at":"2025-03-01T11:44:08.161Z","repository":{"id":65289012,"uuid":"530344365","full_name":"bazelbuild/rules_android_ndk","owner":"bazelbuild","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-23T21:44:27.000Z","size":94,"stargazers_count":34,"open_issues_count":25,"forks_count":15,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-01-23T22:29:15.486Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Starlark","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bazelbuild.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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":"2022-08-29T18:28:27.000Z","updated_at":"2025-01-23T21:44:32.000Z","dependencies_parsed_at":"2023-01-16T07:31:02.756Z","dependency_job_id":"ad710b1b-7305-45af-9535-ae66ff73ce0e","html_url":"https://github.com/bazelbuild/rules_android_ndk","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bazelbuild%2Frules_android_ndk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bazelbuild%2Frules_android_ndk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bazelbuild%2Frules_android_ndk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bazelbuild%2Frules_android_ndk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bazelbuild","download_url":"https://codeload.github.com/bazelbuild/rules_android_ndk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241361398,"owners_count":19950379,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-12T23:14:47.686Z","updated_at":"2025-03-01T11:44:08.135Z","avatar_url":"https://github.com/bazelbuild.png","language":"Starlark","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Android NDK Bazel Rules\n\n## Overview\n\nThis repository contains Starlark rules for integrating Bazel with the\nAndroid NDK. These rules currently work with Android NDK version 25b.\n\nNOTE: This is a development preview of the Starlark Android NDK Bazel\nrules. These rules are not guaranteed to be complete or work for every\nNDK use case. Bazel versions up to and including 7.0.0 contain a\nbuilt-in (\"native\") version of `android_ndk_repository` described at\nhttps://bazel.build/reference/be/android#android_ndk_repository. Over\ntime, these Starlark rules will replace the native version of\n`android_ndk_repository`.\n\n## Getting Started\n\nTo use the Android NDK rules, add the following to your `WORKSPACE` file:\n\n    # Or a later commit\n    RULES_ANDROID_NDK_COMMIT= \"81ec8b79dc50ee97e336a25724fdbb28e33b8d41\"\n    RULES_ANDROID_NDK_SHA = \"b29409496439cdcdb50a8e161c4953ca78a548e16d3ee729a1b5cd719ffdacbf\"\n\n    load(\"@bazel_tools//tools/build_defs/repo:http.bzl\", \"http_archive\")\n    http_archive(\n        name = \"rules_android_ndk\",\n        url = \"https://github.com/bazelbuild/rules_android_ndk/archive/%s.zip\" % RULES_ANDROID_NDK_COMMIT,\n        sha256 = RULES_ANDROID_NDK_SHA,\n        strip_prefix = \"rules_android_ndk-%s\" % RULES_ANDROID_NDK_COMMIT,\n    )\n    load(\"@rules_android_ndk//:rules.bzl\", \"android_ndk_repository\")\n\n    android_ndk_repository(name = \"androidndk\")\n\n    register_toolchains(\"@androidndk//:all\")\n\nThen, set the `ANDROID_NDK_HOME` environment variable or the `path` attribute of\n`android_ndk_repository` to the path of the local Android NDK installation\ndirectory. If the path starts with `$WORKSPACE_ROOT`, then this string is\nreplaced with the root path of the Bazel workspace.\n\nThe `api_level` attribute can also be used to set the Android API level to build\nagainst.\n\nFinally, when building an Android app with native dependencies (e.g.\n`cc_library` targets), add\n\n    --fat_apk_cpu=\u003ccpus\u003e --android_crosstool_top=@androidndk//:toolchain\n\nto your Bazel invocation. `\u003ccpus\u003e` is a comma-separated list of the available\nCPUs:\n\n    armeabi-v7a\n    arm64-v8a\n    x86\n    x86_64\n\ne.g. `--fat_apk_cpu=arm64-v8a` or `--fat_apk_cpu=arm64-v8a,x86`.\n\nThese flags may also be added to the your project's `.bazelrc` file so that they\ndon't have to be specified on the command line.\n\nSee the example in https://github.com/bazelbuild/rules_android_ndk/tree/main/examples/basic.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbazelbuild%2Frules_android_ndk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbazelbuild%2Frules_android_ndk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbazelbuild%2Frules_android_ndk/lists"}