mirror of
				https://github.com/Ed94/gencpp.git
				synced 2025-11-03 15:26:12 -08:00 
			
		
		
		
	Reorganization of files, refactors, doc updates (WIP)
Removing the gen. namespace from the files for components, dependencies, and file_processors. They are only necessary if the include directory is transparent, and in my case those are not. Made a docs directory. I'm offloading information from the main readme to there along with additional informationn I end up elaborating on down the line. Enum tables were moved to their own directory (project/enums). Library will not compile for now. Major refactor occuring with parsing related components.
This commit is contained in:
		@@ -1,45 +0,0 @@
 | 
			
		||||
[string] $type = $null
 | 
			
		||||
[string] $test = $false
 | 
			
		||||
 | 
			
		||||
foreach ( $arg in $args )
 | 
			
		||||
{
 | 
			
		||||
	if ( $arg -eq "test" )
 | 
			
		||||
	{
 | 
			
		||||
		$test = $true
 | 
			
		||||
	}
 | 
			
		||||
	else
 | 
			
		||||
	{
 | 
			
		||||
		$type = $arg
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
$path_root       = git rev-parse --show-toplevel
 | 
			
		||||
$path_build      = Join-Path $path_root build
 | 
			
		||||
$path_scripts    = Join-Path $path_root scripts
 | 
			
		||||
$path_test       = Join-Path $path_root test
 | 
			
		||||
$path_gen        = Join-Path $path_test gen
 | 
			
		||||
$path_test_build = Join-Path $path_test build
 | 
			
		||||
$path_gen_build  = Join-Path $path_gen  build
 | 
			
		||||
 | 
			
		||||
write-host "`n`nBuilding Test`n"
 | 
			
		||||
 | 
			
		||||
if ( -not( Test-Path $path_gen_build ) )
 | 
			
		||||
{
 | 
			
		||||
# Generate build files for meta-program
 | 
			
		||||
Push-Location $path_gen
 | 
			
		||||
	$args_meson  = @()
 | 
			
		||||
	$args_meson += "setup"
 | 
			
		||||
	$args_meson += $path_gen_build
 | 
			
		||||
 | 
			
		||||
	& meson $args_meson
 | 
			
		||||
Pop-Location
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
# Compile meta-program
 | 
			
		||||
Push-Location $path_root
 | 
			
		||||
	$args_ninja = @()
 | 
			
		||||
	$args_ninja += "-C"
 | 
			
		||||
	$args_ninja += $path_gen_build
 | 
			
		||||
 | 
			
		||||
	& ninja $args_ninja
 | 
			
		||||
Pop-Location
 | 
			
		||||
		Reference in New Issue
	
	Block a user