blob: e17e594f318bf4ce04924d3345727a13c6748144 [file] [log] [blame]
Narayan Kamatha77fadd2014-12-18 11:56:40 +00001#
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
16LOCAL_PATH := $(call my-dir)
17
Neil Fuller47e24082015-09-18 15:07:41 +010018libphonenumber_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
24libphonenumber_test_resource_dirs := \
25 carrier/test \
26 geocoder/test \
27 libphonenumber/test
28
Neil Fuller47e24082015-09-18 15:07:41 +010029# Tests for unbundled use.
Paul Duffin6b489f72015-12-07 15:54:05 +000030# vogar --timeout 0 \
Paul Duffina805e0c2016-11-28 11:47:19 +000031 --classpath out/target/common/obj/JAVA_LIBRARIES/libphonenumber-test_intermediates/classes.jack \
Paul Duffin6b489f72015-12-07 15:54:05 +000032 com.google.i18n.phonenumbers
Neil Fuller47e24082015-09-18 15:07:41 +010033include $(CLEAR_VARS)
34LOCAL_MODULE := libphonenumber-test
35LOCAL_MODULE_TAGS := optional
36LOCAL_SRC_FILES := $(libphonenumber_test_files)
37LOCAL_JAVA_RESOURCE_DIRS := $(libphonenumber_test_resource_dirs)
38LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
39LOCAL_SDK_VERSION := current
Paul Duffin7448faf2017-12-05 18:36:55 +000040LOCAL_STATIC_JAVA_LIBRARIES := libphonenumber junit
Neil Fuller365cb132016-02-16 13:20:14 +000041LOCAL_JAVA_LANGUAGE_VERSION := 1.7
Neil Fuller47e24082015-09-18 15:07:41 +010042include $(BUILD_STATIC_JAVA_LIBRARY)