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 | |
Brett Chabot | e94d3a3 | 2017-10-19 16:10:37 -0700 | [diff] [blame] | 18 | # Intermediate target that produces classes-only jar |
| 19 | |
| 20 | LOCAL_MODULE := robolectric_android-all-stub |
Justin Klaassen | a040fad | 2017-04-24 17:19:12 -0700 | [diff] [blame] | 21 | |
Justin Klaassen | a040fad | 2017-04-24 17:19:12 -0700 | [diff] [blame] | 22 | LOCAL_STATIC_JAVA_LIBRARIES := \ |
| 23 | conscrypt \ |
| 24 | core-libart \ |
| 25 | ext \ |
| 26 | framework \ |
Tobias Thierer | 1ee4269 | 2018-02-07 15:20:44 +0000 | [diff] [blame] | 27 | icu4j-icudata-jarjar \ |
| 28 | icu4j-icutzdata-jarjar \ |
Justin Klaassen | a040fad | 2017-04-24 17:19:12 -0700 | [diff] [blame] | 29 | ims-common \ |
Sundong Ahn | 50f9c9e | 2018-07-31 17:04:35 +0900 | [diff] [blame] | 30 | android.test.base_static \ |
Brett Chabot | bb52ff7 | 2017-07-11 16:49:28 -0700 | [diff] [blame] | 31 | libphonenumber-platform \ |
Justin Klaassen | a040fad | 2017-04-24 17:19:12 -0700 | [diff] [blame] | 32 | okhttp \ |
| 33 | services \ |
| 34 | services.accessibility \ |
Brett Chabot | 4cf7c4b | 2019-02-05 13:06:29 -0800 | [diff] [blame] | 35 | telephony-common \ |
| 36 | updatable-media |
Justin Klaassen | a040fad | 2017-04-24 17:19:12 -0700 | [diff] [blame] | 37 | |
Brett Chabot | e94d3a3 | 2017-10-19 16:10:37 -0700 | [diff] [blame] | 38 | # include the uncompiled/raw resources in the jar |
| 39 | # Eventually these raw resources will be removed once the transition to |
| 40 | # binary/compiled resources is complete. |
Justin Klaassen | a040fad | 2017-04-24 17:19:12 -0700 | [diff] [blame] | 41 | LOCAL_JAVA_RESOURCE_FILES := \ |
| 42 | frameworks/base/core/res/assets \ |
| 43 | frameworks/base/core/res/res |
| 44 | |
| 45 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 46 | |
| 47 | # Copy the tzdata, preserving its path. |
| 48 | $(LOCAL_INTERMEDIATE_TARGETS): $(call copy-many-files,\ |
Neil Fuller | fe97138 | 2017-06-13 19:13:02 +0100 | [diff] [blame] | 49 | system/timezone/output_data/iana/tzdata:$(intermediates.COMMON)/usr/share/zoneinfo/tzdata \ |
| 50 | 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] | 51 | $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_EXTRA_JAR_ARGS += \ |
| 52 | -C "$(intermediates.COMMON)" "usr/share/zoneinfo" |
| 53 | |
Brett Chabot | f3b2594 | 2017-10-20 10:11:19 -0700 | [diff] [blame] | 54 | # Copy the build.prop |
| 55 | $(LOCAL_INTERMEDIATE_TARGETS): $(call copy-many-files,\ |
| 56 | $(TARGET_OUT)/build.prop:$(intermediates.COMMON)/build.prop) |
| 57 | $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_EXTRA_JAR_ARGS += \ |
| 58 | -C "$(intermediates.COMMON)" "build.prop" |
| 59 | |
Brett Chabot | e94d3a3 | 2017-10-19 16:10:37 -0700 | [diff] [blame] | 60 | ######################################## |
| 61 | |
| 62 | include $(CLEAR_VARS) |
| 63 | |
| 64 | # Adds binary framework resources to the produced jar |
| 65 | robo_stub_module_name := robolectric_android-all-stub |
| 66 | include $(LOCAL_PATH)/include_framework_res.mk |
| 67 | |
Justin Klaassen | a040fad | 2017-04-24 17:19:12 -0700 | [diff] [blame] | 68 | # Distribute the android-all artifact with SDK artifacts. |
Justin Klaassen | a040fad | 2017-04-24 17:19:12 -0700 | [diff] [blame] | 69 | $(call dist-for-goals,sdk win_sdk,\ |
Nan Zhang | 0a2ae80 | 2018-02-23 21:39:17 +0000 | [diff] [blame] | 70 | $(robo_full_target):android-all-$(PLATFORM_VERSION)-robolectric-$(FILE_NAME_TAG).jar) |