blob: 5f083deedea51e27ae2cbcb4a3edbdb41827fb48 [file] [log] [blame]
Santos Cordon76faae52013-12-12 18:55:50 -08001#
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
Santos Cordonbd4d3b12014-01-30 14:50:29 -080020LOCAL_STATIC_JAVA_LIBRARIES := \
Alan Viverette26f8daa2018-03-23 14:31:37 -040021 android-ex-camera2 \
22 guava \
23 mockito-target \
24 android-support-test \
25 platform-test-annotations
26
27LOCAL_STATIC_ANDROID_LIBRARIES := \
28 android-support-core-ui \
29 android-support-core-utils \
30 android-support-compat \
31 android-support-fragment
Santos Cordonbd4d3b12014-01-30 14:50:29 -080032
Ihab Awadaa383cc2015-03-22 22:12:28 -070033LOCAL_SRC_FILES := \
Alan Viverette26f8daa2018-03-23 14:31:37 -040034 $(call all-java-files-under, src) \
35 $(call all-java-files-under, ../src) \
36 $(call all-proto-files-under, ../proto)
Hall Liu2f4f0a02016-08-08 17:23:20 -070037
38LOCAL_PROTOC_OPTIMIZE_TYPE := nano
39LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/../proto/
40LOCAL_PROTO_JAVA_OUTPUT_PARAMS := optional_field_style=accessors
Santos Cordon76faae52013-12-12 18:55:50 -080041
Ihab Awadaa383cc2015-03-22 22:12:28 -070042LOCAL_RESOURCE_DIR := \
43 $(LOCAL_PATH)/res \
Alan Viverette26f8daa2018-03-23 14:31:37 -040044 $(LOCAL_PATH)/../res
Ihab Awadaa383cc2015-03-22 22:12:28 -070045
46LOCAL_JAVA_LIBRARIES := \
Alan Viverette26f8daa2018-03-23 14:31:37 -040047 android.test.mock \
48 android.test.base \
49 android.test.runner \
50 telephony-common
Ihab Awadaa383cc2015-03-22 22:12:28 -070051
Aurimas Liutikas2c40ffc2017-12-06 11:39:26 -080052LOCAL_USE_AAPT2 := true
53
Ihab Awadaa383cc2015-03-22 22:12:28 -070054LOCAL_AAPT_FLAGS := \
55 --auto-add-overlay \
Alan Viverette26f8daa2018-03-23 14:31:37 -040056 --extra-packages com.android.server.telecom
Yorke Lee7a593fa2015-03-27 12:30:44 -070057
Paul Duffin7197aae2017-03-11 21:35:00 +000058LOCAL_JACK_FLAGS := --multi-dex native
59
Tyler Gunnae694b12015-11-11 17:46:03 -080060LOCAL_PROGUARD_ENABLED := disabled
61
Ihab Awad945a82e2015-04-01 19:35:00 -070062LOCAL_PACKAGE_NAME := TelecomUnitTests
Anton Hansson5fd4b682018-02-23 16:06:08 +000063LOCAL_PRIVATE_PLATFORM_APIS := true
Santos Cordon76faae52013-12-12 18:55:50 -080064LOCAL_CERTIFICATE := platform
65
66LOCAL_MODULE_TAGS := tests
67
Allen Hair53396292016-08-25 16:48:24 -070068LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.server.telecom.*
69LOCAL_JACK_COVERAGE_EXCLUDE_FILTER := com.android.server.telecom.tests.*
70
Hall Liu43f20c32018-01-02 16:57:23 -080071LOCAL_COMPATIBILITY_SUITE := device-tests
Sudheer Shankad3b06b72016-03-09 18:46:29 -080072include frameworks/base/packages/SettingsLib/common.mk
73
Santos Cordon76faae52013-12-12 18:55:50 -080074include $(BUILD_PACKAGE)