1#/bin/bash 2 3# Copyright 2024, The Android Open Source Project 4# 5# Licensed under the Apache License, Version 2.0 (the "License"); 6# you may not use this file except in compliance with the License. 7# You may obtain a copy of the License at 8# 9# http://www.apache.org/licenses/LICENSE-2.0 10# 11# Unless required by applicable law or agreed to in writing, software 12# distributed under the License is distributed on an "AS IS" BASIS, 13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14# See the License for the specific language governing permissions and 15# limitations under the License. 16 17set -x 18 19source build/make/shell_utils.sh 20 21export TARGET_PRODUCT=aosp_arm64 22export TARGET_RELEASE=trunk_staging 23export TARGET_BUILD_VARIANT=eng 24 25import_build_vars \ 26 OUT_DIR \ 27 DIST_DIR \ 28 HOST_OUT_EXECUTABLES \ 29 || exit $? 30 31TARGETS=( 32 all_teams 33 source_tree_size 34 release_config_metadata 35) 36 37# Build modules 38build/soong/bin/m dist ${TARGETS[@]} || exit $? 39 40# List all source files in the tree 41( \ 42 $HOST_OUT_EXECUTABLES/source_tree_size -o $DIST_DIR/all_source_tree_files.pb \ 43 && gzip -fn $DIST_DIR/all_source_tree_files.pb \ 44) || exit $? 45