Generate build files
For x86, x86_64, arm and arm64 Bug: 261600888 Test: build and run cuttlefish x86, x86_64 and arm64 Change-Id: I3ac4dad1ac9ec83b0e626e64715df450e8809b82
This commit is contained in:
@ -1,18 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -o errexit
|
||||
set -o xtrace
|
||||
|
||||
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)
|
||||
|
||||
"${DIR}"/generate_bp.py "${DIR}"/selected_targets.json | \
|
||||
grep -v 'PACKAGE_VERSION' | \
|
||||
grep -v 'PACKAGE_STRING' >"${DIR}"/../Android.bp
|
||||
|
||||
# The alsa device causes a double lock on a mutex, don't use it
|
||||
sed -i -e 's/WEBRTC_ENABLE_LINUX_ALSA/WEBRTC_DUMMY_FILE_DEVICES/g' "${DIR}/../Android.bp"
|
||||
|
||||
source "${DIR}"/../../../build/envsetup.sh
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user