extract_utils: implement LOCAL_MODULE_RELATIVE_PATH

Change-Id: Ia97633652ff9647a6e82013b208097be5c5575a9
This commit is contained in:
M1cha 2017-01-04 09:00:11 +01:00 committed by Rashed Abdel-Tawab
parent 54b5d5e1e5
commit 15f226c23a
No known key found for this signature in database
GPG key ID: 832155B084F30453

View file

@ -221,6 +221,7 @@ function write_packages() {
ARGS=$(target_args "$P")
BASENAME=$(basename "$FILE")
DIRNAME=$(dirname "$FILE")
EXTENSION=${BASENAME##*.}
PKGNAME=${BASENAME%.*}
@ -301,6 +302,11 @@ function write_packages() {
if [ ! -z "$EXTENSION" ]; then
printf 'LOCAL_MODULE_SUFFIX := .%s\n' "$EXTENSION"
fi
if [ "$CLASS" = "SHARED_LIBRARIES" ] || [ "$CLASS" = "EXECUTABLES" ]; then
if [ "$DIRNAME" != "." ]; then
printf 'LOCAL_MODULE_RELATIVE_PATH := %s\n' "$DIRNAME"
fi
fi
if [ "$EXTRA" = "priv-app" ]; then
printf 'LOCAL_PRIVILEGED_MODULE := true\n'
fi