Skip to content

Commit eb46a1b

Browse files
aj-michaelkchodorow
authored andcommitted
Move android_sdk_for_testing bind into Android{S,N}dkRepositoryRule so that eventually we can remove it from Bazel's WORKSPACE file.
We'll need to wait for the next Bazel release to remove it from the WORKSPACE file. This should hopefully make the process of the Bazel sheriff running android_integration_test.sh a little easier. -- PiperOrigin-RevId: 146789106 MOS_MIGRATED_REVID=146789106
1 parent 43765af commit eb46a1b

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

src/main/java/com/google/devtools/build/lib/bazel/rules/android/AndroidNdkRepositoryRule.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ public Map<String, Label> apply(Rule rule) {
4949

5050
return ImmutableMap.of(
5151
"android/crosstool",
52-
Label.parseAbsoluteUnchecked("@" + rule.getName() + "//:" + defaultToolchainName));
52+
Label.parseAbsoluteUnchecked("@" + rule.getName() + "//:" + defaultToolchainName),
53+
"android_ndk_for_testing",
54+
Label.parseAbsoluteUnchecked("@" + rule.getName() + "//:files"));
5355
}
5456
};
5557

src/main/java/com/google/devtools/build/lib/bazel/rules/android/AndroidSdkRepositoryRule.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ public Map<String, Label> apply(Rule rule) {
4747
builder.put("android/sdk", Label.parseAbsoluteUnchecked(prefix + "sdk"));
4848
builder.put(
4949
"android/dx_jar_import", Label.parseAbsoluteUnchecked(prefix + "dx_jar_import"));
50+
builder.put("android_sdk_for_testing", Label.parseAbsoluteUnchecked(prefix + "files"));
5051
return builder.build();
5152
}
5253
};
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
bind(name = "android/sdk")
22
bind(name = "android/crosstool", actual = "@bazel_tools//tools/cpp:toolchain")
3+
bind(name = "android_sdk_for_testing", actual = "//:dummy")
4+
bind(name = "android_ndk_for_testing", actual = "//:dummy")

0 commit comments

Comments
 (0)