1#!/bin/bash 2 3# This script is expected to run after gen_android_bp is modified. 4# 5# ./update_result.sh 6# 7# TARGETS contains targets which are supported by gen_android_bp and 8# this script generates Android.bp.swp from TARGETS. 9# This makes it easy to realize unintended impact/degression on 10# previously supported targets. 11 12set -eux 13 14BASEDIR=$(dirname "$0") 15# Run the licensing script to update all the METADATA / LICENSE files. 16python3 $BASEDIR/../license/create_android_metadata_license.py && \ 17python3 $BASEDIR/gen_android_bp.py \ 18 --desc $BASEDIR/desc_x64.json \ 19 --desc $BASEDIR/desc_x86.json \ 20 --desc $BASEDIR/desc_arm.json \ 21 --desc $BASEDIR/desc_arm64.json \ 22 --desc $BASEDIR/desc_riscv64.json \ 23 --out $BASEDIR/Android.bp \ 24 --repo_root "$1" \ 25 --build_script_output $BASEDIR/build_script_outputs.json 26