android_external_mesa3d/meson_to_hermetic/build-android-turnip.sh
= c6cc3b175f meson-to-hermetic: Rename meson-to-hermetic to -> meson_to_hermetic
Python packages does not allow for the use of hyphen as it's a reserved token.
This change needs to be made to be imported by unit-tests in the future

This change will require a new venv to be generated locally:
`$ rm -rf venv`
`$ ./setup-venv.sh`
`$ source venv/bin/activate`

Test: Run meson_to_hermetic/build-android/fuchsia-turnip.sh
Bug: 360173803
Change-Id: Ie6fab4689ef5fc985e15747b0c06bfae662c387c
2024-08-26 22:13:07 +00:00

35 lines
700 B
Bash
Executable file

#!/bin/bash
set -e
if [ ! -f meson_options.txt ]; then
echo "Run this script from the repo root"
exit 1
fi
BIN_DIR=$(dirname "$0")
ROOT_DIR=$BIN_DIR/../../..
PYTHON_BUILD=generate_android_build.py
REGEN=0
if [ "$1" == "-regen" ]; then
REGEN=1
fi
if [ ! -f $PYTHON_BUILD ]; then
REGEN=1
fi
if [ "$REGEN" == "1" ]; then
time python3 $BIN_DIR/generate_python_build.py
else
echo "Python build found; use -regen to regenerate it"
fi
# Always generate Android.bp because it's fast
PYTHONPATH=$BIN_DIR python3 generate_android_build.py --config=meson_to_hermetic/aosp.toml
source $ROOT_DIR/build/envsetup.sh
lunch aosp_trout_arm64-trunk_staging-userdebug
m vulkan_freedreno