blob: 9da8832877f9524d88b21263c78464037ac8d0f9 [file] [log] [blame]
Neil Fuller91c98d72015-03-13 14:31:20 +00001# 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# Subprojects with separate makefiles
18subdirs := update_test_app
19subdir_makefiles := $(call all-named-subdir-makefiles,$(subdirs))
20
21# Library of tools classes for tzdata updates. Not required on device, except in tests.
22include $(CLEAR_VARS)
23LOCAL_MODULE := tzdata_tools
24LOCAL_MODULE_TAGS := optional
25LOCAL_SRC_FILES := $(call all-java-files-under, tools/src/main)
26LOCAL_JAVACFLAGS := -encoding UTF-8
27LOCAL_STATIC_JAVA_LIBRARIES := tzdata_update
28LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
29include $(BUILD_STATIC_JAVA_LIBRARY)
30
31# Library of support classes for tzdata updates. Shared between update generation and
32# on-device code.
33include $(CLEAR_VARS)
34LOCAL_MODULE := tzdata_update
35LOCAL_MODULE_TAGS := optional
36LOCAL_SRC_FILES := $(call all-java-files-under, update/src/main)
37LOCAL_JAVACFLAGS := -encoding UTF-8
38LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
39include $(BUILD_STATIC_JAVA_LIBRARY)
40
41# Tests for tzdata_update code
42include $(CLEAR_VARS)
43LOCAL_MODULE := tzdata_update-tests
44LOCAL_MODULE_TAGS := optional
45LOCAL_SRC_FILES := $(call all-java-files-under, update/src/test)
46LOCAL_JAVACFLAGS := -encoding UTF-8
47LOCAL_STATIC_JAVA_LIBRARIES := tzdata_update tzdata_tools
48LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
49include $(BUILD_STATIC_JAVA_LIBRARY)
50
51include $(subdir_makefiles)