From 02f42f9a8b7fa566d0d936c0a3874b3e2a3ac6c4 Mon Sep 17 00:00:00 2001 From: Paul Duffin Date: Wed, 7 Dec 2016 14:21:53 +0000 Subject: [PATCH] Add legacy-performance-test-hostdex target This is needed for some internal targets that currently depend directly on the source files and which break when the source file is moved. Bug: 30188076 Test: make legacy-performance-test-hostdex Change-Id: I653325605204c1f272bd5f669e2297eedeaf7d61 --- legacy-test/Android.mk | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/legacy-test/Android.mk b/legacy-test/Android.mk index fe5d8ca66b6aa..00110021584c6 100644 --- a/legacy-test/Android.mk +++ b/legacy-test/Android.mk @@ -27,3 +27,15 @@ LOCAL_STATIC_JAVA_LIBRARIES := core-junit-static LOCAL_MODULE := legacy-test include $(BUILD_JAVA_LIBRARY) + +ifeq ($(HOST_OS),linux) +# Build the legacy-performance-test-hostdex library +# ================================================= +# This contains the android.test.PerformanceTestCase class only +include $(CLEAR_VARS) + +LOCAL_SRC_FILES := ../core/java/android/test/PerformanceTestCase.java +LOCAL_MODULE := legacy-performance-test-hostdex + +include $(BUILD_HOST_DALVIK_JAVA_LIBRARY) +endif # HOST_OS == linux