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