mirror of
https://gitee.com/openharmony/xts_dcts
synced 2024-11-27 09:50:32 +00:00
!532 新添加CACHE_ARG参数用来选择xcache作为cache类型
Merge pull request !532 from liangxinyan123/master
This commit is contained in:
commit
1c6ce785e7
8
build.sh
8
build.sh
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user