Merge "Make check-flagged-apis executable" into main am: 6916e64027
Original change: https://android-review.googlesource.com/c/platform/build/+/3057422 Change-Id: I7204a68f32a7e83dfab2ec78daffc13ed37df4ee Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
9
tools/check-flagged-apis/check-flagged-apis.sh
Normal file → Executable file
9
tools/check-flagged-apis/check-flagged-apis.sh
Normal file → Executable file
@@ -1,3 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
# Copyright (C) 2024 The Android Open Source Project
|
# Copyright (C) 2024 The Android Open Source Project
|
||||||
#
|
#
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
@@ -15,6 +17,13 @@
|
|||||||
# Run check-flagged-apis for public APIs and the three @SystemApi flavours
|
# Run check-flagged-apis for public APIs and the three @SystemApi flavours
|
||||||
# Usage: lunch <your-target> && source <this script>
|
# Usage: lunch <your-target> && source <this script>
|
||||||
|
|
||||||
|
source $(cd $(dirname $BASH_SOURCE) &> /dev/null && pwd)/../../shell_utils.sh
|
||||||
|
require_top
|
||||||
|
|
||||||
|
function m() {
|
||||||
|
$(gettop)/build/soong/soong_ui.bash --build-mode --all-modules --dir="$(pwd)" "$@"
|
||||||
|
}
|
||||||
|
|
||||||
function build() {
|
function build() {
|
||||||
m sdk dist && m \
|
m sdk dist && m \
|
||||||
check-flagged-apis \
|
check-flagged-apis \
|
||||||
|
Reference in New Issue
Block a user