Build kzip for Go files in build/blueprint directory.
Bug: 137798757 Test: manual Change-Id: If953425c80c60a64ebd6d50dddbac858ef091275
This commit is contained in:
parent
1be2d48005
commit
facb360e49
|
@ -22,13 +22,14 @@ declare -r out="${OUT_DIR:-out}"
|
||||||
build/soong/soong_ui.bash --build-mode --all-modules --dir=$PWD -k merge_zips xref_cxx xref_java
|
build/soong/soong_ui.bash --build-mode --all-modules --dir=$PWD -k merge_zips xref_cxx xref_java
|
||||||
#Build extraction file for Go files in build/soong directory.
|
#Build extraction file for Go files in build/soong directory.
|
||||||
declare -r abspath_out=$(realpath "${out}")
|
declare -r abspath_out=$(realpath "${out}")
|
||||||
(cd build/soong;
|
declare -r go_extractor=$(realpath prebuilts/build-tools/linux-x86/bin/go_extractor)
|
||||||
../../prebuilts/build-tools/linux-x86/bin/go_extractor \
|
declare -r go_root=$(realpath prebuilts/go/linux-x86)
|
||||||
--goroot="${PWD}/../../prebuilts/go/linux-x86" \
|
for dir in blueprint soong; do
|
||||||
--rules=vnames.go.json \
|
(cd "build/$dir";
|
||||||
--canonicalize_package_corpus \
|
"$go_extractor" --goroot="$go_root" --rules=vnames.go.json --canonicalize_package_corpus \
|
||||||
--output "${abspath_out}/soong/all.go.kzip" \
|
--output "${abspath_out}/soong/build_${dir}.go.kzip" ./...
|
||||||
./... )
|
)
|
||||||
|
done
|
||||||
|
|
||||||
declare -r kzip_count=$(find "$out" -name '*.kzip' | wc -l)
|
declare -r kzip_count=$(find "$out" -name '*.kzip' | wc -l)
|
||||||
(($kzip_count>100000)) || { printf "Too few kzip files were generated: %d\n" $kzip_count; exit 1; }
|
(($kzip_count>100000)) || { printf "Too few kzip files were generated: %d\n" $kzip_count; exit 1; }
|
||||||
|
|
Loading…
Reference in New Issue