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 15LOCAL_PATH := $(call my-dir) 16include $(CLEAR_VARS) 17 18LOCAL_MODULE := robolectric_android-all 19LOCAL_JACK_ENABLED := disabled 20 21# Re-package icudata under android.icu.**. 22LOCAL_JARJAR_RULES := external/icu/icu4j/liblayout-jarjar-rules.txt 23 24LOCAL_STATIC_JAVA_LIBRARIES := \ 25 conscrypt \ 26 core-libart \ 27 ext \ 28 framework \ 29 icu4j-icudata \ 30 icu4j-icutzdata \ 31 ims-common \ 32 legacy-test \ 33 libphonenumber-platform \ 34 okhttp \ 35 services \ 36 services.accessibility \ 37 telephony-common 38 39LOCAL_JAVA_RESOURCE_FILES := \ 40 frameworks/base/core/res/assets \ 41 frameworks/base/core/res/res 42 43include $(BUILD_STATIC_JAVA_LIBRARY) 44 45# Copy the tzdata, preserving its path. 46$(LOCAL_INTERMEDIATE_TARGETS): $(call copy-many-files,\ 47 system/timezone/output_data/iana/tzdata:$(intermediates.COMMON)/usr/share/zoneinfo/tzdata \ 48 system/timezone/output_data/android/tzlookup.xml:$(intermediates.COMMON)/usr/share/zoneinfo/tzlookup.xml) 49$(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_EXTRA_JAR_ARGS += \ 50 -C "$(intermediates.COMMON)" "usr/share/zoneinfo" 51 52# Distribute the android-all artifact with SDK artifacts. 53ifneq ($(filter eng.%,$(BUILD_NUMBER)),) 54$(call dist-for-goals,sdk win_sdk,\ 55 $(LOCAL_BUILT_MODULE):android-all-$(PLATFORM_VERSION)-robolectric-eng.$(USER).jar) 56else 57$(call dist-for-goals,sdk win_sdk,\ 58 $(LOCAL_BUILT_MODULE):android-all-$(PLATFORM_VERSION)-robolectric-$(BUILD_NUMBER).jar) 59endif 60