Narayan Kamath | a77fadd | 2014-12-18 11:56:40 +0000 | [diff] [blame] | 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 | |
Neil Fuller | 47e2408 | 2015-09-18 15:07:41 +0100 | [diff] [blame] | 18 | libphonenumber_test_files := \ |
| 19 | $(call all-java-files-under, carrier/test) \ |
| 20 | $(call all-java-files-under, geocoder/test) \ |
| 21 | $(call all-java-files-under, internal/prefixmapper/test) \ |
| 22 | $(call all-java-files-under, libphonenumber/test) |
| 23 | |
| 24 | libphonenumber_test_resource_dirs := \ |
| 25 | carrier/test \ |
| 26 | geocoder/test \ |
| 27 | libphonenumber/test |
| 28 | |
Neil Fuller | 47e2408 | 2015-09-18 15:07:41 +0100 | [diff] [blame] | 29 | # Tests for unbundled use. |
Paul Duffin | 6b489f7 | 2015-12-07 15:54:05 +0000 | [diff] [blame] | 30 | # vogar --timeout 0 \ |
Paul Duffin | a805e0c | 2016-11-28 11:47:19 +0000 | [diff] [blame] | 31 | --classpath out/target/common/obj/JAVA_LIBRARIES/libphonenumber-test_intermediates/classes.jack \ |
Paul Duffin | 6b489f7 | 2015-12-07 15:54:05 +0000 | [diff] [blame] | 32 | com.google.i18n.phonenumbers |
Neil Fuller | 47e2408 | 2015-09-18 15:07:41 +0100 | [diff] [blame] | 33 | include $(CLEAR_VARS) |
| 34 | LOCAL_MODULE := libphonenumber-test |
| 35 | LOCAL_MODULE_TAGS := optional |
| 36 | LOCAL_SRC_FILES := $(libphonenumber_test_files) |
| 37 | LOCAL_JAVA_RESOURCE_DIRS := $(libphonenumber_test_resource_dirs) |
| 38 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk |
| 39 | LOCAL_SDK_VERSION := current |
Paul Duffin | 7448faf | 2017-12-05 18:36:55 +0000 | [diff] [blame] | 40 | LOCAL_STATIC_JAVA_LIBRARIES := libphonenumber junit |
Neil Fuller | 365cb13 | 2016-02-16 13:20:14 +0000 | [diff] [blame] | 41 | LOCAL_JAVA_LANGUAGE_VERSION := 1.7 |
Neil Fuller | 47e2408 | 2015-09-18 15:07:41 +0100 | [diff] [blame] | 42 | include $(BUILD_STATIC_JAVA_LIBRARY) |