summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2019-01-15 18:49:29 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2019-01-15 18:49:29 +0000
commitf852f1e355cbbd42f00f8351678e220379fe643b (patch)
treeb35844196027573fe7793ec48cde4b350534b802
parent5990fbe0d2034750a7c2b251f1790bd40c73a9b7 (diff)
parentb061a9071f6770cef573deb3e4069b7c93a157ca (diff)
downloademma-f852f1e355cbbd42f00f8351678e220379fe643b.tar.gz
-rw-r--r--Android.bp19
-rw-r--r--Android.mk38
2 files changed, 19 insertions, 38 deletions
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 0000000..7aeaee5
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,19 @@
+// Copyright 2008 The Android Open Source Project
+// the custom dex'ed emma library ready to put on a device.
+// ============================================================
+java_library {
+ name: "emma",
+ srcs: [
+ "core/**/*.java",
+ "pregenerated/**/*.java",
+ ],
+ java_resource_dirs: [
+ "core/res",
+ "pregenerated/res",
+ ],
+ sdk_version: "9",
+ errorprone: {
+ javacflags: ["-Xep:MissingOverride:OFF"],
+ },
+ host_supported: true,
+}
diff --git a/Android.mk b/Android.mk
deleted file mode 100644
index dc80a4a..0000000
--- a/Android.mk
+++ /dev/null
@@ -1,38 +0,0 @@
-# Copyright 2008 The Android Open Source Project
-
-LOCAL_PATH := $(my-dir)
-
-
-# the custom dex'ed emma library ready to put on a device.
-# ============================================================
-include $(CLEAR_VARS)
-
-LOCAL_SRC_FILES := $(call all-java-files-under, core pregenerated)
-
-LOCAL_MODULE := emma
-
-LOCAL_MODULE_TAGS := optional
-
-LOCAL_JAVA_RESOURCE_DIRS := core/res pregenerated/res
-
-LOCAL_SDK_VERSION := 9
-
-LOCAL_ERROR_PRONE_FLAGS := -Xep:MissingOverride:OFF
-
-include $(BUILD_STATIC_JAVA_LIBRARY)
-
-
-
-# the custom emma library to add to an SDK project.
-# ============================================================
-include $(CLEAR_VARS)
-
-LOCAL_SRC_FILES := $(call all-java-files-under, core pregenerated)
-
-LOCAL_MODULE := emmalib
-
-LOCAL_JAVA_RESOURCE_DIRS := core/res pregenerated/res
-
-LOCAL_ERROR_PRONE_FLAGS := -Xep:MissingOverride:OFF
-
-include $(BUILD_HOST_JAVA_LIBRARY)