diff options
-rwxr-xr-x[-rw-r--r--] | tools/check-flagged-apis/check-flagged-apis.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/check-flagged-apis/check-flagged-apis.sh b/tools/check-flagged-apis/check-flagged-apis.sh index ae671d1d5c..cd37a2d52e 100644..100755 --- a/tools/check-flagged-apis/check-flagged-apis.sh +++ b/tools/check-flagged-apis/check-flagged-apis.sh @@ -1,3 +1,5 @@ +#!/bin/bash + # Copyright (C) 2024 The Android Open Source Project # # 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 # 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() { m sdk dist && m \ check-flagged-apis \ |