Android.mk revision 5be59b3e337218910fd58d284ce18ca8d3cfb6ff
1# Copyright (C) 2014 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)
16# Don't include in unbundled build.
17ifeq ($(TARGET_BUILD_APPS),)
18
19SUPPORT_API_CHECK := $(LOCAL_PATH)/apicheck.mk
20api_check_current_msg_file := $(LOCAL_PATH)/apicheck_msg_current.txt
21api_check_last_msg_file := $(LOCAL_PATH)/apicheck_msg_last.txt
22
23.PHONY: update-support-api
24.PHONY: check-support-api
25
26.PHONY: support-gradle-archive
27support-gradle-archive: PRIVATE_LOCAL_PATH := $(LOCAL_PATH)
28support-gradle-archive:
29	$(PRIVATE_LOCAL_PATH)/gradlew -p $(PRIVATE_LOCAL_PATH) createArchive
30
31# Run the check-support-api task on a SDK build
32sdk: check-support-api
33# Run the support-gradle-archive task on a SDK build
34sdk: support-gradle-archive
35
36# Build all support libraries
37include $(call all-makefiles-under,$(LOCAL_PATH))
38
39# Clear out variables
40SUPPORT_API_CHECK :=
41api_check_current_msg_file :=
42api_check_last_msg_file :=
43
44endif
45