summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJingwen Chen <jingwen@google.com>2023-10-11 10:52:16 +0000
committerJingwen Chen <jingwen@google.com>2023-10-11 11:20:40 +0000
commit8d983587649e2422cdd2b68fb68abe38e975524b (patch)
tree1bf725289f2231cc4e826f0eaae57340f9028fa5
parenteb1784db2a3a3ba43317d71f8b3a14c0e5a15b6f (diff)
downloadMusic-8d983587649e2422cdd2b68fb68abe38e975524b.tar.gz
Move platform constraints to bazel_common_rules.
This enables sharing of platform constraints between platform and kernel builds. Bug: 304594734 Test: treehugger Change-Id: I651e4b18c942c7a710053ef39609b1dd57b3593c
-rw-r--r--BUILD4
1 files changed, 2 insertions, 2 deletions
diff --git a/BUILD b/BUILD
index 0b9fe05..3b1b873 100644
--- a/BUILD
+++ b/BUILD
@@ -2,12 +2,12 @@ load("//build/bazel/rules/android:android_binary.bzl", "android_binary")
android_binary(
name = "Music",
- srcs = glob(["src/**/*.java"]),
+ srcs = glob(["src/com/android/music/*.java"]),
custom_package = "com.android.music",
manifest = "AndroidManifest.xml",
# TODO(b/179889880): this manual BUILD file exists because these resources,
# if listed as files, would cross package boundary.
resource_files = ["//packages/apps/Music/kotlin:MusicResourceFiles"],
sdk_version = "current",
- target_compatible_with = ["//build/bazel/platforms/os:android"],
+ target_compatible_with = ["//build/bazel_common_rules/platforms/os:android"],
)