blob: e75d39ed4e9711e4dd31402fa7baa0d998e2d4e0 [file] [log] [blame]
Neil Fullerf68ad8c2017-06-05 13:54:44 +01001# 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
16LOCAL_PATH:= $(call my-dir)
17
18# A static library containing all the source needed by a TimeZoneDataApp.
19include $(CLEAR_VARS)
20LOCAL_MODULE_TAGS := optional
21LOCAL_MODULE := time_zone_distro_provider
22LOCAL_MODULE_TAGS := optional
23LOCAL_SRC_FILES := $(call all-java-files-under, src/main)
24LOCAL_PROGUARD_FLAG_FILES := $(LOCAL_PATH)/proguard.cfg
25LOCAL_STATIC_JAVA_LIBRARIES := time_zone_distro
26include $(BUILD_STATIC_JAVA_LIBRARY)
27
28include $(CLEAR_VARS)
29LOCAL_MODULE_TAGS := optional
30LOCAL_PACKAGE_NAME := DemoTimeZoneDataApp
31LOCAL_MANIFEST_FILE := manifests/install/AndroidManifest.xml
32LOCAL_ASSET_DIR := system/timezone/output_data/distro
33LOCAL_AAPT_FLAGS := --version-code 10 --version-name system_image
34LOCAL_STATIC_JAVA_LIBRARIES := time_zone_distro_provider
35include $(BUILD_PACKAGE)
36
37include $(CLEAR_VARS)
38LOCAL_MODULE_TAGS := optional
39LOCAL_PACKAGE_NAME := DemoTimeZoneDataApp_data
40LOCAL_MANIFEST_FILE := manifests/install/AndroidManifest.xml
41LOCAL_ASSET_DIR := system/timezone/output_data/distro
42LOCAL_AAPT_FLAGS := --version-code 20 --version-name installable
43# Needed to ensure the .apk can be installed. Without it the .apk is missing a .dex.
44LOCAL_DEX_PREOPT := false
45LOCAL_STATIC_JAVA_LIBRARIES := time_zone_distro_provider
46include $(BUILD_PACKAGE)
47
48include $(call all-makefiles-under,$(LOCAL_PATH))