The Android Open Source Project | 96c5af4 | 2009-03-03 19:32:22 -0800 | [diff] [blame] | 1 | # 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 Blank | dc78a76 | 2011-02-14 14:39:27 -0800 | [diff] [blame] | 15 | LOCAL_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 Project | 96c5af4 | 2009-03-03 19:32:22 -0800 | [diff] [blame] | 20 | include $(CLEAR_VARS) |
Mindy Pereira | 87763f0 | 2011-06-15 19:35:15 -0700 | [diff] [blame^] | 21 | # Include res dir from chips |
| 22 | chips_dir := ../../../frameworks/ex/chips/res |
| 23 | res_dir := $(chips_dir) res |
The Android Open Source Project | 96c5af4 | 2009-03-03 19:32:22 -0800 | [diff] [blame] | 24 | |
Jean-Baptiste Queru | b5a7afa | 2010-01-05 11:09:51 -0800 | [diff] [blame] | 25 | LOCAL_MODULE_TAGS := optional |
| 26 | |
Marc Blank | dc78a76 | 2011-02-14 14:39:27 -0800 | [diff] [blame] | 27 | LOCAL_SRC_FILES := $(call all-java-files-under, src/com/android/email) |
| 28 | LOCAL_SRC_FILES += $(call all-java-files-under, src/com/beetstra) |
Mindy Pereira | 87763f0 | 2011-06-15 19:35:15 -0700 | [diff] [blame^] | 29 | LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, $(res_dir)) |
| 30 | |
| 31 | LOCAL_STATIC_JAVA_LIBRARIES := android-common com.android.emailcommon guava android-common-chips |
The Android Open Source Project | 96c5af4 | 2009-03-03 19:32:22 -0800 | [diff] [blame] | 32 | |
| 33 | LOCAL_PACKAGE_NAME := Email |
| 34 | |
Ying Wang | b38a043 | 2010-09-29 15:22:04 -0700 | [diff] [blame] | 35 | LOCAL_PROGUARD_FLAG_FILES := proguard.flags |
Makoto Onuki | 20f09c1 | 2010-03-02 14:03:08 -0800 | [diff] [blame] | 36 | |
Marc Blank | dc78a76 | 2011-02-14 14:39:27 -0800 | [diff] [blame] | 37 | LOCAL_SDK_VERSION := current |
| 38 | |
Guang Zhu | 16fe207 | 2010-06-14 17:36:44 -0700 | [diff] [blame] | 39 | # The Emma tool analyzes code coverage when running unit tests on the |
| 40 | # application. This configuration line selects which packages will be analyzed, |
| 41 | # leaving out code which is tested by other means (e.g. static libraries) that |
| 42 | # would dilute the coverage results. These options do not affect regular |
| 43 | # production builds. |
Marc Blank | dc78a76 | 2011-02-14 14:39:27 -0800 | [diff] [blame] | 44 | LOCAL_EMMA_COVERAGE_FILTER := +com.android.emailcommon.*,+com.android.email.*, \ |
| 45 | +org.apache.james.mime4j.*,+com.beetstra.jutf7.*,+org.apache.commons.io.* |
Guang Zhu | 16fe207 | 2010-06-14 17:36:44 -0700 | [diff] [blame] | 46 | |
The Android Open Source Project | 96c5af4 | 2009-03-03 19:32:22 -0800 | [diff] [blame] | 47 | include $(BUILD_PACKAGE) |
| 48 | |
Ying Wang | 37f3385 | 2011-03-01 15:56:27 -0800 | [diff] [blame] | 49 | # only include rules to build other stuff for the original package, not the derived package. |
Marc Blank | dc78a76 | 2011-02-14 14:39:27 -0800 | [diff] [blame] | 50 | ifeq ($(strip $(LOCAL_PACKAGE_OVERRIDES)),) |
The Android Open Source Project | 96c5af4 | 2009-03-03 19:32:22 -0800 | [diff] [blame] | 51 | # additionally, build unit tests in a separate .apk |
| 52 | include $(call all-makefiles-under,$(LOCAL_PATH)) |
Marc Blank | dc78a76 | 2011-02-14 14:39:27 -0800 | [diff] [blame] | 53 | endif |