summaryrefslogtreecommitdiff
path: root/tools/dump-coverage/Android.bp
diff options
context:
space:
mode:
authorKavi Gupta <kavigupta@google.com>2019-06-11 09:19:35 -0700
committerKavi Gupta <kavigupta@google.com>2019-06-27 15:12:48 -0700
commit2d84ae7640641c1e931746071a58f13c8a49c61b (patch)
treefaa97a9ebb876b314bf10c5350f047b0dbbb645d /tools/dump-coverage/Android.bp
parenta1cae835602cadadce3510dacfbee03fbdcd7db6 (diff)
Add JVMTI agent to dump/reset JaCoCo coverage information
This agent can be attached to an arbitrary Android process with arguments that cause it to either reset or dump the JaCoCo information to a provided directory. Test: manual, used examples in README to test whether it works on a userdebug_coverage build on cuttlefish Change-Id: If6cee20046f790676b8085e1ca84652c063295fa
Diffstat (limited to 'tools/dump-coverage/Android.bp')
-rw-r--r--tools/dump-coverage/Android.bp29
1 files changed, 29 insertions, 0 deletions
diff --git a/tools/dump-coverage/Android.bp b/tools/dump-coverage/Android.bp
new file mode 100644
index 000000000000..4519ce3636bf
--- /dev/null
+++ b/tools/dump-coverage/Android.bp
@@ -0,0 +1,29 @@
+//
+// Copyright (C) 2019 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.
+//
+
+// Build variants {target,host} x {32,64}
+cc_library {
+ name: "libdumpcoverage",
+ srcs: ["dump_coverage.cc"],
+ header_libs: [
+ "libopenjdkjvmti_headers",
+ ],
+
+ host_supported: true,
+ shared_libs: [
+ "libbase",
+ ],
+}