1 # 2 # Copyright (C) 2014 The Android Open Source Project 3 # 4 # Licensed under the Apache License, Version 2.0 (the "License"); 5 # you may not use this file except in compliance with the License. 6 # You may obtain a copy of the License at 7 # 8 # http://www.apache.org/licenses/LICENSE-2.0 9 # 10 # Unless required by applicable law or agreed to in writing, software 11 # distributed under the License is distributed on an "AS IS" BASIS, 12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 # See the License for the specific language governing permissions and 14 # limitations under the License. 15 16 LOCAL_PATH := $(call my-dir) 17 18 # For the platform, compile everything except the carrier to phone number 19 # which isn't used. 20 libphonenumber_platform_resource_dirs := \ 21 libphonenumber/src \ 22 geocoder/src \ 23 internal/prefixmapper/src 24 25 libphonenumber_platform_src_files := \ 26 $(call all-java-files-under, libphonenumber/src) \ 27 $(call all-java-files-under, geocoder/src) \ 28 $(call all-java-files-under, internal/prefixmapper/src) \ 29 30 libphonenumber_src_files := \ 31 $(libphonenumber_platform_src_files) \ 32 $(call all-java-files-under, carrier/src) 33 34 libphonenumber_resource_dirs := \ 35 $(libphonenumber_platform_resource_dirs) \ 36 carrier/src 37 38 # For platform use, builds directly against core-libart to avoid circular 39 # dependencies. *NOT* for unbundled use. 40 include $(CLEAR_VARS) 41 LOCAL_MODULE := libphonenumber-platform 42 LOCAL_MODULE_TAGS := optional 43 LOCAL_SRC_FILES := $(libphonenumber_platform_src_files) 44 LOCAL_JAVA_RESOURCE_DIRS := $(libphonenumber_platform_resource_dirs) 45 LOCAL_JARJAR_RULES := $(LOCAL_PATH)/jarjar-rules.txt 46 LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk 47 LOCAL_NO_STANDARD_LIBRARIES := true 48 LOCAL_JAVA_LIBRARIES := core-libart 49 include $(BUILD_STATIC_JAVA_LIBRARY) 50 51 # For unbundled use, supports gingerbread and up. 52 include $(CLEAR_VARS) 53 LOCAL_MODULE := libphonenumber 54 LOCAL_MODULE_TAGS := optional 55 LOCAL_SRC_FILES := $(libphonenumber_src_files) 56 LOCAL_JAVA_RESOURCE_DIRS := $(libphonenumber_resource_dirs) 57 LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk 58 LOCAL_SDK_VERSION := 9 59 include $(BUILD_STATIC_JAVA_LIBRARY) 60