1# Copyright (C) 2015 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) 16 17# Library of classes for handling time zone distros. Used on-device for 18# handling distros and within CTS tests. 19# 20# This is distinct from time_zone_distro_unbundled. It should be used 21# for platform code as it avoids circular dependencies when stubs targets 22# need to build framework (as appears to be the case in aosp/master). 23include $(CLEAR_VARS) 24LOCAL_MODULE := time_zone_distro 25LOCAL_MODULE_TAGS := optional 26LOCAL_SRC_FILES := $(call all-java-files-under, src/main) 27LOCAL_JAVACFLAGS := -encoding UTF-8 28LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk 29include $(BUILD_STATIC_JAVA_LIBRARY) 30 31# Library of classes for handling time zone distros. Used in unbundled 32# cases. Same as above, except dependent on system_current stubs. 33include $(CLEAR_VARS) 34LOCAL_MODULE := time_zone_distro_unbundled 35LOCAL_MODULE_TAGS := optional 36LOCAL_SRC_FILES := $(call all-java-files-under, src/main) 37LOCAL_JAVACFLAGS := -encoding UTF-8 38LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk 39LOCAL_SDK_VERSION := system_current 40include $(BUILD_STATIC_JAVA_LIBRARY) 41 42# Library of classes for handling time zone distros. Used on-device for 43# handling distros and within CTS tests. Used on host for host-side tests. 44include $(CLEAR_VARS) 45LOCAL_MODULE := time_zone_distro-host 46LOCAL_MODULE_TAGS := optional 47LOCAL_SRC_FILES := $(call all-java-files-under, src/main) 48LOCAL_JAVACFLAGS := -encoding UTF-8 49LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk 50LOCAL_SDK_VERSION := system_current 51include $(BUILD_HOST_JAVA_LIBRARY) 52 53# Tests for time_zone_distro code. 54include $(CLEAR_VARS) 55LOCAL_MODULE := time_zone_distro-tests 56LOCAL_MODULE_TAGS := optional 57LOCAL_SRC_FILES := $(call all-java-files-under, src/test) 58LOCAL_JAVACFLAGS := -encoding UTF-8 59LOCAL_STATIC_JAVA_LIBRARIES := time_zone_distro junit 60LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk 61include $(BUILD_STATIC_JAVA_LIBRARY) 62