blob: 90e4984c1fa0395b39905fb3a6ca71fd7b72b9f5 [file] [log] [blame]
Paul Westbrook82ea6da2011-12-15 11:03:51 -08001# Copyright 2011, 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
Mindy Pereira0b2aaf42011-12-12 10:02:12 -080015LOCAL_PATH:= $(call my-dir)
16
Alan Lau15490232014-03-06 14:53:14 -080017##################################################
Mindy Pereira0b2aaf42011-12-12 10:02:12 -080018# Build APK
19include $(CLEAR_VARS)
20
Paul Westbrook2d50bcd2012-04-10 11:53:47 -070021src_dirs := src unified_src
Mindy Pereira0b2aaf42011-12-12 10:02:12 -080022LOCAL_PACKAGE_NAME := UnifiedEmail
23
Aurimas Liutikasf1c7a052017-11-21 12:27:08 -080024LOCAL_STATIC_ANDROID_LIBRARIES := \
25 libchips \
26 libphotoviewer_appcompat \
27 android-support-compat \
28 android-support-media-compat \
29 android-support-core-utils \
30 android-support-core-ui \
31 android-support-fragment \
32 android-support-v7-appcompat \
33 android-support-v7-gridlayout \
34 android-support-v13 \
35 android-opt-bitmap \
36 android-opt-datetimepicker
37
38LOCAL_STATIC_JAVA_LIBRARIES := \
39 android-support-annotations \
40 guava \
41 android-common \
42 owasp-html-sanitizer
Mindy Pereira0b2aaf42011-12-12 10:02:12 -080043
mindyp47704452012-09-14 13:46:57 -070044LOCAL_SDK_VERSION := current
Mindy Pereira0b2aaf42011-12-12 10:02:12 -080045
46LOCAL_SRC_FILES := $(call all-java-files-under, $(src_dirs)) \
47 $(call all-logtags-files-under, $(src_dirs))
Aurimas Liutikasf1c7a052017-11-21 12:27:08 -080048
49LOCAL_USE_AAPT2 := true
50
51LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
Mindy Pereira0b2aaf42011-12-12 10:02:12 -080052
Paul Westbrook82ea6da2011-12-15 11:03:51 -080053LOCAL_PROGUARD_FLAG_FILES := proguard.flags
Régis Décampsd26036f2014-10-14 15:38:16 +020054ifeq (eng,$(TARGET_BUILD_VARIANT))
55 LOCAL_PROGUARD_FLAG_FILES += proguard-test.flags
56endif
Paul Westbrook82ea6da2011-12-15 11:03:51 -080057
Sebastien Hertz27814992016-04-06 18:31:36 +020058LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.mail.*,com.android.emailcommon.*,com.google.android.mail.*
Jerry Xiea9b818c2014-01-27 17:36:34 -080059
Mindy Pereira0b2aaf42011-12-12 10:02:12 -080060include $(BUILD_PACKAGE)
Paul Westbrook82ea6da2011-12-15 11:03:51 -080061
Paul Westbrook82ea6da2011-12-15 11:03:51 -080062##################################################
63# Build all sub-directories
64
65include $(call all-makefiles-under,$(LOCAL_PATH))