| workspace(name = "android_examples") | |
| # Users of `rules_rust` will commonly be unable to load it | |
| # using a `local_repository`. Instead, to setup the rules, | |
| # please see https://bazelbuild.github.io/rules_rust/#setup | |
| local_repository( | |
| name = "rules_rust", | |
| path = "../..", | |
| ) | |
| load("@rules_rust//rust:repositories.bzl", "rules_rust_dependencies", "rust_register_toolchains") | |
| rules_rust_dependencies() | |
| rust_register_toolchains( | |
| edition = "2018", | |
| extra_target_triples = [ | |
| "aarch64-linux-android", | |
| ], | |
| ) | |
| load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | |
| http_archive( | |
| name = "build_bazel_rules_android", | |
| sha256 = "cd06d15dd8bb59926e4d65f9003bfc20f9da4b2519985c27e190cddc8b7a7806", | |
| strip_prefix = "rules_android-0.1.1", | |
| urls = ["https://github.com/bazelbuild/rules_android/archive/v0.1.1.zip"], | |
| ) | |
| http_archive( | |
| name = "bazelci_rules", | |
| sha256 = "eca21884e6f66a88c358e580fd67a6b148d30ab57b1680f62a96c00f9bc6a07e", | |
| strip_prefix = "bazelci_rules-1.0.0", | |
| url = "https://github.com/bazelbuild/continuous-integration/releases/download/rules-1.0.0/bazelci_rules-1.0.0.tar.gz", | |
| ) | |
| load("@bazelci_rules//:rbe_repo.bzl", "rbe_preconfig") | |
| # Creates a default toolchain config for RBE. | |
| # Use this as is if you are using the rbe_ubuntu16_04 container, | |
| # otherwise refer to RBE docs. | |
| rbe_preconfig( | |
| name = "buildkite_config", | |
| toolchain = "ubuntu1804-bazel-java11", | |
| ) | |
| android_sdk_repository( | |
| name = "androidsdk", | |
| ) | |
| http_archive( | |
| name = "rules_android_ndk", | |
| sha256 = "b1a5ddd784e6ed915c2035c0db536a278b5f50c64412128c06877115991391ef", | |
| strip_prefix = "rules_android_ndk-877c68ef34c9f3353028bf490d269230c1990483", | |
| url = "https://github.com/bazelbuild/rules_android_ndk/archive/877c68ef34c9f3353028bf490d269230c1990483.zip", | |
| ) | |
| load("@rules_android_ndk//:rules.bzl", "android_ndk_repository") | |
| android_ndk_repository( | |
| name = "androidndk", | |
| ) |