1 # Copyright 2011, The Android Open Source Project 2 # 3 # Licensed under the Apache License, Version 2.0 (the "License"); 4 # you may not use this file except in compliance with the License. 5 # You may obtain a copy of the License at 6 # 7 # http://www.apache.org/licenses/LICENSE-2.0 8 # 9 # Unless required by applicable law or agreed to in writing, software 10 # distributed under the License is distributed on an "AS IS" BASIS, 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 # See the License for the specific language governing permissions and 13 # limitations under the License. 14 15 LOCAL_PATH:= $(call my-dir) 16 17 ################################################## 18 # Build APK 19 include $(CLEAR_VARS) 20 21 src_dirs := src unified_src 22 LOCAL_PACKAGE_NAME := UnifiedEmail 23 24 LOCAL_STATIC_ANDROID_LIBRARIES := \ 25 libchips \ 26 libphotoviewer_appcompat \ 27 android-support-compat \ 28 android-support-media-compat \ 29 android-support-core-utils \ 30 android-support-core-ui \ 31 android-support-fragment \ 32 android-support-v7-appcompat \ 33 android-support-v7-gridlayout \ 34 android-support-v13 \ 35 android-opt-bitmap \ 36 android-opt-datetimepicker 37 38 LOCAL_STATIC_JAVA_LIBRARIES := \ 39 android-support-annotations \ 40 guava \ 41 android-common \ 42 owasp-html-sanitizer 43 44 LOCAL_SDK_VERSION := current 45 46 LOCAL_SRC_FILES := $(call all-java-files-under, $(src_dirs)) \ 47 $(call all-logtags-files-under, $(src_dirs)) 48 49 LOCAL_USE_AAPT2 := true 50 51 LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res 52 53 LOCAL_PROGUARD_FLAG_FILES := proguard.flags 54 ifeq (eng,$(TARGET_BUILD_VARIANT)) 55 LOCAL_PROGUARD_FLAG_FILES += proguard-test.flags 56 endif 57 58 LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.mail.*,com.android.emailcommon.*,com.google.android.mail.* 59 60 include $(BUILD_PACKAGE) 61 62 ################################################## 63 # Build all sub-directories 64 65 include $(call all-makefiles-under,$(LOCAL_PATH)) 66