Android.mk revision 2c40ffc63e6dfc2d2eb6c19fda9759d2c319bdce
1#
2# Copyright (C) 2013 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)
18include $(CLEAR_VARS)
19
20LOCAL_STATIC_JAVA_LIBRARIES := \
21        android-ex-camera2 \
22        android-support-v4 \
23        android-support-test \
24        guava \
25        mockito-target \
26        platform-test-annotations
27
28LOCAL_SRC_FILES := \
29        $(call all-java-files-under, src) \
30        $(call all-java-files-under, ../src) \
31        $(call all-proto-files-under, ../proto)
32
33LOCAL_PROTOC_OPTIMIZE_TYPE := nano
34LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/../proto/
35LOCAL_PROTO_JAVA_OUTPUT_PARAMS := optional_field_style=accessors
36
37LOCAL_RESOURCE_DIR := \
38    $(LOCAL_PATH)/res \
39    $(LOCAL_PATH)/../res \
40    $(SUPPORT_LIBRARY_ROOT)/compat/res
41
42LOCAL_JAVA_LIBRARIES := \
43        android.test.mock \
44        legacy-android-test \
45        telephony-common
46
47LOCAL_USE_AAPT2 := true
48
49LOCAL_AAPT_FLAGS := \
50    --auto-add-overlay \
51    --extra-packages com.android.server.telecom:android.support.compat
52
53LOCAL_JACK_FLAGS := --multi-dex native
54
55LOCAL_PROGUARD_ENABLED := disabled
56
57LOCAL_PACKAGE_NAME := TelecomUnitTests
58LOCAL_CERTIFICATE := platform
59
60LOCAL_MODULE_TAGS := tests
61
62LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.server.telecom.*
63LOCAL_JACK_COVERAGE_EXCLUDE_FILTER := com.android.server.telecom.tests.*
64
65include frameworks/base/packages/SettingsLib/common.mk
66
67include $(BUILD_PACKAGE)
68