Lines Matching +full:ninja +full:- +full:bin
1 #!/bin/bash -e
3 # This script is similar to "m" but builds in --soong-only mode, and handles
7 # --soong-only bypasses the kati step and hence the make logic that e.g. doesn't
11 # device architectures (artifacts get installed in $OUT_DIR/soong/mainline-sdks
12 # - cf PathForMainlineSdksInstall in android/paths.go).
15 # --soong-only' invocation. For now it is still necessary to set up
18 if [ ! -e build/soong/soong_ui.bash ]; then
23 export OUT_DIR=${OUT_DIR:-out}
25 if [ -e ${OUT_DIR}/soong/.soong.kati_enabled ]; then
26 # If ${OUT_DIR} has been created without --skip-make, Soong will create an
27 # ${OUT_DIR}/soong/build.ninja that leaves out many targets which are
29 # "m --skip-make" below. We therefore default to a different out dir
32 echo "Avoiding in-make OUT_DIR '${OUT_DIR}' - building in '${AML_OUT_DIR}' instead"
36 mkdir -p ${OUT_DIR}/soong
38 # The --dumpvars-mode invocation will run Soong in normal make mode where it
42 --dumpvars-mode --vars=BUILD_NUMBER)"
49 echo -n ${BUILD_NUMBER} > ${OUT_DIR}/soong/build_number.txt
51 build/soong/soong_ui.bash --make-mode --soong-only "$@"