blob: d693b7dc6110c90ac2bd053a6d327bd304c33484 [file] [log] [blame]
Justin Klaassena040fad2017-04-24 17:19:12 -07001# 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
Brett Chabote94d3a32017-10-19 16:10:37 -070018# Intermediate target that produces classes-only jar
19
20LOCAL_MODULE := robolectric_android-all-stub
Justin Klaassena040fad2017-04-24 17:19:12 -070021
Justin Klaassena040fad2017-04-24 17:19:12 -070022LOCAL_STATIC_JAVA_LIBRARIES := \
23 conscrypt \
24 core-libart \
25 ext \
26 framework \
Tobias Thierer1ee42692018-02-07 15:20:44 +000027 icu4j-icudata-jarjar \
28 icu4j-icutzdata-jarjar \
Justin Klaassena040fad2017-04-24 17:19:12 -070029 ims-common \
Sundong Ahn50f9c9e2018-07-31 17:04:35 +090030 android.test.base_static \
Brett Chabotbb52ff72017-07-11 16:49:28 -070031 libphonenumber-platform \
Justin Klaassena040fad2017-04-24 17:19:12 -070032 okhttp \
33 services \
34 services.accessibility \
Brett Chabot4cf7c4b2019-02-05 13:06:29 -080035 telephony-common \
36 updatable-media
Justin Klaassena040fad2017-04-24 17:19:12 -070037
Brett Chabote94d3a32017-10-19 16:10:37 -070038# 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 Klaassena040fad2017-04-24 17:19:12 -070041LOCAL_JAVA_RESOURCE_FILES := \
42 frameworks/base/core/res/assets \
43 frameworks/base/core/res/res
44
45include $(BUILD_STATIC_JAVA_LIBRARY)
46
47# Copy the tzdata, preserving its path.
48$(LOCAL_INTERMEDIATE_TARGETS): $(call copy-many-files,\
Neil Fullerfe971382017-06-13 19:13:02 +010049 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 Klaassena040fad2017-04-24 17:19:12 -070051$(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_EXTRA_JAR_ARGS += \
52 -C "$(intermediates.COMMON)" "usr/share/zoneinfo"
53
Brett Chabotf3b25942017-10-20 10:11:19 -070054# 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 Chabote94d3a32017-10-19 16:10:37 -070060########################################
61
62include $(CLEAR_VARS)
63
64# Adds binary framework resources to the produced jar
65robo_stub_module_name := robolectric_android-all-stub
66include $(LOCAL_PATH)/include_framework_res.mk
67
Justin Klaassena040fad2017-04-24 17:19:12 -070068# Distribute the android-all artifact with SDK artifacts.
Justin Klaassena040fad2017-04-24 17:19:12 -070069$(call dist-for-goals,sdk win_sdk,\
Nan Zhang0a2ae802018-02-23 21:39:17 +000070 $(robo_full_target):android-all-$(PLATFORM_VERSION)-robolectric-$(FILE_NAME_TAG).jar)