Paul Duffin | e20f193 | 2016-11-28 15:51:09 +0000 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2016 The Android Open Source Project |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # |
| 16 | |
| 17 | LOCAL_PATH:= $(call my-dir) |
| 18 | |
| 19 | # Build the legacy-test library |
| 20 | # ============================= |
Paul Duffin | 2ffc4ad | 2017-01-17 14:36:12 +0000 | [diff] [blame^] | 21 | # This contains the junit.framework and android.test classes that were in |
| 22 | # Android API level 25. |
Paul Duffin | e20f193 | 2016-11-28 15:51:09 +0000 | [diff] [blame] | 23 | include $(CLEAR_VARS) |
| 24 | |
Paul Duffin | df25760 | 2016-11-30 13:29:39 +0000 | [diff] [blame] | 25 | LOCAL_SRC_FILES := $(call all-java-files-under, src) |
Paul Duffin | e20f193 | 2016-11-28 15:51:09 +0000 | [diff] [blame] | 26 | LOCAL_MODULE := legacy-test |
Paul Duffin | df25760 | 2016-11-30 13:29:39 +0000 | [diff] [blame] | 27 | LOCAL_NO_STANDARD_LIBRARIES := true |
| 28 | LOCAL_JAVA_LIBRARIES := core-oj core-libart framework |
Paul Duffin | e20f193 | 2016-11-28 15:51:09 +0000 | [diff] [blame] | 29 | |
| 30 | include $(BUILD_JAVA_LIBRARY) |
Paul Duffin | 02f42f9 | 2016-12-07 14:21:53 +0000 | [diff] [blame] | 31 | |
Paul Duffin | 2ffc4ad | 2017-01-17 14:36:12 +0000 | [diff] [blame^] | 32 | # Build the legacy-android-test library |
| 33 | # ============================= |
| 34 | # This contains the android.test classes that were in Android API level 25. |
| 35 | include $(CLEAR_VARS) |
| 36 | |
| 37 | LOCAL_SRC_FILES := $(call all-java-files-under, src/android) |
| 38 | LOCAL_MODULE := legacy-android-test |
| 39 | LOCAL_NO_STANDARD_LIBRARIES := true |
| 40 | LOCAL_JAVA_LIBRARIES := core-oj core-libart framework junit |
| 41 | |
| 42 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 43 | |
Paul Duffin | 02f42f9 | 2016-12-07 14:21:53 +0000 | [diff] [blame] | 44 | ifeq ($(HOST_OS),linux) |
| 45 | # Build the legacy-performance-test-hostdex library |
| 46 | # ================================================= |
| 47 | # This contains the android.test.PerformanceTestCase class only |
| 48 | include $(CLEAR_VARS) |
| 49 | |
Paul Duffin | df25760 | 2016-11-30 13:29:39 +0000 | [diff] [blame] | 50 | LOCAL_SRC_FILES := src/android/test/PerformanceTestCase.java |
Paul Duffin | 02f42f9 | 2016-12-07 14:21:53 +0000 | [diff] [blame] | 51 | LOCAL_MODULE := legacy-performance-test-hostdex |
| 52 | |
| 53 | include $(BUILD_HOST_DALVIK_JAVA_LIBRARY) |
| 54 | endif # HOST_OS == linux |