Andreas Gampe | 554d7ee | 2015-09-15 08:57:12 -0700 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | |
| 3 | include $(CLEAR_VARS) |
| 4 | |
| 5 | LOCAL_SRC_FILES := $(call all-java-files-under,src) |
Andreas Gampe | 554d7ee | 2015-09-15 08:57:12 -0700 | [diff] [blame] | 6 | |
| 7 | # To connect to devices (and take hprof dumps). |
Andreas Gampe | da69216 | 2016-11-14 19:08:22 -0800 | [diff] [blame] | 8 | LOCAL_STATIC_JAVA_LIBRARIES := ddmlib-prebuilt tools-common-prebuilt |
Andreas Gampe | 554d7ee | 2015-09-15 08:57:12 -0700 | [diff] [blame] | 9 | |
| 10 | # To process hprof dumps. |
| 11 | LOCAL_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 Duffin | 21cf84f | 2016-11-28 16:44:44 +0000 | [diff] [blame] | 15 | LOCAL_STATIC_JAVA_LIBRARIES += apache-harmony-jdwp-tests-host junit-host |
Andreas Gampe | 554d7ee | 2015-09-15 08:57:12 -0700 | [diff] [blame] | 16 | |
| 17 | LOCAL_MODULE:= preload2 |
| 18 | |
| 19 | include $(BUILD_HOST_JAVA_LIBRARY) |
Michael Rosenfeld | d19ea14 | 2016-12-07 11:49:34 -0800 | [diff] [blame] | 20 | # Copy to build artifacts |
| 21 | $(call dist-for-goals,dist_files,$(LOCAL_BUILT_MODULE):$(LOCAL_MODULE).jar) |
Andreas Gampe | 554d7ee | 2015-09-15 08:57:12 -0700 | [diff] [blame] | 22 | |
| 23 | # Copy the preload-tool shell script to the host's bin directory. |
| 24 | include $(CLEAR_VARS) |
| 25 | LOCAL_IS_HOST_MODULE := true |
Andreas Gampe | 554d7ee | 2015-09-15 08:57:12 -0700 | [diff] [blame] | 26 | LOCAL_MODULE_CLASS := EXECUTABLES |
| 27 | LOCAL_MODULE := preload-tool |
Dan Willemsen | 98ff0b7 | 2016-03-23 00:42:44 -0700 | [diff] [blame] | 28 | LOCAL_SRC_FILES := preload-tool |
| 29 | LOCAL_REQUIRED_MODULES := preload2 |
| 30 | include $(BUILD_PREBUILT) |