1 # Copyright (C) 2015 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 LOCAL_PATH:= $(call my-dir) 15 16 include $(CLEAR_VARS) 17 18 LOCAL_MODULE_TAGS := optional 19 20 LOCAL_SRC_FILES := $(call all-java-files-under, src) 21 22 LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res 23 ifeq ($(TARGET_BUILD_APPS),) 24 LOCAL_RESOURCE_DIR += frameworks/support/v7/appcompat/res 25 LOCAL_RESOURCE_DIR += frameworks/support/v7/recyclerview/res 26 else 27 LOCAL_RESOURCE_DIR += prebuilts/sdk/current/support/v7/appcompat/res 28 LOCAL_RESOURCE_DIR += prebuilts/sdk/current/support/v7/recyclerview/res 29 endif 30 LOCAL_RESOURCE_DIR += frameworks/opt/chips/res 31 LOCAL_RESOURCE_DIR += frameworks/opt/colorpicker/res 32 LOCAL_RESOURCE_DIR += frameworks/opt/photoviewer/res 33 LOCAL_RESOURCE_DIR += frameworks/opt/photoviewer/activity/res 34 35 LOCAL_STATIC_JAVA_LIBRARIES := android-common 36 LOCAL_STATIC_JAVA_LIBRARIES += android-common-framesequence 37 LOCAL_STATIC_JAVA_LIBRARIES += android-support-v4 38 LOCAL_STATIC_JAVA_LIBRARIES += android-support-v7-appcompat 39 LOCAL_STATIC_JAVA_LIBRARIES += android-support-v7-palette 40 LOCAL_STATIC_JAVA_LIBRARIES += android-support-v7-recyclerview 41 LOCAL_STATIC_JAVA_LIBRARIES += android-support-v13 42 LOCAL_STATIC_JAVA_LIBRARIES += com.android.vcard 43 LOCAL_STATIC_JAVA_LIBRARIES += guava 44 LOCAL_STATIC_JAVA_LIBRARIES += libchips 45 LOCAL_STATIC_JAVA_LIBRARIES += libphotoviewer 46 LOCAL_STATIC_JAVA_LIBRARIES += libphonenumber 47 LOCAL_STATIC_JAVA_LIBRARIES += colorpicker 48 49 include $(LOCAL_PATH)/version.mk 50 51 LOCAL_AAPT_FLAGS := --auto-add-overlay 52 LOCAL_AAPT_FLAGS += --version-name "$(version_name_package)" 53 LOCAL_AAPT_FLAGS += --version-code $(version_code_package) 54 LOCAL_AAPT_FLAGS += --extra-packages android.support.v7.appcompat 55 LOCAL_AAPT_FLAGS += --extra-packages android.support.v7.recyclerview 56 LOCAL_AAPT_FLAGS += --extra-packages com.android.ex.chips 57 LOCAL_AAPT_FLAGS += --extra-packages com.android.vcard 58 LOCAL_AAPT_FLAGS += --extra-packages com.android.ex.photo 59 LOCAL_AAPT_FLAGS += --extra-packages com.android.colorpicker 60 61 ifdef TARGET_BUILD_APPS 62 LOCAL_JNI_SHARED_LIBRARIES := libframesequence libgiftranscode 63 else 64 LOCAL_REQUIRED_MODULES:= libframesequence libgiftranscode 65 endif 66 67 LOCAL_PROGUARD_FLAGS := -ignorewarnings -include build/core/proguard_basic_keeps.flags 68 69 LOCAL_PROGUARD_ENABLED := nosystem 70 71 LOCAL_PROGUARD_FLAG_FILES := proguard.flags 72 ifeq (eng,$(TARGET_BUILD_VARIANT)) 73 LOCAL_PROGUARD_FLAG_FILES += proguard-test.flags 74 else 75 LOCAL_PROGUARD_FLAG_FILES += proguard-release.flags 76 endif 77 78 LOCAL_JACK_ENABLED := disabled 79 80 LOCAL_PACKAGE_NAME := messaging 81 82 LOCAL_CERTIFICATE := platform 83 84 LOCAL_SDK_VERSION := current 85 86 include $(BUILD_PACKAGE) 87 88 include $(call all-makefiles-under, $(LOCAL_PATH)) 89