1# Copyright (C) 2009 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#      http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15LOCAL_PATH:= $(call my-dir)
16
17ifeq ($(BUILD_CTSCORE_PACKAGE),)
18    $(error BUILD_CTSCORE_PACKAGE must be defined)
19endif
20
21include $(CLEAR_VARS)
22
23# include this package in the tests target for continuous testing
24LOCAL_MODULE_TAGS := tests
25
26LOCAL_PACKAGE_NAME := android.core.tests.runner
27
28LOCAL_STATIC_JAVA_LIBRARIES := cts-test-runner
29
30LOCAL_JAVA_LANGUAGE_VERSION := 1.8
31
32include $(BUILD_CTSCORE_PACKAGE)
33
34#==========================================================
35# Build the core runner.
36#==========================================================
37
38# Build library
39include $(CLEAR_VARS)
40
41LOCAL_MODULE_TAGS := optional
42LOCAL_SRC_FILES := $(call all-java-files-under,src)
43LOCAL_MODULE := cts-core-test-runner
44LOCAL_STATIC_JAVA_LIBRARIES := \
45    compatibility-device-util \
46    android-support-test \
47    android.test.runner \
48    vogarexpect \
49    testng
50
51LOCAL_JAVA_LANGUAGE_VERSION := 1.8
52
53include $(BUILD_JAVA_LIBRARY)
54
55#==========================================================
56# Build the run listener
57#==========================================================
58
59# Build library
60include $(CLEAR_VARS)
61
62LOCAL_MODULE_TAGS := optional
63LOCAL_SRC_FILES := $(call all-java-files-under,src/com/android/cts/runner)
64LOCAL_MODULE := cts-test-runner
65LOCAL_STATIC_JAVA_LIBRARIES := android-support-test
66
67include $(BUILD_JAVA_LIBRARY)
68