blob: 7187a3795433fda9e11cec97f179cda14548de7f [file] [log] [blame]
Alan Stokes761d6182017-12-19 11:48:19 +00001#
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_COMPATIBILITY_SUITE := device-tests
39LOCAL_CERTIFICATE := platform
40LOCAL_SRC_FILES := $(call all-java-files-under, src/com/android/server/pm)
41
42LOCAL_STATIC_JAVA_LIBRARIES := \
43 android-support-test \
44 truth-prebuilt \
45
46# This gets us the javalib.jar built by DexLoggerTestLibrary above.
47LOCAL_JAVA_RESOURCE_FILES := $(dexloggertest_jar)
48
49include $(BUILD_PACKAGE)