blob: 352b94a6036fba3e9c4342b15d854270016b62c7 [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
18LOCAL_MODULE := robolectric_android-all
19LOCAL_JACK_ENABLED := disabled
20
Justin Klaassena040fad2017-04-24 17:19:12 -070021LOCAL_STATIC_JAVA_LIBRARIES := \
22 conscrypt \
23 core-libart \
24 ext \
25 framework \
Tobias Thierer1ee42692018-02-07 15:20:44 +000026 icu4j-icudata-jarjar \
27 icu4j-icutzdata-jarjar \
Justin Klaassena040fad2017-04-24 17:19:12 -070028 ims-common \
29 legacy-test \
Brett Chabotd80393c2017-07-12 11:36:38 -070030 libphonenumber-platform \
Justin Klaassena040fad2017-04-24 17:19:12 -070031 okhttp \
32 services \
33 services.accessibility \
34 telephony-common
35
36LOCAL_JAVA_RESOURCE_FILES := \
37 frameworks/base/core/res/assets \
38 frameworks/base/core/res/res
39
40include $(BUILD_STATIC_JAVA_LIBRARY)
41
42# Copy the tzdata, preserving its path.
43$(LOCAL_INTERMEDIATE_TARGETS): $(call copy-many-files,\
Neil Fullerd270cb32017-06-13 19:13:02 +010044 system/timezone/output_data/iana/tzdata:$(intermediates.COMMON)/usr/share/zoneinfo/tzdata \
45 system/timezone/output_data/android/tzlookup.xml:$(intermediates.COMMON)/usr/share/zoneinfo/tzlookup.xml)
Justin Klaassena040fad2017-04-24 17:19:12 -070046$(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_EXTRA_JAR_ARGS += \
47 -C "$(intermediates.COMMON)" "usr/share/zoneinfo"
48
49# Distribute the android-all artifact with SDK artifacts.
50ifneq ($(filter eng.%,$(BUILD_NUMBER)),)
51$(call dist-for-goals,sdk win_sdk,\
52 $(LOCAL_BUILT_MODULE):android-all-$(PLATFORM_VERSION)-robolectric-eng.$(USER).jar)
53else
54$(call dist-for-goals,sdk win_sdk,\
55 $(LOCAL_BUILT_MODULE):android-all-$(PLATFORM_VERSION)-robolectric-$(BUILD_NUMBER).jar)
56endif