summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamian Patel <damianpatel@google.com>2021-07-20 20:49:15 +0000
committerDamian Patel <damianpatel@google.com>2021-07-21 18:34:53 +0000
commit774496fad28ab7ecb1db8a9b0c2251998d370619 (patch)
tree495d988b62759eb3a799645deac5bea0b44e967e
parent4284751db013c94ad3ee0e6427d846ec73aff243 (diff)
downloadMusic-774496fad28ab7ecb1db8a9b0c2251998d370619.tar.gz
AOSP Music to bazel: Added BUILD file
The new Bazel BUILD file will replace the Android.bp file. Moreover, the glob function was altered so that the res directory can be accessed without copying and without the addition of another BUILD file. Test: manual - to test how the AOSP Music app builds with Bazel, I ran: "b build :Music --fat_apk_apu=k8" in the packages/apps/Music directory. The APK can be pushed onto the phone using: "adb install -r -d -t *path of Music.apk*"; however, because Soong/AOSP and Bazel use different APK signers, the app can only be pushed onto a phone with a release build flashed. Currently, either Bazel must support .pk8/.x509.pem pairs or these file types must be converted to .keystore. Change-Id: Ib7b3e35b716a17e1429275ec2fc8767679950731
-rw-r--r--BUILD9
1 files changed, 9 insertions, 0 deletions
diff --git a/BUILD b/BUILD
new file mode 100644
index 0000000..897af5c
--- /dev/null
+++ b/BUILD
@@ -0,0 +1,9 @@
+load("@rules_android//rules:rules.bzl", "android_binary", "android_library")
+
+android_binary(
+ name = "Music",
+ srcs = glob(["src/**/*.java"]),
+ custom_package = "com.android.music",
+ manifest = "AndroidManifest.xml",
+ resource_files = glob(["kotlin/res/**"]),
+)