summaryrefslogtreecommitdiffstats
path: root/Android.mk
blob: 9e15e82aa13f8dd04cfd0a811522fd32918a445b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
LOCAL_PATH:= $(call my-dir)

# Include res dir from chips
chips_dir := ../../../frameworks/ex/chips/res
mail_common_dir := ../../../frameworks/opt/mailcommon/res
res_dirs := $(chips_dir) $(mail_common_dir) res


# Remove symlinks created by a previous Gmail ADT build
$(shell rm -f $(LOCAL_PATH)/chips)
$(shell rm -f $(LOCAL_PATH)/mailcommon)



##################################################
# Build Static Lib
include $(CLEAR_VARS)

src_dirs := src-mailcommon
LOCAL_MODULE := mail-common

LOCAL_STATIC_JAVA_LIBRARIES := android-common-chips

LOCAL_SDK_VERSION := current

LOCAL_SRC_FILES := $(call all-java-files-under, $(src_dirs)) \
        $(call all-logtags-files-under, $(src_dirs))

include $(BUILD_STATIC_JAVA_LIBRARY)

##################################################
# Build APK
include $(CLEAR_VARS)

src_dirs := src
LOCAL_PACKAGE_NAME := UnifiedEmail

LOCAL_STATIC_JAVA_LIBRARIES := mail-common
LOCAL_STATIC_JAVA_LIBRARIES := android-common-chips

LOCAL_SDK_VERSION := current

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)) $(LOCAL_PATH)/res
LOCAL_AAPT_FLAGS := --auto-add-overlay

include $(BUILD_PACKAGE)