• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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)
41LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
42LOCAL_LICENSE_CONDITIONS := notice
43
44LOCAL_AAPT_FLAGS := --version-code $(TIME_ZONE_DATA_APP_VERSION_CODE) \
45                    --version-name $(TIME_ZONE_DATA_APP_VERSION_NAME)
46
47# OEM-INSTRUCTION: Modify the name, s/oemcorp/<Your company name>/
48LOCAL_MODULE_OWNER := oemcorp
49
50# The app build is expected to generate a prebuilt, so do not place the app in
51# the system image.
52LOCAL_UNINSTALLABLE_MODULE := true
53
54LOCAL_PRODUCT_MODULE := true
55
56# OEM-INSTRUCTION: Configure your own certificate.
57LOCAL_CERTIFICATE :=
58
59include $(BUILD_PACKAGE)
60