2 Star 1 Fork 0

user_8034861 / mockcpp_godsme

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
build_install.ps1 1.29 KB
一键复制 编辑 原始数据 按行查看 历史
hanbingtao 提交于 2012-06-16 09:59 . remove temporary file
# 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
C++
1
https://gitee.com/oldrivers/mockcpp_godsme.git
git@gitee.com:oldrivers/mockcpp_godsme.git
oldrivers
mockcpp_godsme
mockcpp_godsme
master

搜索帮助