{"id":18051538,"url":"https://github.com/jin/bazel-android-ndk-example","last_synced_at":"2025-04-05T07:12:17.825Z","repository":{"id":139300065,"uuid":"140208108","full_name":"jin/bazel-android-ndk-example","owner":"jin","description":"Build C++ for Android using Bazel and NDK","archived":false,"fork":false,"pushed_at":"2018-07-08T23:01:30.000Z","size":185,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-10T14:52:51.058Z","etag":null,"topics":["android","android-ndk","bazel","cpp"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/jin.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":"2018-07-08T22:52:33.000Z","updated_at":"2023-05-16T10:43:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"ad1d3e3f-c30f-4cf8-aaee-2fd0be9c5752","html_url":"https://github.com/jin/bazel-android-ndk-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jin%2Fbazel-android-ndk-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jin%2Fbazel-android-ndk-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jin%2Fbazel-android-ndk-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jin%2Fbazel-android-ndk-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jin","download_url":"https://codeload.github.com/jin/bazel-android-ndk-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247299850,"owners_count":20916193,"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":["android","android-ndk","bazel","cpp"],"created_at":"2024-10-30T22:49:26.768Z","updated_at":"2025-04-05T07:12:17.820Z","avatar_url":"https://github.com/jin.png","language":"Python","readme":"# Android NDK with Bazel example\n\n## Instructions\n\n1) Launch emulator\n2) Run `bazel mobile-install //app/src/main:app --fat_apk_cpu=x86 --incremental --start_app`\n3) Profit\n\n\u003cimg src=\"/images/result.png\" width=\"400px\" /\u003e\n\n## Build graph\n\n![](/images/graph.png)\n\n- JNI/C++ sources goes into the `cc_library` target, `//app/src/main:jni_lib`.\n- Java sources, resource files, and assets go into the `android_library`\n  target, `//app/src/main:lib`. This target depends on the `cc_library` target.\n- APK is built from the `android_binary` target, `//app/src/main:app`. This\n  target depends on the `android_library` target.\n\nNOTE: This graph omits the Google Maven AAR dependencies.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjin%2Fbazel-android-ndk-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjin%2Fbazel-android-ndk-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjin%2Fbazel-android-ndk-example/lists"}