Home | History | Annotate | Download | only in Email
      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 
     15 LOCAL_PATH := $(call my-dir)
     16 
     17 # Build the Email application itself, along with its tests and the tests for the emailcommon
     18 # static library.  All tests can be run via runtest email
     19 
     20 include $(CLEAR_VARS)
     21 # Include res dir from chips
     22 chips_dir := ../../../frameworks/ex/chips/res
     23 mail_common_dir := ../../../frameworks/opt/mailcommon/res
     24 res_dir := $(chips_dir) $(mail_common_dir) res
     25 
     26 LOCAL_MODULE_TAGS := optional
     27 
     28 LOCAL_SRC_FILES := $(call all-java-files-under, src/com/android/email)
     29 LOCAL_SRC_FILES += $(call all-java-files-under, src/com/beetstra)
     30 LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, $(res_dir))
     31 LOCAL_AAPT_FLAGS := --auto-add-overlay
     32 LOCAL_AAPT_FLAGS += --extra-packages com.android.ex.chips
     33 
     34 LOCAL_STATIC_JAVA_LIBRARIES := android-common com.android.emailcommon guava android-common-chips
     35 
     36 LOCAL_PACKAGE_NAME := Email
     37 
     38 LOCAL_PROGUARD_FLAG_FILES := proguard.flags
     39 
     40 LOCAL_SDK_VERSION := current
     41 
     42 # The Emma tool analyzes code coverage when running unit tests on the
     43 # application. This configuration line selects which packages will be analyzed,
     44 # leaving out code which is tested by other means (e.g. static libraries) that
     45 # would dilute the coverage results. These options do not affect regular
     46 # production builds.
     47 LOCAL_EMMA_COVERAGE_FILTER := +com.android.emailcommon.*,+com.android.email.*, \
     48     +org.apache.james.mime4j.*,+com.beetstra.jutf7.*,+org.apache.commons.io.*
     49 
     50 include $(BUILD_PACKAGE)
     51 
     52 # only include rules to build other stuff for the original package, not the derived package.
     53 ifeq ($(strip $(LOCAL_PACKAGE_OVERRIDES)),)
     54 # additionally, build unit tests in a separate .apk
     55 include $(call all-makefiles-under,$(LOCAL_PATH))
     56 endif
     57