Justin Klaassen | a040fad | 2017-04-24 17:19:12 -0700 | [diff] [blame] | 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 | LOCAL_PATH := $(call my-dir) |
| 16 | include $(CLEAR_VARS) |
| 17 | |
| 18 | LOCAL_MODULE := robolectric_android-all |
| 19 | LOCAL_JACK_ENABLED := disabled |
| 20 | |
| 21 | # Re-package icudata under android.icu.**. |
| 22 | LOCAL_JARJAR_RULES := external/icu/icu4j/liblayout-jarjar-rules.txt |
| 23 | |
| 24 | LOCAL_STATIC_JAVA_LIBRARIES := \ |
| 25 | conscrypt \ |
| 26 | core-libart \ |
| 27 | ext \ |
| 28 | framework \ |
| 29 | icu4j-icudata \ |
| 30 | icu4j-icutzdata \ |
| 31 | ims-common \ |
| 32 | legacy-test \ |
Brett Chabot | d80393c | 2017-07-12 11:36:38 -0700 | [diff] [blame] | 33 | libphonenumber-platform \ |
Justin Klaassen | a040fad | 2017-04-24 17:19:12 -0700 | [diff] [blame] | 34 | okhttp \ |
| 35 | services \ |
| 36 | services.accessibility \ |
| 37 | telephony-common |
| 38 | |
| 39 | LOCAL_JAVA_RESOURCE_FILES := \ |
| 40 | frameworks/base/core/res/assets \ |
| 41 | frameworks/base/core/res/res |
| 42 | |
| 43 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 44 | |
| 45 | # Copy the tzdata, preserving its path. |
| 46 | $(LOCAL_INTERMEDIATE_TARGETS): $(call copy-many-files,\ |
Neil Fuller | d270cb3 | 2017-06-13 19:13:02 +0100 | [diff] [blame] | 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) |
Justin Klaassen | a040fad | 2017-04-24 17:19:12 -0700 | [diff] [blame] | 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. |
| 53 | ifneq ($(filter eng.%,$(BUILD_NUMBER)),) |
| 54 | $(call dist-for-goals,sdk win_sdk,\ |
| 55 | $(LOCAL_BUILT_MODULE):android-all-$(PLATFORM_VERSION)-robolectric-eng.$(USER).jar) |
| 56 | else |
| 57 | $(call dist-for-goals,sdk win_sdk,\ |
| 58 | $(LOCAL_BUILT_MODULE):android-all-$(PLATFORM_VERSION)-robolectric-$(BUILD_NUMBER).jar) |
| 59 | endif |