summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPete Gillin <peteg@google.com>2020-06-15 08:36:22 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-06-15 08:36:22 +0000
commita71da3da076bd3343f6cf303569bfee09b23d51d (patch)
tree17976eefb1a4eaf3ca677a8382a00b9c4545b6ce
parentfaa13ba30d3ecaaf56b7c3b0fd68658a4eea090e (diff)
parentcd7215e3556c1fec6dc668c5c8fdd3a52836e011 (diff)
downloadcurrysrc-a71da3da076bd3343f6cf303569bfee09b23d51d.tar.gz
Update currysrc to support stable core/platform API. am: 7074dfcc06 am: 6a4ae9b82c am: cd7215e355
Original change: https://android-review.googlesource.com/c/platform/tools/currysrc/+/1331085 Change-Id: I0574fad39bc25823ceb562f4ef497b6bb3de1ffb
-rw-r--r--scripts/repackage-common.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/repackage-common.sh b/scripts/repackage-common.sh
index 5f1e058..dc4b4e7 100644
--- a/scripts/repackage-common.sh
+++ b/scripts/repackage-common.sh
@@ -105,6 +105,7 @@ build/soong/soong_ui.bash --make-mode currysrc
DEFAULT_CONSTRUCTORS_FILE=${PROJECT_DIR}/srcgen/default-constructors.txt
CORE_PLATFORM_API_FILE=${PROJECT_DIR}/srcgen/core-platform-api.txt
+STABLE_CORE_PLATFORM_API_FILE=${PROJECT_DIR}/srcgen/stable-core-platform-api.txt
INTRA_CORE_API_FILE=${PROJECT_DIR}/srcgen/intra-core-api.txt
UNSUPPORTED_APP_USAGE_FILE=${PROJECT_DIR}/srcgen/unsupported-app-usage.json
@@ -130,6 +131,12 @@ if [[ -f "${CORE_PLATFORM_API_FILE}" ]]; then
SEP=" "
fi
+if [[ -f "${STABLE_CORE_PLATFORM_API_FILE}" ]]; then
+ echo "Adding CorePlatformApi(status=STABLE) annotations from ${STABLE_CORE_PLATFORM_API_FILE}"
+ REPACKAGE_ARGS="${REPACKAGE_ARGS}${SEP}--stable-core-platform-api-file ${STABLE_CORE_PLATFORM_API_FILE}"
+ SEP=" "
+fi
+
if [[ -f "${INTRA_CORE_API_FILE}" ]]; then
echo "Adding IntraCoreApi annotations from ${INTRA_CORE_API_FILE}"
REPACKAGE_ARGS="${REPACKAGE_ARGS}${SEP}--intra-core-api-file ${INTRA_CORE_API_FILE}"
@@ -217,6 +224,12 @@ if [[ -f "${CORE_PLATFORM_API_FILE}" ]]; then
"CorePlatformApi annotations were not added at the following locations from ${CORE_PLATFORM_API_FILE}:"
fi
+if [[ -f "${STABLE_CORE_PLATFORM_API_FILE}" ]]; then
+ # Check to ensure that all the requested annotations were added.
+ checkChangeLog <(sort -u "${STABLE_CORE_PLATFORM_API_FILE}" | grep -v '^#') "@libcore.api.CorePlatformApi" \
+ "CorePlatformApi annotations were not added at the following locations from ${STABLE_CORE_PLATFORM_API_FILE}:"
+fi
+
if [[ -f "${INTRA_CORE_API_FILE}" ]]; then
# Check to ensure that all the requested annotations were added.
checkChangeLog <(sort -u "${INTRA_CORE_API_FILE}" | grep -v '^#') "@libcore.api.IntraCoreApi" \