-
Notifications
You must be signed in to change notification settings - Fork 44
/
BUILD
92 lines (78 loc) · 1.98 KB
/
BUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
load("@bazel_gazelle//:def.bzl", "gazelle")
load("@rules_license//rules:license.bzl", "license")
package(
default_applicable_licenses = [":license"],
default_visibility = ["//visibility:public"],
)
license(
name = "license",
package_name = "bazelbuild/rules_android",
copyright_notice = "Copyright © 2023 The Bazel Authors. All rights reserved.",
license_kinds = [
"@rules_license//licenses/spdx:Apache-2.0",
],
license_text = "LICENSE",
)
# gazelle:prefix github.com/bazelbuild/rules_android
gazelle(name = "gazelle")
# Common default platform definitions for use by Android projects.
platform(
name = "x86",
constraint_values = [
"@platforms//os:android",
"@platforms//cpu:x86_32",
],
)
platform(
name = "x86_64",
constraint_values = [
"@platforms//os:android",
"@platforms//cpu:x86_64",
],
)
platform(
name = "armeabi-v7a",
constraint_values = [
"@platforms//os:android",
"@platforms//cpu:armv7",
],
)
platform(
name = "arm64-v8a",
constraint_values =
[
"@platforms//cpu:arm64",
"@platforms//os:android",
],
)
platform(
name = "riscv64",
constraint_values =
[
"@platforms//cpu:riscv64",
"@platforms//os:android",
],
)
# TODO: remove these alias when we no longer needs bind in WORKSPACE.bzlmod
# Because @androidsdk is not defined in WORKSPACE.bzlmod, where the only valid place
# we can call native function bind. Using these alias to forward the binding.
alias(
name = "androidsdk_sdk",
actual = "@androidsdk//:sdk",
)
alias(
name = "androidsdk_d8_jar_import",
actual = "@androidsdk//:d8_jar_import",
)
alias(
name = "androidsdk_dx_jar_import",
actual = "@androidsdk//:dx_jar_import",
)
alias(
name = "androidsdk_files",
actual = "@androidsdk//:files",
)
alias(
name = "androidsdk_has_android_sdk",
actual = "@androidsdk//:has_android_sdk",
)