blob: 626a737b0b2ce63400d05d12d04e6e9027d4ddfb [file] [log] [blame]
Chiao Cheng5a6b5192012-09-05 16:10:50 -07001# Copyright 2012, 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
15LOCAL_PATH := $(call my-dir)
Chiao Chengc36c3192012-10-16 13:21:10 -070016include $(CLEAR_VARS)
Chiao Cheng5a6b5192012-09-05 16:10:50 -070017
Chiao Chengc36c3192012-10-16 13:21:10 -070018LOCAL_MODULE_TAGS := optional
19
Sai Cheemalapatif5fc99d2014-06-19 12:31:40 -070020phone_common_dir := ../PhoneCommon
21src_dirs := src $(phone_common_dir)/src
22res_dirs := res $(phone_common_dir)/res
23
24LOCAL_SRC_FILES := $(call all-java-files-under, $(src_dirs))
25LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, $(res_dirs))
26
27LOCAL_AAPT_FLAGS := \
28 --auto-add-overlay \
29 --extra-packages com.android.phone.common
Chiao Chengc36c3192012-10-16 13:21:10 -070030
31LOCAL_STATIC_JAVA_LIBRARIES := \
Chiao Cheng7903d242012-12-03 17:15:58 -080032 com.android.vcard \
Chiao Chengc36c3192012-10-16 13:21:10 -070033 guava \
Chiao Chengd6bba122012-11-01 13:41:51 -070034 android-common \
Chiao Chengc36c3192012-10-16 13:21:10 -070035 android-support-v13 \
36 android-support-v4 \
Christine Chene71d8eb2013-10-23 16:17:03 -070037 libphonenumber \
38 libgeocoding
Chiao Chengc36c3192012-10-16 13:21:10 -070039
40LOCAL_PACKAGE_NAME := com.android.contacts.common
41
Chiao Chengb3ed20e2012-10-24 12:26:57 -070042LOCAL_PROGUARD_ENABLED := disabled
Chiao Chengc36c3192012-10-16 13:21:10 -070043LOCAL_PROGUARD_FLAG_FILES := proguard.flags
44
45include $(BUILD_PACKAGE)
46
Christine Chene71d8eb2013-10-23 16:17:03 -070047include $(CLEAR_VARS)
48
49# Open-source libphonenumber libraries as found in code.google.com/p/libphonenumber
50LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := \
Yorke Lee8d6db502014-07-07 15:53:37 -070051 libphonenumber:libs/libphonenumber-6.2.jar \
Christine Chene71d8eb2013-10-23 16:17:03 -070052 libgeocoding:libs/geocoder-2.9.jar
53
54include $(BUILD_MULTI_PREBUILT)
55
56# Use the following include to make our test apk.
Chiao Cheng47201042012-10-23 19:07:05 -070057include $(call all-makefiles-under,$(LOCAL_PATH))