blob: 239a4e37e832ffa74d5f5a40c4dc32bea6f97274 [file] [log] [blame]
Winson Chung6519c1b2017-10-13 17:12:56 -07001# Copyright (C) 2017 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_USE_AAPT2 := true
19LOCAL_MODULE_TAGS := tests
20
21LOCAL_JACK_FLAGS := --multi-dex native
22LOCAL_DX_FLAGS := --multi-dex
23
24LOCAL_PROTOC_OPTIMIZE_TYPE := nano
25LOCAL_PROTOC_FLAGS := -I$(LOCAL_PATH)/..
26LOCAL_PROTO_JAVA_OUTPUT_PARAMS := optional_field_style=accessors
27
28LOCAL_PACKAGE_NAME := SystemUISharedLibTests
29LOCAL_COMPATIBILITY_SUITE := device-tests
30
31# Add local path sources as well as shared lib sources
32LOCAL_SRC_FILES := $(call all-java-files-under, src) \
33 $(call all-java-files-under, ../src)
34
35LOCAL_STATIC_JAVA_LIBRARIES := \
36 metrics-helper-lib \
37 android-support-test \
38 mockito-target-minus-junit4 \
39 SystemUI-proto \
40 SystemUI-tags \
Winson Chung6519c1b2017-10-13 17:12:56 -070041 testables \
42 truth-prebuilt \
43
44LOCAL_JAVA_LIBRARIES := android.test.runner telephony-common android.car
45
46# sign this with platform cert, so this test is allowed to inject key events into
47# UI it doesn't own. This is necessary to allow screenshots to be taken
48LOCAL_CERTIFICATE := platform
49
50ifeq ($(EXCLUDE_SYSTEMUI_TESTS),)
51 include $(BUILD_PACKAGE)
Paul Duffinb8663072017-12-08 00:02:42 +000052endif