Home | History | Annotate | Download | only in UnifiedEmail
      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 
     15 LOCAL_PATH:= $(call my-dir)
     16 
     17 # Include res dir from chips
     18 chips_dir := ../../../frameworks/opt/chips/res
     19 
     20 #Include res dir from libraries
     21 appcompat_dir := ../../../$(SUPPORT_LIBRARY_ROOT)/v7/appcompat/res
     22 photo_dir := ../../../frameworks/opt/photoviewer/res ../../../frameworks/opt/photoviewer/appcompat/res
     23 gridlayout_dir := ../../../$(SUPPORT_LIBRARY_ROOT)/v7/gridlayout/res
     24 bitmap_dir := ../../../frameworks/opt/bitmap/res
     25 datetimepicker_dir := ../../../frameworks/opt/datetimepicker/res
     26 res_dirs := res $(appcompat_dir) $(chips_dir) $(photo_dir) $(gridlayout_dir) $(bitmap_dir) $(datetimepicker_dir)
     27 
     28 ##################################################
     29 # Build APK
     30 include $(CLEAR_VARS)
     31 
     32 src_dirs := src unified_src
     33 LOCAL_PACKAGE_NAME := UnifiedEmail
     34 
     35 LOCAL_STATIC_JAVA_LIBRARIES := libchips
     36 LOCAL_STATIC_JAVA_LIBRARIES += libphotoviewer_appcompat
     37 LOCAL_STATIC_JAVA_LIBRARIES += guava
     38 LOCAL_STATIC_JAVA_LIBRARIES += android-common
     39 LOCAL_STATIC_JAVA_LIBRARIES += android-support-v4
     40 LOCAL_STATIC_JAVA_LIBRARIES += android-support-v7-appcompat
     41 LOCAL_STATIC_JAVA_LIBRARIES += android-support-v7-gridlayout
     42 LOCAL_STATIC_JAVA_LIBRARIES += android-support-v13
     43 LOCAL_STATIC_JAVA_LIBRARIES += android-opt-bitmap
     44 LOCAL_STATIC_JAVA_LIBRARIES += android-opt-datetimepicker
     45 LOCAL_STATIC_JAVA_LIBRARIES += owasp-html-sanitizer
     46 
     47 LOCAL_SDK_VERSION := current
     48 
     49 LOCAL_SRC_FILES := $(call all-java-files-under, $(src_dirs)) \
     50         $(call all-logtags-files-under, $(src_dirs))
     51 LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, $(res_dirs))
     52 LOCAL_AAPT_FLAGS := --auto-add-overlay
     53 LOCAL_AAPT_FLAGS += --extra-packages com.android.ex.chips:com.android.ex.photo:android.support.v7.appcompat:android.support.v7.gridlayout:com.android.bitmap:com.android.datetimepicker
     54 
     55 LOCAL_PROGUARD_FLAG_FILES := proguard.flags
     56 ifeq (eng,$(TARGET_BUILD_VARIANT))
     57   LOCAL_PROGUARD_FLAG_FILES += proguard-test.flags
     58 endif
     59 
     60 LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.mail.*,com.android.emailcommon.*,com.google.android.mail.*
     61 
     62 include $(BUILD_PACKAGE)
     63 
     64 ##################################################
     65 # Build all sub-directories
     66 
     67 include $(call all-makefiles-under,$(LOCAL_PATH))
     68