!532 新添加CACHE_ARG参数用来选择xcache作为cache类型

Merge pull request !532 from liangxinyan123/master
This commit is contained in:
openharmony_ci 2024-01-04 06:09:05 +00:00 committed by Gitee
commit 1c6ce785e7
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -78,6 +78,8 @@ parse_cmdline()
;;
upload_api_info) UPLOAD_API_INFO=$(echo $PARAM |tr [a-z] [A-Z])
;;
cache_type) CACHE_TYPE="$PARAM"
;;
*) usage
break;;
esac
@ -107,7 +109,11 @@ do_make()
MUSL_ARGS="--gn-args use_musl=false --gn-args use_custom_libcxx=true --gn-args use_custom_clang=true"
fi
fi
./build.sh --product-name $PRODUCT_NAME --gn-args build_xts=true --build-target $BUILD_TARGET --build-target "deploy_testtools" --gn-args is_standard_system=true $MUSL_ARGS --target-cpu $TARGET_ARCH --get-warning-list=false --stat-ccache=true --compute-overlap-rate=false --deps-guard=false --generate-ninja-trace=false --gn-args skip_generate_module_list_file=true
CACHE_ARG=""
if [ "$CACHE_TYPE" = "xcache" ]; then
CACHE_ARG="--ccache false --xcache true"
fi
./build.sh --product-name $PRODUCT_NAME --gn-args build_xts=true --build-target $BUILD_TARGET --build-target "deploy_testtools" --gn-args is_standard_system=true $MUSL_ARGS --target-cpu $TARGET_ARCH --get-warning-list=false --stat-ccache=true --compute-overlap-rate=false --deps-guard=false --generate-ninja-trace=false $CACHE_ARG --gn-args skip_generate_module_list_file=true
else
if [ "$BUILD_TARGET" = "dcts dcts_ivi dcts_intellitv dcts_wearable" ]; then
./build.sh --product-name $PRODUCT_NAME --gn-args build_xts=true --build-target "dcts" --build-target "dcts_ivi" --build-target "dcts_intellitv" --build-target "dcts_wearable" --build-target "deploy_testtools"