Joe Onorato | e0d520f | 2024-12-09 09:34:18 -0800 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | # Copyright (C) 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 | |
| 17 | # Get the value of build variables. The values are printed in a format suitable |
| 18 | # for use in the import_build_vars function in build/make/shell_utils.sh |
| 19 | # |
| 20 | # For absolute variables, prefix the variable name with a '/' |
| 21 | |
| 22 | # Common script utilities |
| 23 | source $(cd $(dirname $BASH_SOURCE) &> /dev/null && pwd)/../../make/shell_utils.sh |
| 24 | |
| 25 | require_top |
| 26 | |
| 27 | $TOP/build/soong/soong_ui.bash --dumpvars-mode \ |
| 28 | --vars="$(printf '%s\n' "$@" | grep -v '^/')" \ |
| 29 | --abs-vars="$(printf '%s\n' "$@" | grep '^/' | sed 's:^/::')" \ |
| 30 | --var-prefix= \ |
| 31 | --abs-var-prefix= |
| 32 | |
| 33 | exit $? |