blob: 2020abba53c5c28a615e805f311d51043b47f413 [file] [log] [blame]
Brett Chabotcaf30a12011-07-28 19:33:22 -07001# 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
Adam Lesinski38e89662016-06-24 15:00:11 -070018LOCAL_USE_AAPT2 := true
Brett Chabotcaf30a12011-07-28 19:33:22 -070019LOCAL_MODULE_TAGS := tests
20
Sid Soundararajanb58c46a2016-01-26 15:39:27 -080021LOCAL_JACK_FLAGS := --multi-dex native
22
Blazej Magnowski72323322015-07-24 11:49:40 -070023LOCAL_PROTOC_OPTIMIZE_TYPE := nano
24LOCAL_PROTOC_FLAGS := -I$(LOCAL_PATH)/..
25LOCAL_PROTO_JAVA_OUTPUT_PARAMS := optional_field_style=accessors
26
Adam Lesinski38e89662016-06-24 15:00:11 -070027LOCAL_PACKAGE_NAME := SystemUITests
Winson190fe3bf2015-10-20 14:57:24 -070028
Jason Monk29f7a7b2014-11-17 14:40:56 -050029LOCAL_SRC_FILES := $(call all-java-files-under, src) \
Winson190fe3bf2015-10-20 14:57:24 -070030 $(call all-Iaidl-files-under, src) \
Adrian Roos4cc2a582016-02-25 09:28:13 -080031 $(call all-java-files-under, ../src)
Jason Monk29f7a7b2014-11-17 14:40:56 -050032
33LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res \
34 frameworks/base/packages/SystemUI/res \
Brett Chabotcaf30a12011-07-28 19:33:22 -070035
Adam Lesinski38e89662016-06-24 15:00:11 -070036LOCAL_STATIC_ANDROID_LIBRARIES := \
Winsonc29ff002015-11-20 16:00:45 -080037 Keyguard \
Jason Monk87ccd552015-12-11 21:39:54 -050038 android-support-v7-recyclerview \
39 android-support-v7-preference \
40 android-support-v7-appcompat \
Sid Soundararajanb58c46a2016-01-26 15:39:27 -080041 android-support-v14-preference \
Adam Lesinski38e89662016-06-24 15:00:11 -070042 android-support-v17-leanback
43
44LOCAL_STATIC_JAVA_LIBRARIES := \
45 mockito-target \
Adrian Roos4cc2a582016-02-25 09:28:13 -080046 SystemUI-proto-tags
Brett Chabotcaf30a12011-07-28 19:33:22 -070047
Adam Lesinski38e89662016-06-24 15:00:11 -070048LOCAL_JAVA_LIBRARIES := android.test.runner telephony-common android.car
49
50LOCAL_AAPT_FLAGS := --extra-packages com.android.systemui
51
Brett Chabotcaf30a12011-07-28 19:33:22 -070052# sign this with platform cert, so this test is allowed to inject key events into
53# UI it doesn't own. This is necessary to allow screenshots to be taken
54LOCAL_CERTIFICATE := platform
55
Jason Monk2ba4ce62015-01-13 10:08:23 -050056include frameworks/base/packages/SettingsLib/common.mk
57
Brett Chabotcaf30a12011-07-28 19:33:22 -070058include $(BUILD_PACKAGE)