blob: ce837b1414df4b30c35c2ce3e855251906b5bbd4 [file] [log] [blame]
The Android Open Source Project96c5af42009-03-03 19:32:22 -08001# Copyright 2008, The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
Marc Blankdc78a762011-02-14 14:39:27 -080015LOCAL_PATH := $(call my-dir)
16
17# Build the Email application itself, along with its tests and tests for the emailcommon
18# static library. All tests can be run via runtest email
19
The Android Open Source Project96c5af42009-03-03 19:32:22 -080020include $(CLEAR_VARS)
Mindy Pereira87763f02011-06-15 19:35:15 -070021# Include res dir from chips
22chips_dir := ../../../frameworks/ex/chips/res
Mindy Pereiraf5ac3c62011-10-11 10:51:56 -070023mail_common_dir := ../../../frameworks/opt/mailcommon/res
24res_dir := $(chips_dir) $(mail_common_dir) res
The Android Open Source Project96c5af42009-03-03 19:32:22 -080025
Jean-Baptiste Querub5a7afa2010-01-05 11:09:51 -080026LOCAL_MODULE_TAGS := optional
27
Marc Blankdc78a762011-02-14 14:39:27 -080028LOCAL_SRC_FILES := $(call all-java-files-under, src/com/android/email)
29LOCAL_SRC_FILES += $(call all-java-files-under, src/com/beetstra)
Mindy Pereira87763f02011-06-15 19:35:15 -070030LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, $(res_dir))
Paul Westbrook1aa2a0f2011-10-18 17:24:00 -070031LOCAL_AAPT_FLAGS := --auto-add-overlay
Mindy Pereira87763f02011-06-15 19:35:15 -070032
33LOCAL_STATIC_JAVA_LIBRARIES := android-common com.android.emailcommon guava android-common-chips
The Android Open Source Project96c5af42009-03-03 19:32:22 -080034
35LOCAL_PACKAGE_NAME := Email
36
Ying Wangb38a0432010-09-29 15:22:04 -070037LOCAL_PROGUARD_FLAG_FILES := proguard.flags
Makoto Onuki20f09c12010-03-02 14:03:08 -080038
Marc Blankdc78a762011-02-14 14:39:27 -080039LOCAL_SDK_VERSION := current
40
Guang Zhu16fe2072010-06-14 17:36:44 -070041# The Emma tool analyzes code coverage when running unit tests on the
42# application. This configuration line selects which packages will be analyzed,
43# leaving out code which is tested by other means (e.g. static libraries) that
44# would dilute the coverage results. These options do not affect regular
45# production builds.
Marc Blankdc78a762011-02-14 14:39:27 -080046LOCAL_EMMA_COVERAGE_FILTER := +com.android.emailcommon.*,+com.android.email.*, \
47 +org.apache.james.mime4j.*,+com.beetstra.jutf7.*,+org.apache.commons.io.*
Guang Zhu16fe2072010-06-14 17:36:44 -070048
The Android Open Source Project96c5af42009-03-03 19:32:22 -080049include $(BUILD_PACKAGE)
50
Ying Wang37f33852011-03-01 15:56:27 -080051# only include rules to build other stuff for the original package, not the derived package.
Marc Blankdc78a762011-02-14 14:39:27 -080052ifeq ($(strip $(LOCAL_PACKAGE_OVERRIDES)),)
The Android Open Source Project96c5af42009-03-03 19:32:22 -080053# additionally, build unit tests in a separate .apk
54include $(call all-makefiles-under,$(LOCAL_PATH))
Marc Blankdc78a762011-02-14 14:39:27 -080055endif