blob: 7bab1894373d077511dd9c408e9143a1449b2841 [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# =============================
21# This contains the junit.framework classes that were in Android API level 25.
22include $(CLEAR_VARS)
23
Paul Duffindf257602016-11-30 13:29:39 +000024LOCAL_SRC_FILES := $(call all-java-files-under, src)
Paul Duffine20f1932016-11-28 15:51:09 +000025LOCAL_MODULE := legacy-test
Paul Duffindf257602016-11-30 13:29:39 +000026LOCAL_NO_STANDARD_LIBRARIES := true
27LOCAL_JAVA_LIBRARIES := core-oj core-libart framework
28LOCAL_STATIC_JAVA_LIBRARIES := core-junit-static
Paul Duffine20f1932016-11-28 15:51:09 +000029
30include $(BUILD_JAVA_LIBRARY)
Paul Duffin02f42f92016-12-07 14:21:53 +000031
32ifeq ($(HOST_OS),linux)
33# Build the legacy-performance-test-hostdex library
34# =================================================
35# This contains the android.test.PerformanceTestCase class only
36include $(CLEAR_VARS)
37
Paul Duffindf257602016-11-30 13:29:39 +000038LOCAL_SRC_FILES := src/android/test/PerformanceTestCase.java
Paul Duffin02f42f92016-12-07 14:21:53 +000039LOCAL_MODULE := legacy-performance-test-hostdex
40
41include $(BUILD_HOST_DALVIK_JAVA_LIBRARY)
42endif # HOST_OS == linux