blob: 662c52fd312621bd9f4b5aa71bc8811454acce7f [file] [log] [blame]
The Android Open Source Projectf88f71e2009-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
15LOCAL_PATH:= $(call my-dir)
16include $(CLEAR_VARS)
17
Paul Westbrook308308e2012-04-12 13:49:52 -070018#
Marc Blanke6c24562012-06-27 18:01:24 -070019# Exchange2
Paul Westbrook308308e2012-04-12 13:49:52 -070020#
Jean-Baptiste Queru419f5082010-01-05 11:09:51 -080021LOCAL_MODULE_TAGS := optional
22
Yu Ping Hua132baf2013-03-15 11:31:56 -070023# Include res dir from emailcommon
24emailcommon_dir := ../Email/emailcommon
Andrew Sappersteina2926b82013-05-24 10:45:58 -070025res_dir := res $(emailcommon_dir)/res
Marc Blank89a0ed72012-09-04 16:04:27 -070026
27LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, $(res_dir))
28
29LOCAL_AAPT_FLAGS := --auto-add-overlay
Yu Ping Hua132baf2013-03-15 11:31:56 -070030LOCAL_AAPT_FLAGS += --extra-packages com.android.emailcommon
Marc Blank89a0ed72012-09-04 16:04:27 -070031
The Android Open Source Projectf88f71e2009-03-03 19:32:22 -080032LOCAL_SRC_FILES := $(call all-java-files-under, src)
Marc Blank2bf91ac2012-08-22 22:29:22 -070033LOCAL_SRC_FILES += $(call all-java-files-under, build/src)
Paul Westbrook308308e2012-04-12 13:49:52 -070034
Tony Mantler490bf9f2014-06-30 13:11:03 -070035LOCAL_STATIC_JAVA_LIBRARIES := android-common com.android.emailcommon
Paul Westbrook308308e2012-04-12 13:49:52 -070036LOCAL_STATIC_JAVA_LIBRARIES += calendar-common
Yu Ping Hu6f0cf292013-08-23 09:39:58 -070037LOCAL_STATIC_JAVA_LIBRARIES += android-support-v4
Paul Westbrook308308e2012-04-12 13:49:52 -070038
Marc Blanke6c24562012-06-27 18:01:24 -070039LOCAL_PACKAGE_NAME := Exchange2
40LOCAL_OVERRIDES_PACKAGES := Exchange
Paul Westbrook308308e2012-04-12 13:49:52 -070041
42LOCAL_PROGUARD_FLAG_FILES := proguard.flags
Alon Albert37c40102013-11-05 14:31:45 -080043LOCAL_SDK_VERSION := 19
Paul Westbrook308308e2012-04-12 13:49:52 -070044
45LOCAL_EMMA_COVERAGE_FILTER += +com.android.exchange.*
46
47include $(BUILD_PACKAGE)
48
Marc Blanke6c24562012-06-27 18:01:24 -070049# additionally, build unit tests in a separate .apk
Marc Blankd2e4d462012-04-25 13:30:56 -070050include $(call all-makefiles-under,$(LOCAL_PATH))