2012-02-09 21:55:15 +00:00
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
|
2012-03-07 00:28:59 +00:00
|
|
|
chips_dir := ../../../../frameworks/ex/chips
|
|
|
|
unified_email_dir := ../../../../packages/apps/UnifiedEmail
|
2012-02-09 21:55:15 +00:00
|
|
|
|
2012-03-07 00:28:59 +00:00
|
|
|
# Include res dir from chips
|
2012-02-09 21:55:15 +00:00
|
|
|
# Include res dir from UnifiedEmail
|
2012-03-07 00:28:59 +00:00
|
|
|
res_dirs := res $(chips_dir)/res $(unified_email_dir)/res
|
2012-02-09 21:55:15 +00:00
|
|
|
|
|
|
|
LOCAL_MODULE_TAGS := optional
|
|
|
|
|
|
|
|
src_dirs := src \
|
2012-03-07 00:28:59 +00:00
|
|
|
$(unified_email_dir)/src \
|
|
|
|
$(unified_email_dir)/email_src
|
2012-02-09 21:55:15 +00:00
|
|
|
|
|
|
|
|
|
|
|
LOCAL_STATIC_JAVA_LIBRARIES := android-common-chips
|
|
|
|
LOCAL_STATIC_JAVA_LIBRARIES += guava
|
|
|
|
LOCAL_STATIC_JAVA_LIBRARIES += android-common
|
|
|
|
LOCAL_STATIC_JAVA_LIBRARIES += com.android.emailcommon
|
|
|
|
|
|
|
|
LOCAL_SDK_VERSION := 14
|
|
|
|
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES := $(call all-java-files-under, $(src_dirs)) \
|
|
|
|
$(call all-logtags-files-under, $(src_dirs))
|
|
|
|
|
|
|
|
LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, $(res_dirs))
|
|
|
|
|
2012-03-07 00:28:59 +00:00
|
|
|
# Use assets dir from UnifiedEmail
|
|
|
|
# (the default package target doesn't seem to deal with multiple asset dirs)
|
|
|
|
LOCAL_ASSET_DIR := $(LOCAL_PATH)/$(unified_email_dir)/assets
|
|
|
|
|
2012-02-09 21:55:15 +00:00
|
|
|
LOCAL_AAPT_FLAGS := \
|
|
|
|
--auto-add-overlay \
|
|
|
|
--rename-manifest-package com.android.email2 \
|
|
|
|
--extra-packages com.android.ex.chips
|
|
|
|
|
|
|
|
LOCAL_PACKAGE_NAME := Email2
|
|
|
|
|
|
|
|
LOCAL_OVERRIDES_PACKAGES := UnifiedEmail
|
|
|
|
|
2012-03-07 00:28:59 +00:00
|
|
|
LOCAL_PROGUARD_FLAG_FILES := proguard.flags $(unified_email_dir)/proguard.flags
|
2012-02-09 21:55:15 +00:00
|
|
|
|
|
|
|
include $(BUILD_PACKAGE)
|
|
|
|
|
|
|
|
# Use the following include to make our test apk.
|
|
|
|
include $(call all-makefiles-under,$(LOCAL_PATH))
|
|
|
|
|