For x86, x86_64, arm and arm64 Bug: 261600888 Test: build and run cuttlefish x86, x86_64 and arm64 Change-Id: I3ac4dad1ac9ec83b0e626e64715df450e8809b82
21 lines
440 B
Bash
Executable File
21 lines
440 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}"/project_x64.json \
|
|
"${DIR}"/project_x86.json \
|
|
"${DIR}"/project_arm64.json \
|
|
"${DIR}"/project_arm.json \
|
|
>"${DIR}"/../Android.bp
|
|
|
|
bpfmt -w "${DIR}"/../Android.bp
|
|
|