mirror of
				https://github.com/Ed94/gencpp.git
				synced 2025-11-03 15:26:12 -08:00 
			
		
		
		
	GlobalAllocator fixes
- Made a gen script (does full build and test) build just builds gencpp now.
This commit is contained in:
		@@ -43,53 +43,3 @@ Push-Location $path_root
 | 
			
		||||
 | 
			
		||||
	& ninja $args_ninja
 | 
			
		||||
Pop-Location
 | 
			
		||||
 | 
			
		||||
Push-location $path_gen
 | 
			
		||||
# Run meta-program
 | 
			
		||||
	$gencpp = Join-Path $path_gen_build gencpp.exe
 | 
			
		||||
 | 
			
		||||
	Write-Host `nRunning tests...
 | 
			
		||||
	& $gencpp
 | 
			
		||||
 | 
			
		||||
# Format generated files
 | 
			
		||||
	Write-Host `nBeginning format...
 | 
			
		||||
	$formatParams = @(
 | 
			
		||||
		'-i'          # In-place
 | 
			
		||||
		'-style=file' # Search for a .clang-format file in the parent directory of the source file.
 | 
			
		||||
		'-verbose'
 | 
			
		||||
	)
 | 
			
		||||
 | 
			
		||||
	$include = @('*.gen.hpp', '*.gen.cpp')
 | 
			
		||||
	$exclude = $null
 | 
			
		||||
 | 
			
		||||
	$targetFiles = @(Get-ChildItem -Recurse -Path $path_gen -Include $include -Exclude $exclude | Select-Object -ExpandProperty FullName)
 | 
			
		||||
 | 
			
		||||
	clang-format $formatParams $targetFiles
 | 
			
		||||
	Write-Host "`nFormatting complete"
 | 
			
		||||
Pop-Location
 | 
			
		||||
 | 
			
		||||
# Build the program depending on generated files.
 | 
			
		||||
if ( -not( Test-Path $path_test_build ) )
 | 
			
		||||
{
 | 
			
		||||
Push-Location $path_test
 | 
			
		||||
	$args_meson = @()
 | 
			
		||||
	$args_meson += "setup"
 | 
			
		||||
	$args_meson += $path_test_build
 | 
			
		||||
 | 
			
		||||
# 	& meson $args_meson
 | 
			
		||||
Pop-Location
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
Push-Location $path_root
 | 
			
		||||
	$args_ninja = @()
 | 
			
		||||
	$args_ninja += "-C"
 | 
			
		||||
	$args_ninja += $path_test_build
 | 
			
		||||
 | 
			
		||||
	# ninja $args_ninja
 | 
			
		||||
Pop-Location
 | 
			
		||||
 | 
			
		||||
Push-Location $path_test
 | 
			
		||||
	$testcpp = Join-Path $path_test_build testcpp.exe
 | 
			
		||||
 | 
			
		||||
	# & $testcpp
 | 
			
		||||
Pop-Location
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user