extract_utils: implement LOCAL_MODULE_RELATIVE_PATH
Change-Id: Ia97633652ff9647a6e82013b208097be5c5575a9
This commit is contained in:
parent
54b5d5e1e5
commit
15f226c23a
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue