diff options
author | Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de> | 2016-03-18 10:59:16 +0100 |
---|---|---|
committer | Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de> | 2016-03-18 10:59:16 +0100 |
commit | be9e1314a1cc2e46d59707ea94c6ec8da8546689 (patch) | |
tree | 78ab82a2146c303c0e5d2209cca2c3919fa5c685 /build/core | |
parent | 9c205f060300a98bd58bda75ef0a8ea807153335 (diff) | |
parent | b7c8dec762fa745dd1c06d2a8a007cfec31128b2 (diff) | |
download | vendor_replicant-be9e1314a1cc2e46d59707ea94c6ec8da8546689.zip vendor_replicant-be9e1314a1cc2e46d59707ea94c6ec8da8546689.tar.gz vendor_replicant-be9e1314a1cc2e46d59707ea94c6ec8da8546689.tar.bz2 |
Merge branch 'cm-13.0' of https://github.com/CyanogenMod/android_vendor_cm into replicant-6.0
Diffstat (limited to 'build/core')
-rw-r--r-- | build/core/apicheck.mk | 129 | ||||
-rw-r--r-- | build/core/apicheck_msg_current.txt | 143 | ||||
-rw-r--r-- | build/core/config.mk | 1 |
3 files changed, 144 insertions, 129 deletions
diff --git a/build/core/apicheck.mk b/build/core/apicheck.mk deleted file mode 100644 index b0df939..0000000 --- a/build/core/apicheck.mk +++ /dev/null @@ -1,129 +0,0 @@ -# Copyright (C) 2015 The CyanogenMod Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# -# Rules for running apicheck to confirm that you haven't broken -# api compatibility or added apis illegally. -# - -# skip api check for PDK buid -ifeq (,$(filter true, $(WITHOUT_CHECK_API) $(TARGET_BUILD_PDK))) - -.PHONY: checkapi-cm - -# Run the checkapi rules by default. -droidcore: checkapi-cm - -cm_last_released_sdk_version := $(lastword $(call numerically_sort, \ - $(filter-out current, \ - $(patsubst $(CM_SRC_API_DIR)/%.txt,%, $(wildcard $(CM_SRC_API_DIR)/*.txt)) \ - )\ - )) - -.PHONY: check-cm-public-api -checkapi-cm : check-cm-public-api - -.PHONY: update-cm-api - -# INTERNAL_CM_PLATFORM_API_FILE is the one build by droiddoc. -# Note that since INTERNAL_CM_PLATFORM_API_FILE is the byproduct of api-stubs module, -# (See vendor/cmsdk/Android.mk) -# we need to add api-stubs as additional dependency of the api check. - -# Check that the API we're building hasn't broken the last-released -# SDK version. -$(eval $(call check-api, \ - checkpublicapi-cm-last, \ - $(CM_SRC_API_DIR)/$(cm_last_released_sdk_version).txt, \ - $(INTERNAL_CM_PLATFORM_API_FILE), \ - $(FRAMEWORK_CM_PLATFORM_REMOVED_API_FILE), \ - $(INTERNAL_CM_PLATFORM_REMOVED_API_FILE), \ - cat $(BUILD_SYSTEM)/apicheck_msg_last.txt, \ - check-cm-public-api, \ - $(call doc-timestamp-for, cm-api-stubs) \ - )) - - -# Check that the API we're building hasn't changed from the not-yet-released -# SDK version. -$(eval $(call check-api, \ - checkpublicapi-cm-current, \ - $(FRAMEWORK_CM_PLATFORM_API_FILE), \ - $(INTERNAL_CM_PLATFORM_API_FILE), \ - $(FRAMEWORK_CM_PLATFORM_REMOVED_API_FILE), \ - $(INTERNAL_CM_PLATFORM_REMOVED_API_FILE), \ - cat $(BUILD_SYSTEM)/apicheck_msg_current.txt, \ - check-cm-public-api, \ - $(call doc-timestamp-for, cm-api-stubs) \ - )) - -.PHONY: update-cm-public-api -update-cm-public-api: $(INTERNAL_CM_PLATFORM_API_FILE) | $(ACP) - @echo -e ${CL_GRN}"Copying cm_current.txt"${CL_RST} - $(hide) $(ACP) $(INTERNAL_CM_PLATFORM_API_FILE) $(FRAMEWORK_CM_PLATFORM_API_FILE) - @echo -e ${CL_GRN}"Copying cm_removed.txt"${CL_RST} - $(hide) $(ACP) $(INTERNAL_CM_PLATFORM_REMOVED_API_FILE) $(FRAMEWORK_CM_PLATFORM_REMOVED_API_FILE) - -update-cm-api : update-cm-public-api - -#####################Check System API##################### -.PHONY: check-cm-system-api -checkapi-cm : check-cm-system-api - -# Check that the Cyanogen System API we're building hasn't broken the last-released -# SDK version. -$(eval $(call check-api, \ - checksystemapi-cm-last, \ - $(CM_SRC_SYSTEM_API_DIR)/$(cm_last_released_sdk_version).txt, \ - $(INTERNAL_CM_PLATFORM_SYSTEM_API_FILE), \ - $(FRAMEWORK_CM_PLATFORM_SYSTEM_REMOVED_API_FILE), \ - $(INTERNAL_CM_PLATFORM_SYSTEM_REMOVED_API_FILE), \ - cat $(BUILD_SYSTEM)/apicheck_msg_last.txt, \ - check-cm-system-api, \ - $(call doc-timestamp-for, cm-system-api-stubs) \ - )) - -# Check that the System API we're building hasn't changed from the not-yet-released -# SDK version. -$(eval $(call check-api, \ - checksystemapi-cm-current, \ - $(FRAMEWORK_CM_PLATFORM_SYSTEM_API_FILE), \ - $(INTERNAL_CM_PLATFORM_SYSTEM_API_FILE), \ - $(FRAMEWORK_CM_PLATFORM_SYSTEM_REMOVED_API_FILE), \ - $(INTERNAL_CM_PLATFORM_SYSTEM_REMOVED_API_FILE), \ - cat $(BUILD_SYSTEM)/apicheck_msg_current.txt, \ - check-cm-system-api, \ - $(call doc-timestamp-for, cm-system-api-stubs) \ - )) - -.PHONY: update-cm-system-api -update-cm-api : update-cm-system-api - -update-cm-system-api: $(INTERNAL_PLATFORM_CM_SYSTEM_API_FILE) | $(ACP) - @echo Copying cm_system-current.txt - $(hide) $(ACP) $(INTERNAL_CM_PLATFORM_SYSTEM_API_FILE) $(FRAMEWORK_CM_PLATFORM_SYSTEM_API_FILE) - @echo Copying cm_system-removed.txt - $(hide) $(ACP) $(INTERNAL_CM_PLATFORM_SYSTEM_REMOVED_API_FILE) $(FRAMEWORK_CM_PLATFORM_SYSTEM_REMOVED_API_FILE) - -.PHONY: update-cm-prebuilts-latest-public-api -current_sdk_release_text_file := $(CM_SRC_API_DIR)/$(cm_last_released_sdk_version).txt -current_system_api_release_text_file := $(CM_SRC_SYSTEM_API_DIR)/$(cm_last_released_sdk_version).txt - -update-cm-prebuilts-latest-public-api: $(FRAMEWORK_CM_PLATFORM_API_FILE) | $(ACP) - @echo -e ${CL_GRN}"Publishing cm_current.txt as latest API release"${CL_RST} - $(hide) $(ACP) $(FRAMEWORK_CM_PLATFORM_API_FILE) $(current_sdk_release_text_file) - @echo -e ${CL_GRN}"Publishing cm_current.txt as latest system API release"${CL_RST} - $(hide) $(ACP) $(FRAMEWORK_CM_PLATFORM_SYSTEM_API_FILE) $(current_system_api_release_text_file) - -endif diff --git a/build/core/apicheck_msg_current.txt b/build/core/apicheck_msg_current.txt new file mode 100644 index 0000000..f58858e --- /dev/null +++ b/build/core/apicheck_msg_current.txt @@ -0,0 +1,143 @@ + +****************************** +You have tried to change the API from what has been previously approved. + +To make these errors go away, you have two choices: + 1) You can add "@hide" javadoc comments to the methods, etc. listed in the + errors above. + + 2) You can update current.txt by executing the following command: + make update-cm-api + + ^^^^^^^^^^^^^^^^^^ + CONGRATS YOU EARNED A STINKEYE FROM CID! + + + . `` + `+++++ ;++++' + +++++++ ;++++++' + ++++++++, ++++++++ + +++++++++ :++++++++` + +++++++++ +++++++++` + ++++++++++ +++++++++ + +++++++++ ++++++++++ + +++++++++: +++++++++ + :+++++++++ ;+++++++++ + +++++++++` +++++++++, + ++++++++++ `+++++++++ + +++++++++ ++++++++++ + +++++++++; +++++++++ + ,+++++++++ '+++++++++ + +++++++++. +++++++++, + '+++++++++ .+++++++++ + +++++++++ +++++++++' + +++++++++' +++++++++ + .+++++++++ '+++++++++ + +++++++++, +++++++++. + ;+++++++++ ,+++++++++ + +++++++++ +++++++++; + ++++++++++ .,;;+++++++++++++++++++++++++++++++++;,,. +++++++++ + `+++++++++ ,;++++++++++++++++++++++++++++++++++++++++++++++++++++++++',` ++++++++++ + +++++++++, :++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++;. +++++++++` + ;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++: + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + ,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + ;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + :+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++; + ;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++` + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++` + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + '+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + ,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + `+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++. + +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + ,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++. + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++. + +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++'. ,+++++++++++++++++++++++++++. + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++' .++++++++++++++++++++++++. + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++' `++++++++++++++++++++++. + +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ;++++++++++++++++++++. + +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++' +++++++++++++++++++. + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++; ++++++++++++++++++. + +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++; +++++++++++++++++. + +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++. + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ;+++++++++++++++. + +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++` +++++++++++++++. + +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++. + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++. + ++++++++++++++++++ .,;+++++++++++++++++++++++++++++++++++++++++++++++++++++ .+++++++++++++. + ++++++++++++++++++ .,;++++++++++++++++++++++++++++++++++++++: +++++++++++++. + ++++++++++++++++++ .,+++++++++++++++++++++++++ +++++++++++++. + +++++++++++++++++. +++++++++++++++++++++++++ ,++++++++++++. + +++++++++++++++++ ;++++++++++++++++++++++++ ++++++++++++. + +++++++++++++++++ ,+++++++++++++++++++++++; ++++++++++++. + +++++++++++++++++ .+++++++++++++++++++++++, ++++++++++++. + +++++++++++++++++ .+++++++++++++++++++++++, ++++++++++++. + +++++++++++++++++ .+++++++++++++++++++++++, ++++++++++++. + +++++++++++++++++ :+++++++++++++++++++++++; ++++++++++++. + +++++++++++++++++` +++++++++++++++++++++++++ ++++++++++++. + +++++++++++++++++; +++++++++++++++++++++++++ ++++++++++++. + ++++++++++++++++++ +++++++++++++++++++++++++ ;++++++++++++. + ++++++++++++++++++ ,+++++++++++++++++++++++++ +++++++++++++. + ++++++++++++++++++: ++++++++++++++++++++++++++' +++++++++++++. + +++++++++++++++++++ +++++++++++++++++++++++++++ ;+++++++++++++. + +++++++++++++++++++, ++++++++++++++++++++++++++++, ++++++++++++++. + ++++++++++++++++++++ +++++++++++++++++++++++++++++ ;++++++++++++++. + ++++++++++++++++++++' ++++++++++++++++++++++++++++++' +++++++++++++++. + +++++++++++++++++++++, ++++++++++++++++++++++++++++++++ ++++++++++++++++. + ++++++++++++++++++++++ ;+++++++++++++++++++++++++++++++++ '++++++++++++++++. + +++++++++++++++++++++++ ;+++++++++++++++++++++++++++++++++++ :+++++++++++++++++. + ++++++++++++++++++++++++, '+++++++++++++++++++++++++++++++++++++ ;++++++++++++++++++. + +++++++++++++++++++++++++' ++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++. + +++++++++++++++++++++++++++, '++++++++++++++++++++++++++++++++++++++++++' +++++++++++++++++++++. + +++++++++++++++++++++++++++++: '++++++++++++++++++++++++++++++++++++++++++++++, +++++++++++++++++++++++. + ++++++++++++++++++++++++++++++++;` .++++++++++++++++++++++++++++++++++++++++++++++++++++' ,+++++++++++++++++++++++++. + +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++',..,;+++++++++++++++++++++++++++++. + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++. + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++. + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++. + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + ,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++` + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++;++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + .+++++++++++++++++++++++++++++++++++++++++++++++++++++++: .,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++: :+++++++++++++++++++++++++++++++++++++++++++++++++++++++ + +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++, .++++++++++++++++++++++++++++++++++++++++++++++++++++++' + ;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + '+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + ,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++, + .++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++' + ,+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + .++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++; + ;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++` + :+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++` + ;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++, + .;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++, + ,;+++++++++++++++++++++++++++++++++++++++++++++++++++++++:. + ..,;;+++++++++++++++++++++++++++++;:,. + + To submit the revised current.txt to the main CyanogenMod repository, + you will need approval. +******************************
\ No newline at end of file diff --git a/build/core/config.mk b/build/core/config.mk index 57bb514..c6fb529 100644 --- a/build/core/config.mk +++ b/build/core/config.mk @@ -22,6 +22,7 @@ FRAMEWORK_CM_PLATFORM_API_FILE := $(TOPDIR)vendor/cmsdk/api/cm_current.txt FRAMEWORK_CM_PLATFORM_REMOVED_API_FILE := $(TOPDIR)vendor/cmsdk/api/cm_removed.txt FRAMEWORK_CM_PLATFORM_SYSTEM_API_FILE := $(TOPDIR)vendor/cmsdk/system-api/cm_system-current.txt FRAMEWORK_CM_PLATFORM_SYSTEM_REMOVED_API_FILE := $(TOPDIR)vendor/cmsdk/system-api/cm_system-removed.txt +FRAMEWORK_CM_API_NEEDS_UPDATE_TEXT := $(TOPDIR)vendor/cm/build/core/apicheck_msg_current.txt BUILD_MAVEN_PREBUILT := $(TOP)/vendor/replicant/build/core/maven_artifact.mk PUBLISH_MAVEN_PREBUILT := $(TOP)/vendor/replicant/build/core/maven_artifact_publish.mk |