Ying Wang | 3fbe0d4 | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 1 | # |
| 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 | |
| 17 | LOCAL_PATH := $(call my-dir) |
| 18 | |
| 19 | ######################################### |
| 20 | # The prebuilt support libraries. |
Alan Viverette | ab1e2a4 | 2017-04-21 10:46:02 -0400 | [diff] [blame^] | 21 | |
| 22 | # For apps (unbundled) build, replace the typical |
| 23 | # make target artifacts with prebuilts. |
Ying Wang | 3fbe0d4 | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 24 | ifneq ($(TARGET_BUILD_APPS),) |
| 25 | include $(CLEAR_VARS) |
| 26 | LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := \ |
| 27 | $(patsubst $(LOCAL_PATH)/%,%,\ |
| 28 | $(shell find $(LOCAL_PATH)/support -name "*.jar")) |
| 29 | include $(BUILD_MULTI_PREBUILT) |
| 30 | endif # TARGET_BUILD_APPS not empty |
Alan Viverette | ab1e2a4 | 2017-04-21 10:46:02 -0400 | [diff] [blame^] | 31 | |
| 32 | # Also set up explicit prebuilts for use in apps. |
| 33 | include $(CLEAR_VARS) |
| 34 | SUPPORT_LIBS := \ |
| 35 | $(patsubst $(LOCAL_PATH)/%,%,\ |
| 36 | $(shell find $(LOCAL_PATH)/support -name "*.jar")) |
| 37 | LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := \ |
| 38 | $(foreach lib,$(SUPPORT_LIBS),\ |
| 39 | $(basename $(notdir $(lib)))-prebuilt:$(lib)) |
| 40 | SUPPORT_LIBS := |
| 41 | include $(BUILD_MULTI_PREBUILT) |