Home | History | Annotate | Download | only in tests
      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 
     17 LOCAL_PATH := $(call my-dir)
     18 include $(CLEAR_VARS)
     19 
     20 LOCAL_STATIC_JAVA_LIBRARIES := \
     21         android-ex-camera2 \
     22         android-support-v4 \
     23         guava \
     24         mockito-target \
     25         platform-test-annotations
     26 
     27 LOCAL_SRC_FILES := \
     28         $(call all-java-files-under, src) \
     29         $(call all-java-files-under, ../src) \
     30         $(call all-proto-files-under, ../proto)
     31 
     32 LOCAL_PROTOC_OPTIMIZE_TYPE := nano
     33 LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/../proto/
     34 LOCAL_PROTO_JAVA_OUTPUT_PARAMS := optional_field_style=accessors
     35 
     36 LOCAL_RESOURCE_DIR := \
     37     $(LOCAL_PATH)/res \
     38     $(LOCAL_PATH)/../res
     39 
     40 LOCAL_JAVA_LIBRARIES := \
     41         android.test.runner \
     42         telephony-common
     43 
     44 LOCAL_AAPT_FLAGS := \
     45     --auto-add-overlay \
     46     --extra-packages com.android.server.telecom
     47 
     48 LOCAL_PROGUARD_ENABLED := disabled
     49 
     50 LOCAL_PACKAGE_NAME := TelecomUnitTests
     51 LOCAL_CERTIFICATE := platform
     52 
     53 LOCAL_MODULE_TAGS := tests
     54 
     55 LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.server.telecom.*
     56 LOCAL_JACK_COVERAGE_EXCLUDE_FILTER := com.android.server.telecom.tests.*
     57 
     58 include frameworks/base/packages/SettingsLib/common.mk
     59 
     60 include $(BUILD_PACKAGE)
     61