Chiao Cheng | 5a6b519 | 2012-09-05 16:10:50 -0700 | [diff] [blame] | 1 | # 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 | |
| 15 | LOCAL_PATH := $(call my-dir) |
Chiao Cheng | c36c319 | 2012-10-16 13:21:10 -0700 | [diff] [blame] | 16 | include $(CLEAR_VARS) |
Chiao Cheng | 5a6b519 | 2012-09-05 16:10:50 -0700 | [diff] [blame] | 17 | |
Chiao Cheng | c36c319 | 2012-10-16 13:21:10 -0700 | [diff] [blame] | 18 | LOCAL_MODULE_TAGS := optional |
| 19 | |
Sai Cheemalapati | f5fc99d | 2014-06-19 12:31:40 -0700 | [diff] [blame] | 20 | phone_common_dir := ../PhoneCommon |
| 21 | src_dirs := src $(phone_common_dir)/src |
| 22 | res_dirs := res $(phone_common_dir)/res |
| 23 | |
| 24 | LOCAL_SRC_FILES := $(call all-java-files-under, $(src_dirs)) |
| 25 | LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, $(res_dirs)) |
| 26 | |
| 27 | LOCAL_AAPT_FLAGS := \ |
| 28 | --auto-add-overlay \ |
| 29 | --extra-packages com.android.phone.common |
Chiao Cheng | c36c319 | 2012-10-16 13:21:10 -0700 | [diff] [blame] | 30 | |
| 31 | LOCAL_STATIC_JAVA_LIBRARIES := \ |
Chiao Cheng | 7903d24 | 2012-12-03 17:15:58 -0800 | [diff] [blame] | 32 | com.android.vcard \ |
Chiao Cheng | c36c319 | 2012-10-16 13:21:10 -0700 | [diff] [blame] | 33 | guava \ |
Chiao Cheng | d6bba12 | 2012-11-01 13:41:51 -0700 | [diff] [blame] | 34 | android-common \ |
Chiao Cheng | c36c319 | 2012-10-16 13:21:10 -0700 | [diff] [blame] | 35 | android-support-v13 \ |
| 36 | android-support-v4 \ |
Christine Chen | e71d8eb | 2013-10-23 16:17:03 -0700 | [diff] [blame] | 37 | libphonenumber \ |
| 38 | libgeocoding |
Chiao Cheng | c36c319 | 2012-10-16 13:21:10 -0700 | [diff] [blame] | 39 | |
| 40 | LOCAL_PACKAGE_NAME := com.android.contacts.common |
| 41 | |
Chiao Cheng | b3ed20e | 2012-10-24 12:26:57 -0700 | [diff] [blame] | 42 | LOCAL_PROGUARD_ENABLED := disabled |
Chiao Cheng | c36c319 | 2012-10-16 13:21:10 -0700 | [diff] [blame] | 43 | LOCAL_PROGUARD_FLAG_FILES := proguard.flags |
| 44 | |
| 45 | include $(BUILD_PACKAGE) |
| 46 | |
Christine Chen | e71d8eb | 2013-10-23 16:17:03 -0700 | [diff] [blame] | 47 | include $(CLEAR_VARS) |
| 48 | |
| 49 | # Open-source libphonenumber libraries as found in code.google.com/p/libphonenumber |
| 50 | LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := \ |
Yorke Lee | 8d6db50 | 2014-07-07 15:53:37 -0700 | [diff] [blame] | 51 | libphonenumber:libs/libphonenumber-6.2.jar \ |
Christine Chen | e71d8eb | 2013-10-23 16:17:03 -0700 | [diff] [blame] | 52 | libgeocoding:libs/geocoder-2.9.jar |
| 53 | |
| 54 | include $(BUILD_MULTI_PREBUILT) |
| 55 | |
| 56 | # Use the following include to make our test apk. |
Chiao Cheng | 4720104 | 2012-10-23 19:07:05 -0700 | [diff] [blame] | 57 | include $(call all-makefiles-under,$(LOCAL_PATH)) |