blob: 34069ef403acc4149338b05556810ebc24cb096d [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
Anton Hanssond137c872018-02-23 12:57:51 +000029LOCAL_PRIVATE_PLATFORM_APIS := true
Winson Chung6519c1b2017-10-13 17:12:56 -070030LOCAL_COMPATIBILITY_SUITE := device-tests
31
32# Add local path sources as well as shared lib sources
Jason Monk2c3a8042018-08-13 11:10:48 -040033LOCAL_SRC_FILES := $(call all-java-files-under, src)
Winson Chung6519c1b2017-10-13 17:12:56 -070034
35LOCAL_STATIC_JAVA_LIBRARIES := \
Jason Monk2c3a8042018-08-13 11:10:48 -040036 SystemUISharedLib \
Winson Chung6519c1b2017-10-13 17:12:56 -070037 metrics-helper-lib \
Brett Chabot8091d9e2019-02-26 14:52:33 -080038 androidx.test.rules \
Jason Monk1fc931a2017-12-14 13:22:58 -050039 mockito-target-inline-minus-junit4 \
Winson Chung6519c1b2017-10-13 17:12:56 -070040 SystemUI-proto \
41 SystemUI-tags \
Winson Chung6519c1b2017-10-13 17:12:56 -070042 testables \
43 truth-prebuilt \
44
Jason Monk1fc931a2017-12-14 13:22:58 -050045LOCAL_MULTILIB := both
46
47LOCAL_JNI_SHARED_LIBRARIES := \
48 libdexmakerjvmtiagent \
49 libmultiplejvmtiagentsinterferenceagent
50
Narayan Kamathfdbc6112018-02-06 16:09:21 +000051LOCAL_JAVA_LIBRARIES := android.test.runner telephony-common
Winson Chung6519c1b2017-10-13 17:12:56 -070052
53# sign this with platform cert, so this test is allowed to inject key events into
54# UI it doesn't own. This is necessary to allow screenshots to be taken
55LOCAL_CERTIFICATE := platform
56
57ifeq ($(EXCLUDE_SYSTEMUI_TESTS),)
58 include $(BUILD_PACKAGE)
Paul Duffinb8663072017-12-08 00:02:42 +000059endif