blob: c2db42a694446ff873f828e0336bc729a22b2c55 [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 := \
Tyler Gunnb1a95a72014-07-23 14:08:19 -070021 android-ex-camera2 \
Yorke Lee7a593fa2015-03-27 12:30:44 -070022 android-support-v4 \
Jordan Liua53fd9c2017-02-24 13:05:46 -080023 android-support-test \
Santos Cordonbd4d3b12014-01-30 14:50:29 -080024 guava \
Hall Liu3f54d492016-09-06 17:12:46 -070025 mockito-target \
Paul Duffin81de71c2017-06-13 12:28:59 +010026 platform-test-annotations
Santos Cordonbd4d3b12014-01-30 14:50:29 -080027
Ihab Awadaa383cc2015-03-22 22:12:28 -070028LOCAL_SRC_FILES := \
29 $(call all-java-files-under, src) \
Hall Liu2f4f0a02016-08-08 17:23:20 -070030 $(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
Santos Cordon76faae52013-12-12 18:55:50 -080036
Ihab Awadaa383cc2015-03-22 22:12:28 -070037LOCAL_RESOURCE_DIR := \
38 $(LOCAL_PATH)/res \
Alan Viverettee9d36872017-05-10 17:48:00 -040039 $(LOCAL_PATH)/../res \
40 $(SUPPORT_LIBRARY_ROOT)/compat/res
Ihab Awadaa383cc2015-03-22 22:12:28 -070041
42LOCAL_JAVA_LIBRARIES := \
Paul Duffin81de71c2017-06-13 12:28:59 +010043 android.test.mock \
44 legacy-android-test \
Hall Liu561cede2018-01-03 15:38:38 -080045 android.test.runner \
Ihab Awadaa383cc2015-03-22 22:12:28 -070046 telephony-common
47
48LOCAL_AAPT_FLAGS := \
49 --auto-add-overlay \
Alan Viverettee9d36872017-05-10 17:48:00 -040050 --extra-packages com.android.server.telecom:android.support.compat
Yorke Lee7a593fa2015-03-27 12:30:44 -070051
Paul Duffin7197aae2017-03-11 21:35:00 +000052LOCAL_JACK_FLAGS := --multi-dex native
53
Tyler Gunnae694b12015-11-11 17:46:03 -080054LOCAL_PROGUARD_ENABLED := disabled
55
Ihab Awad945a82e2015-04-01 19:35:00 -070056LOCAL_PACKAGE_NAME := TelecomUnitTests
Anton Hansson5fd4b682018-02-23 16:06:08 +000057LOCAL_PRIVATE_PLATFORM_APIS := true
Santos Cordon76faae52013-12-12 18:55:50 -080058LOCAL_CERTIFICATE := platform
59
60LOCAL_MODULE_TAGS := tests
61
Allen Hair53396292016-08-25 16:48:24 -070062LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.server.telecom.*
63LOCAL_JACK_COVERAGE_EXCLUDE_FILTER := com.android.server.telecom.tests.*
64
Hall Liu43f20c32018-01-02 16:57:23 -080065LOCAL_COMPATIBILITY_SUITE := device-tests
Sudheer Shankad3b06b72016-03-09 18:46:29 -080066include frameworks/base/packages/SettingsLib/common.mk
67
Santos Cordon76faae52013-12-12 18:55:50 -080068include $(BUILD_PACKAGE)