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.
14LOCAL_PATH:= $(call my-dir)
15
16include $(CLEAR_VARS)
17
18LOCAL_MODULE_TAGS := optional
19
20LOCAL_SRC_FILES := $(call all-java-files-under, src)
21
22LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
23LOCAL_USE_AAPT2 := true
24
25LOCAL_STATIC_ANDROID_LIBRARIES := \
26    androidx.appcompat_appcompat \
27    androidx.collection_collection \
28    androidx.core_core \
29    androidx.fragment_fragment \
30    androidx.media_media \
31    androidx.legacy_legacy-support-core-utils \
32    androidx.legacy_legacy-support-core-ui \
33    androidx.palette_palette \
34    androidx.recyclerview_recyclerview \
35    androidx.viewpager_viewpager \
36    androidx.legacy_legacy-support-v13 \
37    colorpicker \
38    libchips \
39    libphotoviewer
40
41LOCAL_STATIC_JAVA_LIBRARIES := \
42    androidx.annotation_annotation \
43    android-common \
44    android-common-framesequence \
45    com.android.vcard \
46    guava \
47    libphonenumber
48
49include $(LOCAL_PATH)/version.mk
50
51LOCAL_AAPT_FLAGS += --version-name "$(version_name_package)"
52LOCAL_AAPT_FLAGS += --version-code $(version_code_package)
53
54ifdef TARGET_BUILD_APPS
55    LOCAL_JNI_SHARED_LIBRARIES := libframesequence libgiftranscode
56else
57    LOCAL_REQUIRED_MODULES:= libframesequence libgiftranscode
58endif
59
60LOCAL_PROGUARD_ENABLED := obfuscation optimization
61
62LOCAL_PROGUARD_FLAG_FILES := proguard.flags
63ifeq (eng,$(TARGET_BUILD_VARIANT))
64    LOCAL_PROGUARD_FLAG_FILES += proguard-test.flags
65else
66    LOCAL_PROGUARD_FLAG_FILES += proguard-release.flags
67endif
68
69LOCAL_PACKAGE_NAME := messaging
70LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD SPDX-license-identifier-MIT
71LOCAL_LICENSE_CONDITIONS := notice
72
73LOCAL_CERTIFICATE := platform
74
75LOCAL_SDK_VERSION := current
76
77LOCAL_PRODUCT_MODULE := true
78
79LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT_APPS)
80
81LOCAL_COMPATIBILITY_SUITE := general-tests
82
83include $(BUILD_PACKAGE)
84
85include $(call all-makefiles-under, $(LOCAL_PATH))
86