[go: nahoru, domu]

1# Copyright (C) 2011 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
18LOCAL_MODULE_TAGS := tests
19
20LOCAL_JACK_FLAGS := --multi-dex native
21
22LOCAL_PROTOC_OPTIMIZE_TYPE := nano
23LOCAL_PROTOC_FLAGS := -I$(LOCAL_PATH)/..
24LOCAL_PROTO_JAVA_OUTPUT_PARAMS := optional_field_style=accessors
25
26LOCAL_AAPT_FLAGS := --auto-add-overlay \
27    --extra-packages com.android.systemui:com.android.keyguard:android.support.v14.preference:android.support.v7.preference:android.support.v7.appcompat:android.support.v7.recyclerview \
28    --extra-packages android.support.v17.leanback
29
30LOCAL_SRC_FILES := $(call all-java-files-under, src) \
31    $(call all-Iaidl-files-under, src) \
32    $(call all-java-files-under, ../src)
33
34LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res \
35    frameworks/support/v7/preference/res \
36    frameworks/support/v14/preference/res \
37    frameworks/support/v7/appcompat/res \
38    frameworks/support/v7/recyclerview/res \
39    frameworks/support/v17/leanback/res \
40    frameworks/base/packages/SystemUI/res \
41    frameworks/base/packages/Keyguard/res
42
43LOCAL_JAVA_LIBRARIES := android.test.runner telephony-common
44
45LOCAL_PACKAGE_NAME := SystemUITests
46
47LOCAL_STATIC_JAVA_LIBRARIES := \
48    mockito-target \
49    Keyguard \
50    android-support-v7-recyclerview \
51    android-support-v7-preference \
52    android-support-v7-appcompat \
53    android-support-v14-preference \
54    android-support-v17-leanback \
55    SystemUI-proto-tags
56
57# sign this with platform cert, so this test is allowed to inject key events into
58# UI it doesn't own. This is necessary to allow screenshots to be taken
59LOCAL_CERTIFICATE := platform
60
61include frameworks/base/packages/SettingsLib/common.mk
62
63include $(BUILD_PACKAGE)
64