summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2020-01-24 04:04:59 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2020-01-24 04:04:59 +0000
commitff7e88cd099f91cbf313b9d4080606650c941bcb (patch)
treea03c3c689aaf0423ae4148d1b1c12cf83b7aec96
parentea04a838b2acdabc650ce87ade8acf0f1b6b5976 (diff)
parenta3717bb79efc81f3a9536626234ef76a95adb1ce (diff)
downloadplatform_tools_loganalysis-ff7e88cd099f91cbf313b9d4080606650c941bcb.tar.gz
platform_tools_loganalysis-ff7e88cd099f91cbf313b9d4080606650c941bcb.tar.bz2
platform_tools_loganalysis-ff7e88cd099f91cbf313b9d4080606650c941bcb.zip
Snap for 6157842 from a3717bb79efc81f3a9536626234ef76a95adb1ce to rvc-release
Change-Id: Id087cc4188f92e094328534e4128da917c6bffbf
-rw-r--r--tests/Android.bp28
-rw-r--r--tests/Android.mk23
2 files changed, 31 insertions, 20 deletions
diff --git a/tests/Android.bp b/tests/Android.bp
new file mode 100644
index 0000000..623b4ab
--- /dev/null
+++ b/tests/Android.bp
@@ -0,0 +1,28 @@
+// 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.
+
+java_library_host {
+ name: "loganalysis-tests",
+ defaults: ["tradefed_defaults"],
+
+ // Only compile source java files in this lib.
+ srcs: ["src/**/*.java"],
+
+ libs: [
+ "loganalysis",
+ "json-prebuilt",
+ "junit-host",
+ "easymock",
+ ],
+}
diff --git a/tests/Android.mk b/tests/Android.mk
index 8eda916..e3958cd 100644
--- a/tests/Android.mk
+++ b/tests/Android.mk
@@ -14,29 +14,12 @@
LOCAL_PATH := $(call my-dir)
-include $(CLEAR_VARS)
-
-# Only compile source java files in this lib.
-LOCAL_SRC_FILES := $(call all-java-files-under, src)
-
-LOCAL_JAVACFLAGS += -g -Xlint
--include tools/tradefederation/core/error_prone_rules.mk
-
-LOCAL_MODULE := loganalysis-tests
-LOCAL_MODULE_TAGS := optional
-LOCAL_JAVA_LIBRARIES := loganalysis json-prebuilt junit-host easymock
-
-include $(BUILD_HOST_JAVA_LIBRARY)
-
# makefile rules to copy jars to HOST_OUT/tradefed
# so tradefed.sh can automatically add to classpath
-DEST_JAR := $(HOST_OUT)/tradefed/$(LOCAL_MODULE).jar
-$(DEST_JAR): $(LOCAL_BUILT_MODULE)
+DEST_JAR := $(HOST_OUT)/tradefed/loganalysis-tests.jar
+$(DEST_JAR): $(call intermediates-dir-for,JAVA_LIBRARIES,loganalysis-tests,HOST)/javalib.jar
$(copy-file-to-new-target)
# this dependency ensure the above rule will be executed if module is built
-$(LOCAL_INSTALLED_MODULE) : $(DEST_JAR)
-
-# Build all sub-directories
-include $(call all-makefiles-under,$(LOCAL_PATH))
+$(HOST_OUT_JAVA_LIBRARIES)/loganalysis-tests.jar : $(DEST_JAR)