Files
platform-external-webrtc/android_tools/generate_android_bp.sh
Jorge E. Moreira b33211a55a Make it easier to add new build architectures
by making the build file generator script (mostly) architecture independent.

Bug: 269761242
Test: build x64 and arm64 locally
Change-Id: I76ea4bc0ba5e8e5c152b93cb1ad7a385c796adae
2023-02-23 16:55:25 -08:00

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"