build.sh: Don't build Cronet for static builds

This commit is contained in:
klzgrad 2022-05-04 23:01:09 +08:00
parent d468e24bbe
commit b4c1492ff0

View File

@ -68,4 +68,9 @@ export DEPOT_TOOLS_WIN_TOOLCHAIN=0
./gn/out/gn gen "$out" --args="$flags $EXTRA_FLAGS" --script-executable=$PYTHON
ninja -C "$out" naive cronet cronet_static
cronet_targets="cronet cronet_static"
if echo "$EXTRA_FLAGS" | grep -q "build_static=true"; then
cronet_targets=
fi
ninja -C "$out" naive $cronet_targets