Skip to content

Commit

Permalink
Merge pull request google#53 from wffurr/rules-ndk
Browse files Browse the repository at this point in the history
Move rules_android_ndk configuration to MODULE.bazel
  • Loading branch information
wffurr authored Oct 24, 2024
2 parents c975bab + f848d55 commit 77fed7c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 26 deletions.
16 changes: 9 additions & 7 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,22 @@ http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "ht
## Toolchain setup
#################################################################################

bazel_dep(
name = "toolchains_llvm",
version = "1.0.0",
)

# Configure and register the toolchain.
# Configure and register the LLVM toolchain for host builds.
bazel_dep(name = "toolchains_llvm", version = "1.0.0")
llvm = use_extension("@toolchains_llvm//toolchain/extensions:llvm.bzl", "llvm")
llvm.toolchain(
llvm_version = "16.0.0",
)
use_repo(llvm, "llvm_toolchain")

register_toolchains("@llvm_toolchain//:all")

# Configure and register the Android NDK toolchain for NDK builds.
bazel_dep(name = "rules_android_ndk", version = "0.1.2")
android_ndk_repository_extension = use_extension("@rules_android_ndk//:extension.bzl",
"android_ndk_repository_extension")
use_repo(android_ndk_repository_extension, "androidndk")
register_toolchains("@androidndk//:all")

#################################################################################
## Direct dependencies
#################################################################################
Expand Down
19 changes: 0 additions & 19 deletions WORKSPACE

This file was deleted.

0 comments on commit 77fed7c

Please sign in to comment.