Alan Stokes | 761d618 | 2017-12-19 11:48:19 +0000 | [diff] [blame] | 1 | # |
| 2 | # Copyright 2017 The Android Open Source Project |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # |
| 16 | |
| 17 | LOCAL_PATH:= $(call my-dir) |
| 18 | |
| 19 | # Build a tiny library that the test app can dynamically load |
| 20 | |
| 21 | include $(CLEAR_VARS) |
| 22 | |
| 23 | LOCAL_MODULE_TAGS := tests |
| 24 | LOCAL_MODULE := DexLoggerTestLibrary |
| 25 | LOCAL_SRC_FILES := $(call all-java-files-under, src/com/android/dcl) |
| 26 | |
| 27 | include $(BUILD_JAVA_LIBRARY) |
| 28 | |
| 29 | dexloggertest_jar := $(LOCAL_BUILT_MODULE) |
| 30 | |
| 31 | |
| 32 | # Build the test app itself |
| 33 | |
| 34 | include $(CLEAR_VARS) |
| 35 | |
| 36 | LOCAL_MODULE_TAGS := tests |
| 37 | LOCAL_PACKAGE_NAME := DexLoggerIntegrationTests |
Anton Hansson | ab6ec61 | 2018-02-23 12:57:51 +0000 | [diff] [blame] | 38 | LOCAL_SDK_VERSION := current |
Alan Stokes | 761d618 | 2017-12-19 11:48:19 +0000 | [diff] [blame] | 39 | LOCAL_COMPATIBILITY_SUITE := device-tests |
| 40 | LOCAL_CERTIFICATE := platform |
| 41 | LOCAL_SRC_FILES := $(call all-java-files-under, src/com/android/server/pm) |
| 42 | |
| 43 | LOCAL_STATIC_JAVA_LIBRARIES := \ |
| 44 | android-support-test \ |
| 45 | truth-prebuilt \ |
| 46 | |
| 47 | # This gets us the javalib.jar built by DexLoggerTestLibrary above. |
| 48 | LOCAL_JAVA_RESOURCE_FILES := $(dexloggertest_jar) |
| 49 | |
| 50 | include $(BUILD_PACKAGE) |