summaryrefslogtreecommitdiff
path: root/instrumentation/Android.bp
diff options
context:
space:
mode:
authorNan Zhang <nanzhang@google.com>2018-07-23 12:17:14 -0700
committerandroid-build-merger <android-build-merger@google.com>2018-07-23 12:17:14 -0700
commit412ca9b1042c54a80963ced0a75eadb144555c81 (patch)
tree1a478be7601a27d4d74cb42a776ed6568c727661 /instrumentation/Android.bp
parent021ed7dcf983b46f8749ad0dbe928c087447c5a9 (diff)
parent711913cd2846a1826af853a13e0515269f813462 (diff)
downloadmultidex-412ca9b1042c54a80963ced0a75eadb144555c81.tar.gz
Convert android-support-multidex-(instrumentation) to Soong am: 2121bfabfe
am: 711913cd28 Change-Id: I59a842cfe1b37c9044224caf25c0a28ea21863af
Diffstat (limited to 'instrumentation/Android.bp')
-rw-r--r--instrumentation/Android.bp41
1 files changed, 41 insertions, 0 deletions
diff --git a/instrumentation/Android.bp b/instrumentation/Android.bp
new file mode 100644
index 0000000..ce90b2f
--- /dev/null
+++ b/instrumentation/Android.bp
@@ -0,0 +1,41 @@
+// Copyright (C) 2013 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+genrule {
+ name: "android-support-multidex-instrumentation-version",
+ // use srcs as dependencies, otherwise, this module won't be re-run
+ // during incremental build.
+ srcs: [
+ "src/**/*.java",
+ ],
+ cmd: "echo \"git.version=`cd frameworks/multidex/instrumentation; git log --format=\"%H\" -n 1 || " +
+ "(echo git hash not available; exit 0)`\" > $(genDir)/android-support-multidex-instrumentation.version.txt",
+ out: [
+ "android-support-multidex-instrumentation.version.txt",
+ ],
+}
+
+java_library_static {
+ name: "android-support-multidex-instrumentation",
+ sdk_version: "4",
+ srcs: [
+ "src/**/*.java",
+ ],
+ java_resources: [
+ ":android-support-multidex-instrumentation-version",
+ ],
+ static_libs: [
+ "android-support-multidex",
+ ],
+}