代码拉取完成,页面将自动刷新
# 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.
# You can change this testngpp install dir by yourself, it must be an absolute path.
#$INSTALL_DIR="D:\Projects\Google\cpp-ut-project\cpp-ut-project\tools\mockcpp"
$INSTALL_DIR="D:\Projects\Google\cpp-project\cpp-project\tools_pdb\mockcpp"
# add vcbuild path and cmake path
# It's better to add to your computer's path environment variable, than to modify $env:path below.
$env:path=$env:path+";C:\Program Files\Microsoft Visual Studio 9.0\VC\vcpackages"
$env:path=$env:path+";D:\Tools\CMD\cmake-2.8.1-win32-x86\bin"
# specify the Visual Studio Version, not set to use default
$VC_VER="-G `"Visual Studio 9 2008`""
# build Debug only
$env:VCBUILD_DEFAULT_CFG="Debug|Win32"
function build($build_dir, $src_dir) {
if (!(test-path $build_dir)) { mkdir $build_dir }
cd $build_dir
Invoke-Expression "cmake -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR $src_dir $VC_VER"
ls *.sln -name | vcbuild
vcbuild INSTALL.vcproj
}
build ..\..\build_mockcpp_to_install ..\mockcpp\mockcpp
cd ..\mockcpp\mockcpp
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。