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# Targets for creating signed test versions of the time zone data app that can be used for
16# manual testing and / or xts-type tests.
17
18LOCAL_PATH := $(call my-dir)
19
20# Paths used to find files shared with AOSP.
21aosp_test_data_path := system/timezone/testing/data
22
23# Target to build the "test 1" time zone data app.
24include $(CLEAR_VARS)
25LOCAL_ASSET_DIR := $(aosp_test_data_path)/test1/output_data/distro
26TIME_ZONE_DATA_APP_SUFFIX := _test1
27
28# OEM-INSTRUCTION: OEMs should come up with a suitable versioning strategy and this version should
29# be guaranteed newer than the "real" app.
30TIME_ZONE_DATA_APP_VERSION_CODE := 15
31TIME_ZONE_DATA_APP_VERSION_NAME := test1
32
33# When built, explicitly put it in the data partition since this is for tests, not the system image.
34LOCAL_MODULE_PATH := $(TARGET_OUT_DATA_APPS)
35
36include $(LOCAL_PATH)/build_oem_test_data_app.mk
37
38
39# Target to build the "test 2" time zone data app.
40include $(CLEAR_VARS)
41LOCAL_ASSET_DIR := $(aosp_test_data_path)/test2/output_data/distro
42TIME_ZONE_DATA_APP_SUFFIX := _test2
43
44# OEM-INSTRUCTION: OEMs should come up with a suitable versioning strategy and this version should
45# be guaranteed newer than the "real" app.
46TIME_ZONE_DATA_APP_VERSION_CODE := 20
47TIME_ZONE_DATA_APP_VERSION_NAME := test2
48
49# When built, explicitly put it in the data partition since this is for tests, not the system image.
50LOCAL_MODULE_PATH := $(TARGET_OUT_DATA_APPS)
51
52include $(LOCAL_PATH)/build_oem_test_data_app.mk
53
54# Tidy up variables.
55aosp_test_data_path :=
56