Paul Westbrook | 82ea6da | 2011-12-15 11:03:51 -0800 | [diff] [blame] | 1 | # 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 Pereira | 0b2aaf4 | 2011-12-12 10:02:12 -0800 | [diff] [blame] | 15 | LOCAL_PATH:= $(call my-dir) |
| 16 | |
Alan Lau | 1549023 | 2014-03-06 14:53:14 -0800 | [diff] [blame] | 17 | ################################################## |
Mindy Pereira | 0b2aaf4 | 2011-12-12 10:02:12 -0800 | [diff] [blame] | 18 | # Build APK |
| 19 | include $(CLEAR_VARS) |
| 20 | |
Paul Westbrook | 2d50bcd | 2012-04-10 11:53:47 -0700 | [diff] [blame] | 21 | src_dirs := src unified_src |
Mindy Pereira | 0b2aaf4 | 2011-12-12 10:02:12 -0800 | [diff] [blame] | 22 | LOCAL_PACKAGE_NAME := UnifiedEmail |
| 23 | |
Aurimas Liutikas | f1c7a05 | 2017-11-21 12:27:08 -0800 | [diff] [blame] | 24 | LOCAL_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 | |
| 38 | LOCAL_STATIC_JAVA_LIBRARIES := \ |
| 39 | android-support-annotations \ |
| 40 | guava \ |
| 41 | android-common \ |
| 42 | owasp-html-sanitizer |
Mindy Pereira | 0b2aaf4 | 2011-12-12 10:02:12 -0800 | [diff] [blame] | 43 | |
mindyp | 4770445 | 2012-09-14 13:46:57 -0700 | [diff] [blame] | 44 | LOCAL_SDK_VERSION := current |
Mindy Pereira | 0b2aaf4 | 2011-12-12 10:02:12 -0800 | [diff] [blame] | 45 | |
| 46 | LOCAL_SRC_FILES := $(call all-java-files-under, $(src_dirs)) \ |
| 47 | $(call all-logtags-files-under, $(src_dirs)) |
Aurimas Liutikas | f1c7a05 | 2017-11-21 12:27:08 -0800 | [diff] [blame] | 48 | |
| 49 | LOCAL_USE_AAPT2 := true |
| 50 | |
| 51 | LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res |
Mindy Pereira | 0b2aaf4 | 2011-12-12 10:02:12 -0800 | [diff] [blame] | 52 | |
Paul Westbrook | 82ea6da | 2011-12-15 11:03:51 -0800 | [diff] [blame] | 53 | LOCAL_PROGUARD_FLAG_FILES := proguard.flags |
Régis Décamps | d26036f | 2014-10-14 15:38:16 +0200 | [diff] [blame] | 54 | ifeq (eng,$(TARGET_BUILD_VARIANT)) |
| 55 | LOCAL_PROGUARD_FLAG_FILES += proguard-test.flags |
| 56 | endif |
Paul Westbrook | 82ea6da | 2011-12-15 11:03:51 -0800 | [diff] [blame] | 57 | |
Sebastien Hertz | 2781499 | 2016-04-06 18:31:36 +0200 | [diff] [blame] | 58 | LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.mail.*,com.android.emailcommon.*,com.google.android.mail.* |
Jerry Xie | a9b818c | 2014-01-27 17:36:34 -0800 | [diff] [blame] | 59 | |
Mindy Pereira | 0b2aaf4 | 2011-12-12 10:02:12 -0800 | [diff] [blame] | 60 | include $(BUILD_PACKAGE) |
Paul Westbrook | 82ea6da | 2011-12-15 11:03:51 -0800 | [diff] [blame] | 61 | |
Paul Westbrook | 82ea6da | 2011-12-15 11:03:51 -0800 | [diff] [blame] | 62 | ################################################## |
| 63 | # Build all sub-directories |
| 64 | |
| 65 | include $(call all-makefiles-under,$(LOCAL_PATH)) |