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
35 lines
700 B
Bash
Executable file
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
|