summaryrefslogtreecommitdiffstats
path: root/Android.mk
blob: 02b0ab919a9e7171bab830f3f1cb1eac037da18a (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
LOCAL_PATH:= $(call my-dir)

# Include res dir from chips
chips_dir := ../../../frameworks/ex/chips/res
res_dirs := $(chips_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)