diff options
Diffstat (limited to 'Android.mk')
-rw-r--r-- | Android.mk | 21 |
1 files changed, 4 insertions, 17 deletions
@@ -14,29 +14,16 @@ 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 -LOCAL_MODULE_TAGS := optional -LOCAL_STATIC_JAVA_LIBRARIES := guava-18.0-prebuilt json-prebuilt junit-host - -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.jar +BUILT_JAR := $(call intermediates-dir-for,JAVA_LIBRARIES,loganalysis,HOST)/javalib.jar +$(DEST_JAR): $(BUILT_JAR) $(copy-file-to-new-target) # this dependency ensure the above rule will be executed if module is built -$(LOCAL_INSTALLED_MODULE) : $(DEST_JAR) +$(HOST_OUT_JAVA_LIBRARIES)/loganalysis.jar : $(DEST_JAR) # Build all sub-directories include $(call all-makefiles-under,$(LOCAL_PATH)) |