2 # Copyright (C) 2016 The Android Open Source Project
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
8 # http://www.apache.org/licenses/LICENSE-2.0
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.
17 LOCAL_PATH:= $(call my-dir)
19 # Build the legacy-test library
20 # =============================
21 # This contains the junit.framework and android.test classes that were in
22 # Android API level 25 excluding those from android.test.runner.
23 # Also contains the com.android.internal.util.Predicate[s] classes.
26 LOCAL_SRC_FILES := $(call all-java-files-under, src)
28 LOCAL_MODULE := legacy-test
29 LOCAL_NO_STANDARD_LIBRARIES := true
30 LOCAL_JAVA_LIBRARIES := core-oj core-libart framework
32 include $(BUILD_JAVA_LIBRARY)
34 # Build the legacy-android-test library
35 # =====================================
36 # This contains the android.test classes that were in Android API level 25,
37 # including those from android.test.runner.
38 # Also contains the com.android.internal.util.Predicate[s] classes.
42 $(call all-java-files-under, src/android) \
43 $(call all-java-files-under, ../test-runner/src/android) \
44 $(call all-java-files-under, src/com)
45 LOCAL_MODULE := legacy-android-test
46 LOCAL_NO_STANDARD_LIBRARIES := true
47 LOCAL_JAVA_LIBRARIES := core-oj core-libart framework junit
49 include $(BUILD_STATIC_JAVA_LIBRARY)
51 ifeq ($(HOST_OS),linux)
52 # Build the legacy-performance-test-hostdex library
53 # =================================================
54 # This contains the android.test.PerformanceTestCase class only
57 LOCAL_SRC_FILES := src/android/test/PerformanceTestCase.java
58 LOCAL_MODULE := legacy-performance-test-hostdex
60 include $(BUILD_HOST_DALVIK_STATIC_JAVA_LIBRARY)
61 endif # HOST_OS == linux