Finished initial implmentation bootstrap generation and singleheader implementation.

This commit is contained in:
2023-07-25 15:12:51 -04:00
parent ebe049d3a0
commit 62b0ed2112
26 changed files with 336 additions and 95 deletions

View File

@ -60,10 +60,10 @@ $formatParams = @(
'-verbose'
)
$include = @('gencpp.hpp', 'gencpp.cpp')
$include = @('gen.hpp', 'gen.cpp', 'gen_dep.hpp', 'gen_dep.cpp')
$exclude = $null
$targetFiles = @(Get-ChildItem -Recurse -Path $path_project -Include $include -Exclude $exclude | Select-Object -ExpandProperty FullName)
$targetFiles = @(Get-ChildItem -Recurse -Path $path_project_gen -Include $include -Exclude $exclude | Select-Object -ExpandProperty FullName)
clang-format $formatParams $targetFiles
Write-Host "`nFormatting complete"

View File

@ -9,6 +9,7 @@ $path_project_build = Join-Path $path_project build
$path_singleheader_build = Join-Path $path_singleheader build
$path_project_gen = Join-Path $path_project gen
$path_singleheader_gen = Join-Path $path_singleheader gen
$path_x64 = Join-Path $path_root x64
if ( Test-Path $path_project_build)
{
@ -30,7 +31,12 @@ if ( Test-Path $path_gen_build )
Remove-Item $path_gen_build -Recurse
}
[string[]] $include = 'gen.hpp', 'gen.cpp'
if ( Test-Path $path_x64)
{
Remove-Item $path_x64 -Recurse
}
[string[]] $include = 'gen.hpp', 'gen.cpp', 'gen_dep.hpp', 'gen_dep.cpp'
[string[]] $exclude =
$files = Get-ChildItem -Recurse -Path $path_project_gen -Include $include -Exclude $exclude

View File

@ -18,7 +18,7 @@ $path_singleheader = Join-Path $path_root singleheader
$path_singleheader_build = Join-Path $path_singleheader build
$path_singleheader_gen = Join-Path $path_singleheader gen
write-host "`n`nBuilding gencpp bootstrap`n"
write-host "`n`nBuilding gencpp singleheader`n"
if ( -not( Test-Path $path_singleheader_build) )
{
@ -49,7 +49,7 @@ if ( -not(Test-Path($path_singleheader_gen) )) {
# Run meta-program
$gencpp_singleheader = Join-Path $path_singleheader_build gencpp_singleheader.exe
Write-Host `nRunning gencpp bootstrap...
Write-Host `nRunning gencpp singleheader...
& $gencpp_singleheader
# Format generated files
@ -60,7 +60,7 @@ $formatParams = @(
'-verbose'
)
$include = @('gencpp.hpp')
$include = @('gen.hpp')
$exclude = $null
$targetFiles = @(Get-ChildItem -Recurse -Path $path_project -Include $include -Exclude $exclude | Select-Object -ExpandProperty FullName)