geopro/scripts/dev-build.ps1

9 lines
587 B
PowerShell
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 本地开发构建脚本(封装 VS MSVC 环境 + VS 自带 cmake构建 build/release
# 用法(在仓库根,用 PowerShell 工具运行): pwsh -File scripts\dev-build.ps1
$ErrorActionPreference = 'Stop'
$vcvars = 'D:\Program Files\Microsoft Visual Studio\18\Community\VC\Auxiliary\Build\vcvars64.bat'
$cmake = 'D:\Program Files\Microsoft Visual Studio\18\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe'
$bdir = 'D:\Git\lanbingtech\geopro\build\release'
cmd /c "`"$vcvars`" >nul 2>&1 && `"$cmake`" --build `"$bdir`""
exit $LASTEXITCODE