blob: d176031ae76be66e26d29d88bf900f749c33802a [file] [log] [blame]
Ying Wang3fbe0d42014-07-14 17:26:42 -07001#
2# Copyright (C) 2014 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17LOCAL_PATH := $(call my-dir)
18
19#########################################
20# The prebuilt support libraries.
Alan Viveretteab1e2a42017-04-21 10:46:02 -040021
22# For apps (unbundled) build, replace the typical
23# make target artifacts with prebuilts.
Ying Wang3fbe0d42014-07-14 17:26:42 -070024ifneq ($(TARGET_BUILD_APPS),)
25include $(CLEAR_VARS)
Alan Viverette5bfe05b2017-06-06 14:21:29 -040026
27# Set up prebuilts for the core Support Library artifacts.
28LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES += \
Ying Wang3fbe0d42014-07-14 17:26:42 -070029 $(patsubst $(LOCAL_PATH)/%,%,\
30 $(shell find $(LOCAL_PATH)/support -name "*.jar"))
Alan Viverette5bfe05b2017-06-06 14:21:29 -040031
32# Set up prebuilts for additional non-core library artifacts.
33LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES += \
34 $(patsubst $(LOCAL_PATH)/%,%,\
35 $(shell find $(LOCAL_PATH)/multidex -name "*.jar"))
36
Ying Wang3fbe0d42014-07-14 17:26:42 -070037include $(BUILD_MULTI_PREBUILT)
Alan Viverette95f6d362017-04-06 09:40:50 -040038
Alan Viverette0aaa6252017-05-12 11:33:52 -040039# Generates the v4, v13, and appcompat libraries with static dependencies.
Alan Viverette95f6d362017-04-06 09:40:50 -040040include $(call all-makefiles-under,$(LOCAL_PATH))
41
Ying Wang3fbe0d42014-07-14 17:26:42 -070042endif # TARGET_BUILD_APPS not empty