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 15LOCAL_PATH:= $(call my-dir) 16 17# Include res dir from chips 18chips_dir := ../../../frameworks/opt/chips/res 19 20#Include res dir from libraries 21appcompat_dir := ../../../$(SUPPORT_LIBRARY_ROOT)/v7/appcompat/res 22photo_dir := ../../../frameworks/opt/photoviewer/res ../../../frameworks/opt/photoviewer/appcompat/res 23gridlayout_dir := ../../../$(SUPPORT_LIBRARY_ROOT)/v7/gridlayout/res 24bitmap_dir := ../../../frameworks/opt/bitmap/res 25datetimepicker_dir := ../../../frameworks/opt/datetimepicker/res 26res_dirs := res $(appcompat_dir) $(chips_dir) $(photo_dir) $(gridlayout_dir) $(bitmap_dir) $(datetimepicker_dir) 27 28################################################## 29# Build APK 30include $(CLEAR_VARS) 31 32src_dirs := src unified_src 33LOCAL_PACKAGE_NAME := UnifiedEmail 34 35LOCAL_STATIC_JAVA_LIBRARIES := libchips 36LOCAL_STATIC_JAVA_LIBRARIES += libphotoviewer_appcompat 37LOCAL_STATIC_JAVA_LIBRARIES += guava 38LOCAL_STATIC_JAVA_LIBRARIES += android-common 39LOCAL_STATIC_JAVA_LIBRARIES += android-support-v4 40LOCAL_STATIC_JAVA_LIBRARIES += android-support-v7-appcompat 41LOCAL_STATIC_JAVA_LIBRARIES += android-support-v7-gridlayout 42LOCAL_STATIC_JAVA_LIBRARIES += android-support-v13 43LOCAL_STATIC_JAVA_LIBRARIES += android-opt-bitmap 44LOCAL_STATIC_JAVA_LIBRARIES += android-opt-datetimepicker 45LOCAL_STATIC_JAVA_LIBRARIES += owasp-html-sanitizer 46 47LOCAL_SDK_VERSION := current 48 49LOCAL_SRC_FILES := $(call all-java-files-under, $(src_dirs)) \ 50 $(call all-logtags-files-under, $(src_dirs)) 51LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, $(res_dirs)) 52LOCAL_AAPT_FLAGS := --auto-add-overlay 53LOCAL_AAPT_FLAGS += --extra-packages com.android.ex.chips:com.android.ex.photo:android.support.v7.appcompat:android.support.v7.gridlayout:com.android.bitmap:com.android.datetimepicker 54 55LOCAL_PROGUARD_FLAG_FILES := proguard.flags 56ifeq (eng,$(TARGET_BUILD_VARIANT)) 57 LOCAL_PROGUARD_FLAG_FILES += proguard-test.flags 58endif 59 60LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.mail.*,com.android.emailcommon.*,com.google.android.mail.* 61 62include $(BUILD_PACKAGE) 63 64################################################## 65# Build all sub-directories 66 67include $(call all-makefiles-under,$(LOCAL_PATH)) 68