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 |
Paul Duffin | 4e0c190 | 2017-05-02 13:13:13 +0100 | [diff] [blame] | 22 | # Android API level 25 excluding those from android.test.runner. |
Paul Duffin | f71d5b5 | 2017-05-09 15:52:46 +0100 | [diff] [blame^] | 23 | # Also contains the com.android.internal.util.Predicate[s] classes. |
Paul Duffin | e20f193 | 2016-11-28 15:51:09 +0000 | [diff] [blame] | 24 | include $(CLEAR_VARS) |
| 25 | |
Paul Duffin | df25760 | 2016-11-30 13:29:39 +0000 | [diff] [blame] | 26 | LOCAL_SRC_FILES := $(call all-java-files-under, src) |
Paul Duffin | f71d5b5 | 2017-05-09 15:52:46 +0100 | [diff] [blame^] | 27 | |
Paul Duffin | e20f193 | 2016-11-28 15:51:09 +0000 | [diff] [blame] | 28 | LOCAL_MODULE := legacy-test |
Paul Duffin | df25760 | 2016-11-30 13:29:39 +0000 | [diff] [blame] | 29 | LOCAL_NO_STANDARD_LIBRARIES := true |
| 30 | LOCAL_JAVA_LIBRARIES := core-oj core-libart framework |
Paul Duffin | e20f193 | 2016-11-28 15:51:09 +0000 | [diff] [blame] | 31 | |
| 32 | include $(BUILD_JAVA_LIBRARY) |
Paul Duffin | 02f42f9 | 2016-12-07 14:21:53 +0000 | [diff] [blame] | 33 | |
Paul Duffin | 2ffc4ad | 2017-01-17 14:36:12 +0000 | [diff] [blame] | 34 | # Build the legacy-android-test library |
Paul Duffin | f71d5b5 | 2017-05-09 15:52:46 +0100 | [diff] [blame^] | 35 | # ===================================== |
Paul Duffin | 4e0c190 | 2017-05-02 13:13:13 +0100 | [diff] [blame] | 36 | # This contains the android.test classes that were in Android API level 25, |
| 37 | # including those from android.test.runner. |
Paul Duffin | f71d5b5 | 2017-05-09 15:52:46 +0100 | [diff] [blame^] | 38 | # Also contains the com.android.internal.util.Predicate[s] classes. |
Paul Duffin | 2ffc4ad | 2017-01-17 14:36:12 +0000 | [diff] [blame] | 39 | include $(CLEAR_VARS) |
| 40 | |
Paul Duffin | 4e0c190 | 2017-05-02 13:13:13 +0100 | [diff] [blame] | 41 | LOCAL_SRC_FILES := \ |
| 42 | $(call all-java-files-under, src/android) \ |
Paul Duffin | f71d5b5 | 2017-05-09 15:52:46 +0100 | [diff] [blame^] | 43 | $(call all-java-files-under, ../test-runner/src/android) \ |
| 44 | $(call all-java-files-under, src/com) |
Paul Duffin | 2ffc4ad | 2017-01-17 14:36:12 +0000 | [diff] [blame] | 45 | LOCAL_MODULE := legacy-android-test |
| 46 | LOCAL_NO_STANDARD_LIBRARIES := true |
| 47 | LOCAL_JAVA_LIBRARIES := core-oj core-libart framework junit |
| 48 | |
| 49 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 50 | |
Paul Duffin | f71d5b5 | 2017-05-09 15:52:46 +0100 | [diff] [blame^] | 51 | # Build the legacy-android-tests library |
| 52 | # ====================================== |
| 53 | include $(CLEAR_VARS) |
| 54 | |
| 55 | LOCAL_SRC_FILES := \ |
| 56 | $(call all-java-files-under, tests) |
| 57 | LOCAL_MODULE := legacy-android-tests |
| 58 | LOCAL_NO_STANDARD_LIBRARIES := true |
| 59 | LOCAL_JAVA_LIBRARIES := core-oj core-libart framework junit |
| 60 | LOCAL_STATIC_JAVA_LIBRARIES := legacy-android-test |
| 61 | |
| 62 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 63 | |
Paul Duffin | 02f42f9 | 2016-12-07 14:21:53 +0000 | [diff] [blame] | 64 | ifeq ($(HOST_OS),linux) |
| 65 | # Build the legacy-performance-test-hostdex library |
| 66 | # ================================================= |
| 67 | # This contains the android.test.PerformanceTestCase class only |
| 68 | include $(CLEAR_VARS) |
| 69 | |
Paul Duffin | df25760 | 2016-11-30 13:29:39 +0000 | [diff] [blame] | 70 | LOCAL_SRC_FILES := src/android/test/PerformanceTestCase.java |
Paul Duffin | 02f42f9 | 2016-12-07 14:21:53 +0000 | [diff] [blame] | 71 | LOCAL_MODULE := legacy-performance-test-hostdex |
| 72 | |
Paul Duffin | f1c5961 | 2017-02-22 11:42:46 +0000 | [diff] [blame] | 73 | include $(BUILD_HOST_DALVIK_STATIC_JAVA_LIBRARY) |
Paul Duffin | 02f42f9 | 2016-12-07 14:21:53 +0000 | [diff] [blame] | 74 | endif # HOST_OS == linux |