mirror of
https://github.com/Ed94/gencpp.git
synced 2025-06-14 18:51:47 -07:00
Fixes from latest refactor of toktype enum.
This commit is contained in:
@ -52,10 +52,12 @@ Push-location $path_gen
|
||||
& $gencpp
|
||||
|
||||
# Format generated files
|
||||
$path_clang_format = Join-Path $path_scripts .clang-format
|
||||
|
||||
Write-Host `nBeginning format...
|
||||
$formatParams = @(
|
||||
'-i' # In-place
|
||||
'-style=file' # Search for a .clang-format file in the parent directory of the source file.
|
||||
"-style=file:$path_clang_format" # Search for a .clang-format file in the parent directory of the source file.
|
||||
'-verbose'
|
||||
)
|
||||
|
||||
|
16
scripts/msvc/build_msvc.ps1
Normal file
16
scripts/msvc/build_msvc.ps1
Normal file
@ -0,0 +1,16 @@
|
||||
cls
|
||||
|
||||
if ( -not( Test-Path $path_build ) ) {
|
||||
New-Item -ItemType Directory -Path $path_build | Out-Null
|
||||
}
|
||||
if ( -not( Test-Path $path_build_interm ) ) {
|
||||
New-Item -ItemType Directory -Path $path_build_interm | Out-Null
|
||||
}
|
||||
|
||||
$path_root = git rev-parse --show-toplevel
|
||||
$path_build = Join-Path $path_root build
|
||||
$path_gen = Join-Path $path_test gen
|
||||
$path_gen_build = Join-Path $path_gen build
|
||||
$path_scripts = Join-Path $path_root scripts
|
||||
$path_test = Join-Path $path_root test
|
||||
$path_test_build = Join-Path $path_test build
|
26
scripts/msvc/devshell.ps1
Normal file
26
scripts/msvc/devshell.ps1
Normal file
@ -0,0 +1,26 @@
|
||||
# This script is used to iniitate the MSVC DevShell
|
||||
$vs_devshell = @()
|
||||
@("enterprise", "professional", "community") | ForEach-Object {
|
||||
$vs_devshell_2022 = "C:\Program Files\Microsoft Visual Studio\2022\" + $_ + "\Common7\Tools\Launch-VsDevShell.ps1"
|
||||
$vs_devshell_2019 = "C:\Program Files (x86)\Microsoft Visual Studio\2019\" + $_ + "\Common7\Tools\Launch-VsDevShell.ps1"
|
||||
|
||||
$vs_devshell += @( $vs_devshell_2022, $vs_devshell_2019 )
|
||||
}
|
||||
|
||||
$found = $false
|
||||
foreach($path in $vs_devshell) {
|
||||
if (Test-Path $path) {
|
||||
write-host "Found $path"
|
||||
|
||||
Push-Location # Save the current path, loading the script will change it.
|
||||
& $path
|
||||
Pop-Location
|
||||
|
||||
$found = $true
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (-not $found) {
|
||||
write-host "MSVC DevShell: No valid path found"
|
||||
}
|
Reference in New Issue
Block a user