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
17LOCAL_PATH:= $(call my-dir)
18
19# Build a tiny library that the test app can dynamically load
20
21include $(CLEAR_VARS)
22
23LOCAL_MODULE_TAGS := tests
24LOCAL_MODULE := DexLoggerTestLibrary
25LOCAL_SRC_FILES := $(call all-java-files-under, src/com/android/dcl)
26
27include $(BUILD_JAVA_LIBRARY)
28
29dexloggertest_jar := $(LOCAL_BUILT_MODULE)
30
31
32# Build the test app itself
33
34include $(CLEAR_VARS)
35
36LOCAL_MODULE_TAGS := tests
37LOCAL_PACKAGE_NAME := DexLoggerIntegrationTests
38LOCAL_SDK_VERSION := current
39LOCAL_COMPATIBILITY_SUITE := device-tests
40LOCAL_CERTIFICATE := platform
41LOCAL_SRC_FILES := $(call all-java-files-under, src/com/android/server/pm)
42
43LOCAL_STATIC_JAVA_LIBRARIES := \
44    android-support-test \
45    truth-prebuilt \
46
47# This gets us the javalib.jar built by DexLoggerTestLibrary above.
48LOCAL_JAVA_RESOURCE_FILES := $(dexloggertest_jar)
49
50include $(BUILD_PACKAGE)
51