blob: c9ada0dad468c66b505faf454ca77248b37d7bcb [file] [log] [blame]
Mike Doddd3b009a2015-08-11 11:16:59 -07001# 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
Aurimas Liutikas9812a752017-11-21 12:50:18 -080023LOCAL_USE_AAPT2 := true
Mike Doddd3b009a2015-08-11 11:16:59 -070024
Aurimas Liutikas9812a752017-11-21 12:50:18 -080025LOCAL_STATIC_ANDROID_LIBRARIES := \
26 android-support-compat \
27 android-support-media-compat \
28 android-support-core-utils \
29 android-support-core-ui \
30 android-support-fragment \
31 android-support-v7-appcompat \
32 android-support-v7-palette \
33 android-support-v7-recyclerview \
34 android-support-v13 \
35 colorpicker \
36 libchips \
37 libphotoviewer
38
39LOCAL_STATIC_JAVA_LIBRARIES := \
40 android-support-annotations \
41 android-common \
42 android-common-framesequence \
43 com.android.vcard \
44 guava \
45 libphonenumber
Mike Doddd3b009a2015-08-11 11:16:59 -070046
47include $(LOCAL_PATH)/version.mk
48
Mike Doddd3b009a2015-08-11 11:16:59 -070049LOCAL_AAPT_FLAGS += --version-name "$(version_name_package)"
50LOCAL_AAPT_FLAGS += --version-code $(version_code_package)
Mike Doddd3b009a2015-08-11 11:16:59 -070051
52ifdef TARGET_BUILD_APPS
53 LOCAL_JNI_SHARED_LIBRARIES := libframesequence libgiftranscode
54else
55 LOCAL_REQUIRED_MODULES:= libframesequence libgiftranscode
56endif
57
Colin Cross86e0cae2017-12-27 18:53:41 -080058LOCAL_PROGUARD_ENABLED := obfuscation optimization
Mike Doddd3b009a2015-08-11 11:16:59 -070059
Colin Cross86e0cae2017-12-27 18:53:41 -080060LOCAL_PROGUARD_FLAG_FILES := proguard.flags
Mike Doddd3b009a2015-08-11 11:16:59 -070061ifeq (eng,$(TARGET_BUILD_VARIANT))
62 LOCAL_PROGUARD_FLAG_FILES += proguard-test.flags
63else
64 LOCAL_PROGUARD_FLAG_FILES += proguard-release.flags
65endif
66
Mike Doddd3b009a2015-08-11 11:16:59 -070067LOCAL_PACKAGE_NAME := messaging
68
69LOCAL_CERTIFICATE := platform
70
71LOCAL_SDK_VERSION := current
72
Mike Doddd3b009a2015-08-11 11:16:59 -070073include $(BUILD_PACKAGE)
74
75include $(call all-makefiles-under, $(LOCAL_PATH))