Tadashi G. Takaoka | 56c9a74 | 2018-09-14 14:06:55 +0900 | [diff] [blame] | 1 | ######################################################################### |
| 2 | # Build WmTests package |
| 3 | ######################################################################### |
| 4 | |
| 5 | LOCAL_PATH:= $(call my-dir) |
| 6 | include $(CLEAR_VARS) |
| 7 | |
| 8 | # We only want this apk build for tests. |
| 9 | LOCAL_MODULE_TAGS := tests |
| 10 | |
| 11 | # Include all test java files. |
| 12 | LOCAL_SRC_FILES := \ |
| 13 | $(call all-java-files-under, src) \ |
| 14 | $(call all-java-files-under, ../servicestests/utils) |
| 15 | |
| 16 | LOCAL_STATIC_JAVA_LIBRARIES := \ |
Brett Chabot | ff2af31 | 2018-10-18 10:49:53 -0700 | [diff] [blame] | 17 | androidx.test.runner \ |
Tadashi G. Takaoka | 56c9a74 | 2018-09-14 14:06:55 +0900 | [diff] [blame] | 18 | mockito-target-minus-junit4 \ |
| 19 | platform-test-annotations \ |
Tadashi G. Takaoka | 56c9a74 | 2018-09-14 14:06:55 +0900 | [diff] [blame] | 20 | |
| 21 | LOCAL_JAVA_LIBRARIES := \ |
| 22 | android.test.mock \ |
| 23 | android.test.base \ |
| 24 | android.test.runner \ |
| 25 | |
| 26 | LOCAL_PACKAGE_NAME := WmTests |
| 27 | LOCAL_PRIVATE_PLATFORM_APIS := true |
| 28 | LOCAL_COMPATIBILITY_SUITE := device-tests |
| 29 | |
| 30 | LOCAL_CERTIFICATE := platform |
| 31 | |
| 32 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk |
| 33 | |
| 34 | LOCAL_JACK_FLAGS := --multi-dex native |
| 35 | LOCAL_DX_FLAGS := --multi-dex |
| 36 | |
| 37 | LOCAL_PROGUARD_ENABLED := disabled |
| 38 | |
| 39 | include $(BUILD_PACKAGE) |
| 40 | |
| 41 | include $(call all-makefiles-under, $(LOCAL_PATH)) |