2 Star 8 Fork 0

tencentcloud/tencentcloud-sdk-cpp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build32.ps1 839 Bytes
一键复制 编辑 原始数据 按行查看 历史
sesky4 提交于 2023-06-27 19:08 +08:00 . doc: support win32 build (#27)
function BuildSDK([string]$arg0, [string]$arg1, [string]$arg2) {
Remove-Item sdk_build -Force -Recurse -ErrorAction SilentlyContinue
New-Item sdk_build -ItemType Directory | Out-Null
cmake -G $arg2 -A Win32 -B sdk_build $arg0 $arg1
Write-Host 'Building sdk' -ForegroundColor Yellow
cmake --build sdk_build
}
function InstallSDK {
if (-Not(Test-Path -Path sdk_build)) {
Write-Host 'Project has not been built, run ".\build.ps1 build" first' -ForegroundColor Yellow
return
}
Write-Host 'Installing sdk, require Administrator privilege' -ForegroundColor Yellow
cmake --build sdk_build --target install
}
if ($args[0] -eq "build") {
BuildSDK $args[1] $args[2] $args[3]
}
elseif ($args[0] -eq "install") {
InstallSDK
}
else {
Write-Host 'Nothing to do' -ForegroundColor Yellow
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tencentcloud/tencentcloud-sdk-cpp.git
git@gitee.com:tencentcloud/tencentcloud-sdk-cpp.git
tencentcloud
tencentcloud-sdk-cpp
tencentcloud-sdk-cpp
master

搜索帮助