diff options
author | Colin Cross <ccross@android.com> | 2019-10-21 19:28:35 +0000 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2019-10-21 19:28:35 +0000 |
commit | f49701d5bb9d18950409aaa7b698232c1458124f (patch) | |
tree | d42ce4e053723ddc0ec11c4afa2b898af1c8ec57 | |
parent | ca4418ffaca48d2e85d330a3cd203e4df162f083 (diff) | |
download | loganalysis-f49701d5bb9d18950409aaa7b698232c1458124f.tar.gz |
Revert "Remove custom installation rules"
This reverts commit ca4418ffaca48d2e85d330a3cd203e4df162f083.
Bug: 141877526
Bug: 143063995
Change-Id: I61f9de4e8bf7751e9c9e6728ffac48ac9f8c5538
-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)) |