java_sdk_library: Allow api dir to be specified

For modules that provide API surfaces in addition to the standard
current, test and system it is useful to be able to specify the
directory containing the api's .txt files to make it easy to create
multiple API surfaces from within the same Android.bp file. e.g. This
is useful for conscrypt, icu and libcore to manage their intra core
and core platform APIs.

Bug: 145998881
Test: m checkbuild
Change-Id: I753631d9b6993fbf30019fef5c052a9429e519de
This commit is contained in:
Paul Duffin
2019-12-30 17:23:46 +00:00
parent 7a586d3a59
commit 749f98fb64
2 changed files with 15 additions and 5 deletions

View File

@@ -19,7 +19,7 @@ if [[ -z "$1" ]]; then
exit 1
fi
api_dir=$1/api
api_dir=$1
shift
mkdir -p "$api_dir"