blob: 4a87b071272fe4bdc04c15b2f4e34480f293b4bf [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\
Kenny Rootfd41eda2013-08-30 14:32:57 -070023 src/android/os/cts/IEmptyService.aidl\
24 src/android/security/cts/activity/ISecureRandomService.aidl
The Android Open Source Projectf8057102009-03-15 16:47:16 -070025
26LOCAL_JAVA_LIBRARIES := android.test.runner
27
Brian Muramatsu8c005b32010-07-07 16:43:01 -070028LOCAL_JNI_SHARED_LIBRARIES := libcts_jni
29
Dianne Hackbornc6dd74e2009-11-01 21:18:44 -080030# Resource unit tests use a private locale and some densities
Dianne Hackborn63d85b52012-03-09 13:18:36 -080031LOCAL_AAPT_FLAGS = -c xx_YY -c cs -c small -c normal -c large -c xlarge \
32 -c 320dpi -c 240dpi -c 160dpi -c 32dpi \
Dianne Hackborn49a978a2011-11-11 18:19:25 -080033 --preferred-configurations 320dpi --preferred-configurations 240dpi \
34 --preferred-configurations 160dpi --preferred-configurations 32dpi
Brett Chabote947cdc2009-07-28 19:32:53 -070035
The Android Open Source Projectf8057102009-03-15 16:47:16 -070036LOCAL_PACKAGE_NAME := CtsTestStubs
37
Brian Muramatsu5daf3232012-03-23 18:50:35 -070038LOCAL_STATIC_JAVA_LIBRARIES := ctsutil ctstestserver ctstestrunner
Brian Muramatsu471beda2012-03-05 18:46:33 -080039
Brian Carlstromcb711272012-06-16 23:32:47 -070040LOCAL_DEX_PREOPT := false
41
The Android Open Source Projectf8057102009-03-15 16:47:16 -070042include $(BUILD_PACKAGE)
43
44# Build the test APK using its own makefile, and any other CTS-related packages
45include $(call all-makefiles-under,$(LOCAL_PATH))