代码拉取完成,页面将自动刷新
同步操作将从 sinojelly/mockcpp 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# This is a Windows PowerShell script
# On windows 7, open cmd.exe, input powershell, hit enter, then you can run this script.
# If you use powershell the first time, excute this cmd first: set-executionpolicy remotesigned
# Build mockcpp and it's tests, and at last run all tests.
# $args[0] --- [optional] compiler index in table $global:SUPPORTED_COMPILER in tools\build_functions.ps1
# $args[1] --- [optional] if it is "test" then only run tests without compiling.
$global:USER_CHOICE=$null
$global:SUPPORTED_COMPILER=$null
. "$PSScriptRoot\tools\build_functions.ps1"
# If no input parameter
if (-not $args[0]) {
# Detect the compiler
cmake -B build tools
ReadUserChoice
} else {
$global:USER_CHOICE=$args[0]
}
$global:MY_OS_NAME=$null
$global:MY_CXX_COMPILER_NAME=$null
$global:MY_CXX_COMPILER_MAJOR_VERSION=$null
$global:CMAKE_COMPILER_PARAM=$null
$global:MAKE_BUILD_TYPE=$null
InitEnviroment $global:SUPPORTED_COMPILER[$global:USER_CHOICE].name $global:SUPPORTED_COMPILER[$global:USER_CHOICE].major_ver $global:SUPPORTED_COMPILER[$global:USER_CHOICE].cmake_param
$BUILD_DIR="build_$global:MY_CXX_COMPILER_NAME"
$OS_COMPILER="$global:MY_OS_NAME\$global:MY_CXX_COMPILER_NAME\$global:MY_CXX_COMPILER_MAJOR_VERSION"
echo "OS_COMPILER in Powershell : $OS_COMPILER"
if (-not ($args[1] -eq "test")) {
Invoke-Expression "cmake $global:CMAKE_COMPILER_PARAM -S . -B $BUILD_DIR/mockcpp"
Invoke-Expression "cmake $global:CMAKE_COMPILER_PARAM -S tests/3rdparty/testngpp -B $BUILD_DIR/mockcpp_testngpp"
Invoke-Expression "cmake $global:CMAKE_COMPILER_PARAM -S tests -B $BUILD_DIR/mockcpp_tests"
CompileProject $global:MY_CXX_COMPILER_NAME $BUILD_DIR/mockcpp
CompileProject $global:MY_CXX_COMPILER_NAME $BUILD_DIR/mockcpp_testngpp
CompileProject $global:MY_CXX_COMPILER_NAME $BUILD_DIR/mockcpp_tests
}
RunTests $BUILD_DIR mockcpp_tests $global:MAKE_BUILD_TYPE mockcpp_testngpp
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。