aboutsummaryrefslogtreecommitdiffhomepage
path: root/platform_tools/android/bin/android_make
blob: cac0cc93c629bd1cf3fc7bf650ba316524053d4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash

# Fail-fast if anything in the script fails.
set -e

# Remove any existing .android_config file before running android_setup. If we
# did not remove this now then we would build for whatever device type was
# listed in the .android_config instead of the default device type.
rm -f .android_config

SCRIPT_DIR=$(dirname "${BASH_SOURCE[0]}")
source $SCRIPT_DIR/utils/android_setup.sh

SKIA_SRC_DIR=$(cd "${SCRIPT_DIR}/../../.."; pwd)
echo $GN_ARGS
gn gen $SKIA_OUT --args="${GN_ARGS}"
ninja -C $SKIA_OUT ${APP_ARGS[@]}

# Write the device id into the .android_config file.  This tells
# android_run_skia the last build we completed.
echo $DEVICE_ID > .android_config