File tree Expand file tree Collapse file tree
test/rules/android_binary Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -142,6 +142,11 @@ remote_android_extensions = use_extension("//bzlmod_extensions:android_extension
142142use_repo (remote_android_extensions , "android_gmaven_r8" , "android_tools" )
143143
144144# integration test setup
145+ bazel_dep (
146+ name = "rules_cc" ,
147+ version = "0.0.16" ,
148+ dev_dependency = True ,
149+ )
145150bazel_dep (
146151 name = "rules_bazel_integration_test" ,
147152 version = "0.27.0" ,
Original file line number Diff line number Diff line change @@ -52,9 +52,11 @@ genrule(
5252cc_library (
5353 name = "native_lib" ,
5454 srcs = ["native.cc" ],
55- toolchains = [
56- ":fake_arm64-v8a_toolchain" ,
57- ":fake_armeabi-v7a_toolchain" ,
55+ target_compatible_with = [
56+ # Somehow this doesn't work with MacOS.
57+ # The functionality tested by this library/descendants is
58+ # OS-agnostic and occurs at the rule level.
59+ "@platforms//os:linux" ,
5860 ],
5961)
6062
@@ -93,7 +95,6 @@ android_library(
9395 name = "basiclib_with_native_dep" ,
9496 srcs = [
9597 "java/com/foo/AJavaClass.java" ,
96- "java/com/foo/AndroidManifest.xml" ,
9798 ],
9899 deps = [":native_lib" ],
99100)
You can’t perform that action at this time.
0 commit comments