blob: 15705dde1078722463b3623d22b2f1c9e857d778 [file] [log] [blame]
The Android Open Source Projectf8057102009-03-15 16:47:16 -07001# Copyright (C) 2008 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)
16include $(CLEAR_VARS)
17
Phil Dubach231bd252009-04-20 17:57:22 -070018LOCAL_MODULE_TAGS := tests
The Android Open Source Projectf8057102009-03-15 16:47:16 -070019
Scott Su0bcd3d02009-04-14 23:11:35 -070020LOCAL_SRC_FILES := $(call all-java-files-under, src)\
Stephen Hines4aeee062011-02-24 18:30:30 -080021 $(call all-renderscript-files-under, src)\
Scott Su0bcd3d02009-04-14 23:11:35 -070022 src/android/app/cts/ISecondary.aidl\
Scott Su89a09702009-04-23 22:02:53 -070023 src/android/os/cts/IEmptyService.aidl
The Android Open Source Projectf8057102009-03-15 16:47:16 -070024
25LOCAL_JAVA_LIBRARIES := android.test.runner
26
Brian Muramatsu8c005b32010-07-07 16:43:01 -070027LOCAL_JNI_SHARED_LIBRARIES := libcts_jni
28
Dianne Hackbornc6dd74e2009-11-01 21:18:44 -080029# Resource unit tests use a private locale and some densities
Dianne Hackborn63d85b52012-03-09 13:18:36 -080030LOCAL_AAPT_FLAGS = -c xx_YY -c cs -c small -c normal -c large -c xlarge \
31 -c 320dpi -c 240dpi -c 160dpi -c 32dpi \
Dianne Hackborn49a978a2011-11-11 18:19:25 -080032 --preferred-configurations 320dpi --preferred-configurations 240dpi \
33 --preferred-configurations 160dpi --preferred-configurations 32dpi
Brett Chabote947cdc2009-07-28 19:32:53 -070034
The Android Open Source Projectf8057102009-03-15 16:47:16 -070035LOCAL_PACKAGE_NAME := CtsTestStubs
36
Brian Muramatsu5daf3232012-03-23 18:50:35 -070037LOCAL_STATIC_JAVA_LIBRARIES := ctsutil ctstestserver ctstestrunner
Brian Muramatsu471beda2012-03-05 18:46:33 -080038
Brian Carlstromcb711272012-06-16 23:32:47 -070039LOCAL_DEX_PREOPT := false
40
The Android Open Source Projectf8057102009-03-15 16:47:16 -070041include $(BUILD_PACKAGE)
42
43# Build the test APK using its own makefile, and any other CTS-related packages
44include $(call all-makefiles-under,$(LOCAL_PATH))