| Winson Chung | 6519c1b | 2017-10-13 17:12:56 -0700 | [diff] [blame] | 1 | # 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 | |
| 15 | LOCAL_PATH := $(call my-dir) |
| 16 | include $(CLEAR_VARS) |
| 17 | |
| 18 | LOCAL_USE_AAPT2 := true |
| 19 | LOCAL_MODULE_TAGS := tests |
| 20 | |
| 21 | LOCAL_JACK_FLAGS := --multi-dex native |
| 22 | LOCAL_DX_FLAGS := --multi-dex |
| 23 | |
| 24 | LOCAL_PROTOC_OPTIMIZE_TYPE := nano |
| 25 | LOCAL_PROTOC_FLAGS := -I$(LOCAL_PATH)/.. |
| 26 | LOCAL_PROTO_JAVA_OUTPUT_PARAMS := optional_field_style=accessors |
| 27 | |
| 28 | LOCAL_PACKAGE_NAME := SystemUISharedLibTests |
| Anton Hansson | d137c87 | 2018-02-23 12:57:51 +0000 | [diff] [blame] | 29 | LOCAL_PRIVATE_PLATFORM_APIS := true |
| Winson Chung | 6519c1b | 2017-10-13 17:12:56 -0700 | [diff] [blame] | 30 | LOCAL_COMPATIBILITY_SUITE := device-tests |
| 31 | |
| 32 | # Add local path sources as well as shared lib sources |
| Jason Monk | 2c3a804 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 33 | LOCAL_SRC_FILES := $(call all-java-files-under, src) |
| Winson Chung | 6519c1b | 2017-10-13 17:12:56 -0700 | [diff] [blame] | 34 | |
| 35 | LOCAL_STATIC_JAVA_LIBRARIES := \ |
| Jason Monk | 2c3a804 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 36 | SystemUISharedLib \ |
| Winson Chung | 6519c1b | 2017-10-13 17:12:56 -0700 | [diff] [blame] | 37 | metrics-helper-lib \ |
| Brett Chabot | 8091d9e | 2019-02-26 14:52:33 -0800 | [diff] [blame] | 38 | androidx.test.rules \ |
| Jason Monk | 1fc931a | 2017-12-14 13:22:58 -0500 | [diff] [blame] | 39 | mockito-target-inline-minus-junit4 \ |
| Winson Chung | 6519c1b | 2017-10-13 17:12:56 -0700 | [diff] [blame] | 40 | SystemUI-proto \ |
| 41 | SystemUI-tags \ |
| Winson Chung | 6519c1b | 2017-10-13 17:12:56 -0700 | [diff] [blame] | 42 | testables \ |
| 43 | truth-prebuilt \ |
| 44 | |
| Jason Monk | 1fc931a | 2017-12-14 13:22:58 -0500 | [diff] [blame] | 45 | LOCAL_MULTILIB := both |
| 46 | |
| 47 | LOCAL_JNI_SHARED_LIBRARIES := \ |
| 48 | libdexmakerjvmtiagent \ |
| 49 | libmultiplejvmtiagentsinterferenceagent |
| 50 | |
| Narayan Kamath | fdbc611 | 2018-02-06 16:09:21 +0000 | [diff] [blame] | 51 | LOCAL_JAVA_LIBRARIES := android.test.runner telephony-common |
| Winson Chung | 6519c1b | 2017-10-13 17:12:56 -0700 | [diff] [blame] | 52 | |
| 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 |
| 55 | LOCAL_CERTIFICATE := platform |
| 56 | |
| 57 | ifeq ($(EXCLUDE_SYSTEMUI_TESTS),) |
| 58 | include $(BUILD_PACKAGE) |
| Paul Duffin | b866307 | 2017-12-08 00:02:42 +0000 | [diff] [blame] | 59 | endif |