| 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 |
| 29 | LOCAL_COMPATIBILITY_SUITE := device-tests |
| 30 | |
| 31 | # Add local path sources as well as shared lib sources |
| 32 | LOCAL_SRC_FILES := $(call all-java-files-under, src) \ |
| 33 | $(call all-java-files-under, ../src) |
| 34 | |
| 35 | LOCAL_STATIC_JAVA_LIBRARIES := \ |
| 36 | metrics-helper-lib \ |
| 37 | android-support-test \ |
| 38 | mockito-target-minus-junit4 \ |
| 39 | SystemUI-proto \ |
| 40 | SystemUI-tags \ |
| Winson Chung | 6519c1b | 2017-10-13 17:12:56 -0700 | [diff] [blame] | 41 | testables \ |
| 42 | truth-prebuilt \ |
| 43 | |
| 44 | LOCAL_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 |
| 48 | LOCAL_CERTIFICATE := platform |
| 49 | |
| 50 | ifeq ($(EXCLUDE_SYSTEMUI_TESTS),) |
| 51 | include $(BUILD_PACKAGE) |
| Paul Duffin | b866307 | 2017-12-08 00:02:42 +0000 | [diff] [blame] | 52 | endif |