1# Copyright (C) 2017 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# An .mk include file that contains the boilerplate needed to build real and 16# test, OEM-specific Time Zone Data apps. 17# 18# Users should set: 19# OEM_APP_PATH - the location of the OEM directory for the app, e.g. one that 20# contains the app res/ dir. 21# TIME_ZONE_DATA_APP_SUFFIX - the suffix to apply to the package name. Can be 22# empty, or contain things like _test1 for test .apk files. 23# TIME_ZONE_DATA_APP_VERSION_CODE - the version code for the .apk. 24# TIME_ZONE_DATA_APP_VERSION_NAME - the version name for the .apk. 25# LOCAL_COMPATIBILITY_SUITE - if the package is to be included in xTS tests. 26# 27LOCAL_MODULE_TAGS := optional 28 29# All src comes from an AOSP static library. 30LOCAL_STATIC_JAVA_LIBRARIES := time_zone_distro_provider 31 32# All resources come from the vendor-specific dirs. 33LOCAL_RESOURCE_DIR := $(OEM_APP_PATH)/res 34 35# Ensure the app can be unbundled by only depending on System APIs. 36LOCAL_SDK_VERSION := system_current 37 38LOCAL_FULL_MANIFEST_FILE := $(OEM_APP_PATH)/AndroidManifest.xml 39 40LOCAL_PACKAGE_NAME := TimeZoneData$(TIME_ZONE_DATA_APP_SUFFIX) 41 42LOCAL_AAPT_FLAGS := --version-code $(TIME_ZONE_DATA_APP_VERSION_CODE) \ 43 --version-name $(TIME_ZONE_DATA_APP_VERSION_NAME) 44 45# OEM-INSTRUCTION: Modify the name, s/oemcorp/<Your company name>/ 46LOCAL_MODULE_OWNER := oemcorp 47LOCAL_PRIVILEGED_MODULE := true 48 49# OEM-INSTRUCTION: Configure your own certificate. 50LOCAL_CERTIFICATE := 51 52include $(BUILD_PACKAGE) 53