replicant-packages_apps_Email/email2/Android.mk
Andy Huang 0ee2a3ccee Fix conversation view problems in Email2
The JavaScript in the assets/ dir wasn't inherited from
UnifiedEmail, and UnifiedEmail's ProGuard flags were being
ignored.

Also refactor a bit of the makefile.

Change-Id: Ic3de41f3eb1882831d61b8ae34e4dd298660acdb
2012-03-06 16:36:38 -08:00

52 lines
1.4 KiB
Makefile

LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
chips_dir := ../../../../frameworks/ex/chips
unified_email_dir := ../../../../packages/apps/UnifiedEmail
# Include res dir from chips
# Include res dir from UnifiedEmail
res_dirs := res $(chips_dir)/res $(unified_email_dir)/res
LOCAL_MODULE_TAGS := optional
src_dirs := src \
$(unified_email_dir)/src \
$(unified_email_dir)/email_src
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))
# 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
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
LOCAL_PROGUARD_FLAG_FILES := proguard.flags $(unified_email_dir)/proguard.flags
include $(BUILD_PACKAGE)
# Use the following include to make our test apk.
include $(call all-makefiles-under,$(LOCAL_PATH))