blob: d3ee1d3708557b5e31350a9d4f1abffba930a9a5 [file] [log] [blame]
Andreas Gampe554d7ee2015-09-15 08:57:12 -07001LOCAL_PATH:= $(call my-dir)
2
3include $(CLEAR_VARS)
4
5LOCAL_SRC_FILES := $(call all-java-files-under,src)
Andreas Gampe554d7ee2015-09-15 08:57:12 -07006
7# To connect to devices (and take hprof dumps).
Andreas Gampeda692162016-11-14 19:08:22 -08008LOCAL_STATIC_JAVA_LIBRARIES := ddmlib-prebuilt tools-common-prebuilt
Andreas Gampe554d7ee2015-09-15 08:57:12 -07009
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).
Paul Duffin21cf84f2016-11-28 16:44:44 +000015LOCAL_STATIC_JAVA_LIBRARIES += apache-harmony-jdwp-tests-host junit-host
Andreas Gampe554d7ee2015-09-15 08:57:12 -070016
17LOCAL_MODULE:= preload2
18
19include $(BUILD_HOST_JAVA_LIBRARY)
Michael Rosenfeldd19ea142016-12-07 11:49:34 -080020# Copy to build artifacts
21$(call dist-for-goals,dist_files,$(LOCAL_BUILT_MODULE):$(LOCAL_MODULE).jar)
Andreas Gampe554d7ee2015-09-15 08:57:12 -070022
23# Copy the preload-tool shell script to the host's bin directory.
24include $(CLEAR_VARS)
25LOCAL_IS_HOST_MODULE := true
Andreas Gampe554d7ee2015-09-15 08:57:12 -070026LOCAL_MODULE_CLASS := EXECUTABLES
27LOCAL_MODULE := preload-tool
Dan Willemsen98ff0b72016-03-23 00:42:44 -070028LOCAL_SRC_FILES := preload-tool
29LOCAL_REQUIRED_MODULES := preload2
30include $(BUILD_PREBUILT)