by making the build file generator script (mostly) architecture independent. Bug: 269761242 Test: build x64 and arm64 locally Change-Id: I76ea4bc0ba5e8e5c152b93cb1ad7a385c796adae
16 lines
291 B
Bash
Executable File
16 lines
291 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -o errexit
|
|
|
|
if [[ "${ANDROID_BUILD_TOP}" == "" ]]; then
|
|
echo "Run source build/envsetup.sh && lunch to be able to format Android.bp"
|
|
exit 2
|
|
fi
|
|
|
|
DIR=$(dirname $0)
|
|
|
|
PYTHONHASHSEED=31 "${DIR}"/generate_bp.py "$DIR" >"${DIR}/../Android.bp"
|
|
|
|
bpfmt -w "${DIR}/../Android.bp"
|
|
|