summaryrefslogtreecommitdiffstats
path: root/Android.mk
diff options
context:
space:
mode:
authorMindy Pereira <mindyp@google.com>2011-12-12 10:02:12 -0800
committerMindy Pereira <mindyp@google.com>2011-12-13 09:24:27 -0800
commit0b2aaf43159dbb2d4627e687c21b226b6d61a5a1 (patch)
treed4332a02f6915fc0ecae4cc7c6c814de2ac52b94 /Android.mk
parent9fb8019fc52fa292e87603341804de46955fcdaa (diff)
downloadandroid_packages_apps_UnifiedEmail-0b2aaf43159dbb2d4627e687c21b226b6d61a5a1.tar.gz
android_packages_apps_UnifiedEmail-0b2aaf43159dbb2d4627e687c21b226b6d61a5a1.tar.bz2
android_packages_apps_UnifiedEmail-0b2aaf43159dbb2d4627e687c21b226b6d61a5a1.zip
Initial build and manifest files. This creates an app that does nothing.
Includes required common libraries: chips, mail-common, and their resources Change-Id: Ib21b34352271d1ff69eadd8fa935057afe32a17d
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk46
1 files changed, 46 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
new file mode 100644
index 000000000..aebe60484
--- /dev/null
+++ b/Android.mk
@@ -0,0 +1,46 @@
+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 APK
+include $(CLEAR_VARS)
+
+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)
+
+
+##################################################
+# Build Static Lib
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := unified-email
+
+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))
+
+include $(BUILD_STATIC_JAVA_LIBRARY) \ No newline at end of file