blob: 8efda2ad0c203697025bb6d316f3c5bee7015ca1 [file] [log] [blame]
Paul Duffine20f1932016-11-28 15:51:09 +00001#
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
17LOCAL_PATH:= $(call my-dir)
18
19# Build the legacy-test library
20# =============================
Paul Duffin2ffc4ad2017-01-17 14:36:12 +000021# This contains the junit.framework and android.test classes that were in
Paul Duffin4e0c1902017-05-02 13:13:13 +010022# Android API level 25 excluding those from android.test.runner.
Paul Duffin44551302017-05-09 15:52:46 +010023# Also contains the com.android.internal.util.Predicate[s] classes.
Paul Duffine20f1932016-11-28 15:51:09 +000024include $(CLEAR_VARS)
25
Paul Duffindf257602016-11-30 13:29:39 +000026LOCAL_SRC_FILES := $(call all-java-files-under, src)
Paul Duffin44551302017-05-09 15:52:46 +010027
Paul Duffine20f1932016-11-28 15:51:09 +000028LOCAL_MODULE := legacy-test
Paul Duffindf257602016-11-30 13:29:39 +000029LOCAL_NO_STANDARD_LIBRARIES := true
30LOCAL_JAVA_LIBRARIES := core-oj core-libart framework
Paul Duffine20f1932016-11-28 15:51:09 +000031
32include $(BUILD_JAVA_LIBRARY)
Paul Duffin02f42f92016-12-07 14:21:53 +000033
Paul Duffin2ffc4ad2017-01-17 14:36:12 +000034# Build the legacy-android-test library
Paul Duffin44551302017-05-09 15:52:46 +010035# =====================================
Paul Duffin4e0c1902017-05-02 13:13:13 +010036# This contains the android.test classes that were in Android API level 25,
37# including those from android.test.runner.
Paul Duffin44551302017-05-09 15:52:46 +010038# Also contains the com.android.internal.util.Predicate[s] classes.
Paul Duffin2ffc4ad2017-01-17 14:36:12 +000039include $(CLEAR_VARS)
40
Paul Duffin4e0c1902017-05-02 13:13:13 +010041LOCAL_SRC_FILES := \
42 $(call all-java-files-under, src/android) \
Paul Duffin44551302017-05-09 15:52:46 +010043 $(call all-java-files-under, ../test-runner/src/android) \
44 $(call all-java-files-under, src/com)
Paul Duffin2ffc4ad2017-01-17 14:36:12 +000045LOCAL_MODULE := legacy-android-test
46LOCAL_NO_STANDARD_LIBRARIES := true
47LOCAL_JAVA_LIBRARIES := core-oj core-libart framework junit
48
49include $(BUILD_STATIC_JAVA_LIBRARY)
50
Paul Duffin44551302017-05-09 15:52:46 +010051# Build the legacy-android-tests library
52# ======================================
53include $(CLEAR_VARS)
54
55LOCAL_SRC_FILES := \
56 $(call all-java-files-under, tests)
57LOCAL_MODULE := legacy-android-tests
58LOCAL_NO_STANDARD_LIBRARIES := true
59LOCAL_JAVA_LIBRARIES := core-oj core-libart framework junit
60LOCAL_STATIC_JAVA_LIBRARIES := legacy-android-test
61
62include $(BUILD_STATIC_JAVA_LIBRARY)
63
Paul Duffin02f42f92016-12-07 14:21:53 +000064ifeq ($(HOST_OS),linux)
65# Build the legacy-performance-test-hostdex library
66# =================================================
67# This contains the android.test.PerformanceTestCase class only
68include $(CLEAR_VARS)
69
Paul Duffindf257602016-11-30 13:29:39 +000070LOCAL_SRC_FILES := src/android/test/PerformanceTestCase.java
Paul Duffin02f42f92016-12-07 14:21:53 +000071LOCAL_MODULE := legacy-performance-test-hostdex
72
Paul Duffinf1c59612017-02-22 11:42:46 +000073include $(BUILD_HOST_DALVIK_STATIC_JAVA_LIBRARY)
Paul Duffin02f42f92016-12-07 14:21:53 +000074endif # HOST_OS == linux