137f3385803de19d4b6fb4ef1b1ac9a6196dec98cYing Wang# Copyright 2011, The Android Open Source Project
237f3385803de19d4b6fb4ef1b1ac9a6196dec98cYing Wang#
337f3385803de19d4b6fb4ef1b1ac9a6196dec98cYing Wang# Licensed under the Apache License, Version 2.0 (the "License");
437f3385803de19d4b6fb4ef1b1ac9a6196dec98cYing Wang# you may not use this file except in compliance with the License.
537f3385803de19d4b6fb4ef1b1ac9a6196dec98cYing Wang# You may obtain a copy of the License at
637f3385803de19d4b6fb4ef1b1ac9a6196dec98cYing Wang#
737f3385803de19d4b6fb4ef1b1ac9a6196dec98cYing Wang#     http://www.apache.org/licenses/LICENSE-2.0
837f3385803de19d4b6fb4ef1b1ac9a6196dec98cYing Wang#
937f3385803de19d4b6fb4ef1b1ac9a6196dec98cYing Wang# Unless required by applicable law or agreed to in writing, software
1037f3385803de19d4b6fb4ef1b1ac9a6196dec98cYing Wang# distributed under the License is distributed on an "AS IS" BASIS,
1137f3385803de19d4b6fb4ef1b1ac9a6196dec98cYing Wang# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1237f3385803de19d4b6fb4ef1b1ac9a6196dec98cYing Wang# See the License for the specific language governing permissions and
1337f3385803de19d4b6fb4ef1b1ac9a6196dec98cYing Wang# limitations under the License.
1437f3385803de19d4b6fb4ef1b1ac9a6196dec98cYing Wang
1537f3385803de19d4b6fb4ef1b1ac9a6196dec98cYing WangLOCAL_PATH := $(call my-dir)
1637f3385803de19d4b6fb4ef1b1ac9a6196dec98cYing Wang
1737f3385803de19d4b6fb4ef1b1ac9a6196dec98cYing Wang# Build the com.android.emailcommon static library. At the moment, this includes
1837f3385803de19d4b6fb4ef1b1ac9a6196dec98cYing Wang# the emailcommon files themselves plus everything under src/org (apache code).  All of our
1937f3385803de19d4b6fb4ef1b1ac9a6196dec98cYing Wang# AIDL files are also compiled into the static library
2037f3385803de19d4b6fb4ef1b1ac9a6196dec98cYing Wang
2137f3385803de19d4b6fb4ef1b1ac9a6196dec98cYing Wanginclude $(CLEAR_VARS)
2237f3385803de19d4b6fb4ef1b1ac9a6196dec98cYing Wang
23c6f8c51c67e7fff35dce86721b2273d7dd190ae0Scott Kennedyunified_email_unified_src_dir := ../../UnifiedEmail/unified_src
24f419287f22ae44f25e1ba1f757ec33c7941bbfa8Marc Blankunified_email_src_dir := ../../UnifiedEmail/src
25f419287f22ae44f25e1ba1f757ec33c7941bbfa8Marc Blankapache_src_dir := ../../UnifiedEmail/src/org
26f419287f22ae44f25e1ba1f757ec33c7941bbfa8Marc Blank
27f419287f22ae44f25e1ba1f757ec33c7941bbfa8Marc Blankimported_unified_email_files := \
28560bfadc3151f7a06f3b06e9a6c92cfa534c63ecScott Kennedy        $(unified_email_src_dir)/com/android/mail/utils/LogTag.java \
29f419287f22ae44f25e1ba1f757ec33c7941bbfa8Marc Blank        $(unified_email_src_dir)/com/android/mail/utils/LogUtils.java \
30f419287f22ae44f25e1ba1f757ec33c7941bbfa8Marc Blank        $(unified_email_src_dir)/com/android/mail/providers/UIProvider.java
31f419287f22ae44f25e1ba1f757ec33c7941bbfa8Marc Blank
329ae81e2af07219bfad26c882516343e83c16d926Yu Ping HuLOCAL_MODULE := com.android.emailcommon
33f419287f22ae44f25e1ba1f757ec33c7941bbfa8Marc BlankLOCAL_STATIC_JAVA_LIBRARIES := guava android-common
34ca79aba675d5282b6ba365184f3727b7b24a568fYu Ping HuLOCAL_STATIC_JAVA_LIBRARIES += android-support-v4
3537f3385803de19d4b6fb4ef1b1ac9a6196dec98cYing WangLOCAL_SRC_FILES := $(call all-java-files-under, src/com/android/emailcommon)
3637f3385803de19d4b6fb4ef1b1ac9a6196dec98cYing WangLOCAL_SRC_FILES += \
3737f3385803de19d4b6fb4ef1b1ac9a6196dec98cYing Wang    src/com/android/emailcommon/service/IEmailService.aidl \
3837f3385803de19d4b6fb4ef1b1ac9a6196dec98cYing Wang    src/com/android/emailcommon/service/IEmailServiceCallback.aidl \
3937f3385803de19d4b6fb4ef1b1ac9a6196dec98cYing Wang    src/com/android/emailcommon/service/IPolicyService.aidl \
4037f3385803de19d4b6fb4ef1b1ac9a6196dec98cYing Wang    src/com/android/emailcommon/service/IAccountService.aidl
41f419287f22ae44f25e1ba1f757ec33c7941bbfa8Marc BlankLOCAL_SRC_FILES += $(call all-java-files-under, $(apache_src_dir))
42f419287f22ae44f25e1ba1f757ec33c7941bbfa8Marc BlankLOCAL_SRC_FILES += $(imported_unified_email_files)
4391973256c283ebc409398bf2cfd747b978bb7b03Andrew SappersteinLOCAL_SRC_FILES += $(call all-java-files-under, $(unified_email_src_dir)/com/android/emailcommon)
4437f3385803de19d4b6fb4ef1b1ac9a6196dec98cYing Wang
45048a2956dac358d14139e1fab6746c9cd0d25106Scott KennedyLOCAL_SDK_VERSION := 14
4637f3385803de19d4b6fb4ef1b1ac9a6196dec98cYing Wang
479ae81e2af07219bfad26c882516343e83c16d926Yu Ping HuLOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
489ae81e2af07219bfad26c882516343e83c16d926Yu Ping Hu
4937f3385803de19d4b6fb4ef1b1ac9a6196dec98cYing Wanginclude $(BUILD_STATIC_JAVA_LIBRARY)
50