1LOCAL_PATH:= $(call my-dir) 2 3include $(CLEAR_VARS) 4 5LOCAL_SRC_FILES := $(call all-java-files-under,src) 6LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk 7 8# To connect to devices (and take hprof dumps). 9LOCAL_STATIC_JAVA_LIBRARIES := ddmlib-prebuilt 10 11# To process hprof dumps. 12LOCAL_STATIC_JAVA_LIBRARIES += perflib-prebuilt trove-prebuilt guavalib 13 14# For JDWP access we use the framework in the JDWP tests from Apache Harmony, for 15# convenience (and to not depend on internal JDK APIs). 16LOCAL_STATIC_JAVA_LIBRARIES += apache-harmony-jdwp-tests-host junit 17 18LOCAL_MODULE:= preload2 19 20include $(BUILD_HOST_JAVA_LIBRARY) 21 22# Copy the preload-tool shell script to the host's bin directory. 23include $(CLEAR_VARS) 24LOCAL_IS_HOST_MODULE := true 25LOCAL_MODULE_TAGS := optional 26LOCAL_MODULE_CLASS := EXECUTABLES 27LOCAL_MODULE := preload-tool 28include $(BUILD_SYSTEM)/base_rules.mk 29$(LOCAL_BUILT_MODULE): $(LOCAL_PATH)/preload-tool $(ACP) 30 @echo "Copy: $(PRIVATE_MODULE) ($@)" 31 $(copy-file-to-new-target) 32 $(hide) chmod 755 $@ 33