summaryrefslogtreecommitdiff
path: root/android/tools/gn2bp/update_results.sh
blob: 9dccf42a017410da26c47a409a9499b4e360f305 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

# This script is expected to run after gen_android_bp is modified.
#
#   ./update_result.sh
#
# TARGETS contains targets which are supported by gen_android_bp and
# this script generates Android.bp.swp from TARGETS.
# This makes it easy to realize unintended impact/degression on
# previously supported targets.

set -eux

BASEDIR=$(dirname "$0")
$BASEDIR/gen_android_bp \
    --desc $BASEDIR/desc_x64.json \
    --desc $BASEDIR/desc_x86.json \
    --desc $BASEDIR/desc_arm.json \
    --desc $BASEDIR/desc_arm64.json \
    --desc $BASEDIR/desc_riscv64.json \
    --out $BASEDIR/Android.bp