• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1LOCAL_PATH:= $(call my-dir)
2
3include $(CLEAR_VARS)
4
5LOCAL_SRC_FILES := $(call all-java-files-under,src)
6
7# To connect to devices (and take hprof dumps).
8LOCAL_STATIC_JAVA_LIBRARIES := ddmlib-prebuilt tools-common-prebuilt
9
10# To process hprof dumps.
11LOCAL_STATIC_JAVA_LIBRARIES += perflib-prebuilt trove-prebuilt guavalib
12
13# For JDWP access we use the framework in the JDWP tests from Apache Harmony, for
14# convenience (and to not depend on internal JDK APIs).
15LOCAL_STATIC_JAVA_LIBRARIES += apache-harmony-jdwp-tests-host junit-host
16
17LOCAL_MODULE:= preload2
18
19include $(BUILD_HOST_JAVA_LIBRARY)
20# Copy to build artifacts
21$(call dist-for-goals,dist_files,$(LOCAL_BUILT_MODULE):$(LOCAL_MODULE).jar)
22
23# Copy the preload-tool shell script to the host's bin directory.
24include $(CLEAR_VARS)
25LOCAL_IS_HOST_MODULE := true
26LOCAL_MODULE_CLASS := EXECUTABLES
27LOCAL_MODULE := preload-tool
28LOCAL_SRC_FILES := preload-tool
29LOCAL_REQUIRED_MODULES := preload2
30include $(BUILD_PREBUILT)
31