Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Android/build/build/make/ci/   (Android Betriebssystem Version 17©)  Datei vom 26.5.2026 mit Größe 2 kB image not shown  

Quelle  build_metadata   Sprache: unbekannt

 
Spracherkennung für: vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

#/bin/bash

# Copyright 2024, The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

set -x

source build/make/shell_utils.sh

# If the environment does not already specify TARGET_PRODUCT, TARGET_RELEASE,
# and TARGET_BUILD_VARIANT, set them here.
: ${TARGET_PRODUCT:=aosp_arm64}
: ${TARGET_RELEASE:=trunk_staging}
: ${TARGET_BUILD_VARIANT:=eng}

export TARGET_PRODUCT TARGET_RELEASE TARGET_BUILD_VARIANT

import_build_vars \
        OUT_DIR \
        DIST_DIR \
        HOST_OUT_EXECUTABLES \
    || exit $?

TARGETS=(
    all_teams
    source_tree_size
    release_config_metadata
)

# Build modules
build/soong/bin/m dist ${TARGETS[@]} || exit $?

# Generate all of the release configs for all of the named products.
(
  PATH=$(gettop)/build/soong/bin:${PATH}
  # Allow file location override.
  : ${BROKEN_PRODUCTS_FILE:=vendor/google/build/broken_products_allowlist.txt}
  : ${BROKEN_PROJECTS_FILE:=vendor/google/build/broken_projects_rw_dirs.txt}
  args=(--dist --intermediate-dir=${OUT_DIR}/soong/.intermediates/build/soong/scripts/product-configs --json --textproto)
  if [[ -r ${BROKEN_PRODUCTS_FILE} ]]; then
      args+=(--skip-file "${BROKEN_PRODUCTS_FILE}")
  fi
  if [[ -r ${BROKEN_PROJECTS_FILE} ]]; then
      args+=(--rw-dirs-file "${BROKEN_PROJECTS_FILE}")
  fi
  # Use `TARGET_RELEASE=trunk_staging` when running product configs, but allow
  # it to be overridden separately from the rest of the build.
  TARGET_RELEASE=${RELEASE_CONFIGS_RELEASE:-trunk_staging} ./build/soong/scripts/product-configs "${args[@]}"
) || exit $?

# List all source files in the tree
(
    $HOST_OUT_EXECUTABLES/source_tree_size -o $DIST_DIR/all_source_tree_files.pb \
        && gzip -fn $DIST_DIR/all_source_tree_files.pb \
) || exit $?

[Dauer der Verarbeitung: 0.14 Sekunden, vorverarbeitet 2026-06-28]