diff options
-rw-r--r-- | Android.bp | 2 | ||||
-rw-r--r-- | Android.mk | 11 |
2 files changed, 12 insertions, 1 deletions
@@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -tradefed_java_library_host { +java_library_host { name: "loganalysis", defaults: [ "tradefed_defaults" ], @@ -14,5 +14,16 @@ LOCAL_PATH := $(call my-dir) +# makefile rules to copy jars to HOST_OUT/tradefed +# so tradefed.sh can automatically add to classpath + +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 +$(HOST_OUT_JAVA_LIBRARIES)/loganalysis.jar : $(DEST_JAR) + # Build all sub-directories include $(call all-makefiles-under,$(LOCAL_PATH)) |