mirror of
https://github.com/fanlumaster/googlepinyinime-rev.git
synced 2025-07-18 17:08:00 +08:00
[env]: Change hard-code settings to be generated by py
This commit is contained in:
@ -31,10 +31,11 @@ if (-not (Test-Path $buildFolderPath)) {
|
||||
Write-Host "build folder created."
|
||||
}
|
||||
|
||||
cmake -G "Visual Studio 17 2022" -A x64 -S . -B ./build/
|
||||
# cmake -G -A x64 -DCMAKE_TOOLCHAIN_FILE=C:/Users/SonnyCalcr/scoop/apps/vcpkg/current/scripts/buildsystems/vcpkg.cmake -S . -B ./build/
|
||||
cmake --preset=default
|
||||
|
||||
if ($LASTEXITCODE -eq 0) {
|
||||
cmake --build ./build/ --config DEBUG
|
||||
cmake --build build
|
||||
if ($LASTEXITCODE -eq 0) {
|
||||
$exePath = getExePathFromCMakeLists
|
||||
Write-Host "start running as follows..."
|
||||
@ -42,4 +43,3 @@ if ($LASTEXITCODE -eq 0) {
|
||||
Invoke-Expression $exePath
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user