Mike Dodd | d3b009a | 2015-08-11 11:16:59 -0700 | [diff] [blame] | 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 |
Aurimas Liutikas | 9812a75 | 2017-11-21 12:50:18 -0800 | [diff] [blame] | 23 | LOCAL_USE_AAPT2 := true |
Mike Dodd | d3b009a | 2015-08-11 11:16:59 -0700 | [diff] [blame] | 24 | |
Aurimas Liutikas | 9812a75 | 2017-11-21 12:50:18 -0800 | [diff] [blame] | 25 | LOCAL_STATIC_ANDROID_LIBRARIES := \ |
Aurimas Liutikas | 1b693ea | 2018-04-09 17:17:41 -0700 | [diff] [blame] | 26 | androidx.core_core \ |
| 27 | androidx.media_media \ |
| 28 | androidx.legacy_legacy-support-core-utils \ |
| 29 | androidx.legacy_legacy-support-core-ui \ |
| 30 | androidx.fragment_fragment \ |
| 31 | androidx.appcompat_appcompat \ |
| 32 | androidx.palette_palette \ |
| 33 | androidx.recyclerview_recyclerview \ |
| 34 | androidx.legacy_legacy-support-v13 \ |
Aurimas Liutikas | 9812a75 | 2017-11-21 12:50:18 -0800 | [diff] [blame] | 35 | colorpicker \ |
| 36 | libchips \ |
| 37 | libphotoviewer |
| 38 | |
| 39 | LOCAL_STATIC_JAVA_LIBRARIES := \ |
Aurimas Liutikas | 1b693ea | 2018-04-09 17:17:41 -0700 | [diff] [blame] | 40 | androidx.annotation_annotation \ |
Aurimas Liutikas | 9812a75 | 2017-11-21 12:50:18 -0800 | [diff] [blame] | 41 | android-common \ |
| 42 | android-common-framesequence \ |
| 43 | com.android.vcard \ |
| 44 | guava \ |
| 45 | libphonenumber |
Mike Dodd | d3b009a | 2015-08-11 11:16:59 -0700 | [diff] [blame] | 46 | |
| 47 | include $(LOCAL_PATH)/version.mk |
| 48 | |
Mike Dodd | d3b009a | 2015-08-11 11:16:59 -0700 | [diff] [blame] | 49 | LOCAL_AAPT_FLAGS += --version-name "$(version_name_package)" |
| 50 | LOCAL_AAPT_FLAGS += --version-code $(version_code_package) |
Colin Cross | ef765e4 | 2019-06-20 16:58:37 -0700 | [diff] [blame] | 51 | LOCAL_AAPT_FLAGS += --legacy |
Mike Dodd | d3b009a | 2015-08-11 11:16:59 -0700 | [diff] [blame] | 52 | |
| 53 | ifdef TARGET_BUILD_APPS |
| 54 | LOCAL_JNI_SHARED_LIBRARIES := libframesequence libgiftranscode |
| 55 | else |
| 56 | LOCAL_REQUIRED_MODULES:= libframesequence libgiftranscode |
| 57 | endif |
| 58 | |
Colin Cross | 86e0cae | 2017-12-27 18:53:41 -0800 | [diff] [blame] | 59 | LOCAL_PROGUARD_ENABLED := obfuscation optimization |
Mike Dodd | d3b009a | 2015-08-11 11:16:59 -0700 | [diff] [blame] | 60 | |
Colin Cross | 86e0cae | 2017-12-27 18:53:41 -0800 | [diff] [blame] | 61 | LOCAL_PROGUARD_FLAG_FILES := proguard.flags |
Mike Dodd | d3b009a | 2015-08-11 11:16:59 -0700 | [diff] [blame] | 62 | ifeq (eng,$(TARGET_BUILD_VARIANT)) |
| 63 | LOCAL_PROGUARD_FLAG_FILES += proguard-test.flags |
| 64 | else |
| 65 | LOCAL_PROGUARD_FLAG_FILES += proguard-release.flags |
| 66 | endif |
| 67 | |
Mike Dodd | d3b009a | 2015-08-11 11:16:59 -0700 | [diff] [blame] | 68 | LOCAL_PACKAGE_NAME := messaging |
| 69 | |
| 70 | LOCAL_CERTIFICATE := platform |
| 71 | |
| 72 | LOCAL_SDK_VERSION := current |
| 73 | |
Po-Chien Hsueh | 8e17332 | 2019-08-13 16:48:24 +0800 | [diff] [blame^] | 74 | LOCAL_PRODUCT_MODULE := true |
| 75 | |
| 76 | LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT_APPS) |
Raman Tenneti | a3b82b5 | 2019-03-13 14:29:53 -0700 | [diff] [blame] | 77 | |
| 78 | LOCAL_COMPATIBILITY_SUITE := general-tests |
| 79 | |
Mike Dodd | d3b009a | 2015-08-11 11:16:59 -0700 | [diff] [blame] | 80 | include $(BUILD_PACKAGE) |
| 81 | |
| 82 | include $(call all-makefiles-under, $(LOCAL_PATH)) |