mirror of
				https://github.com/Ed94/gencpp.git
				synced 2025-11-03 15:26:12 -08:00 
			
		
		
		
	de-hardcode target_arch.psm1 import
This commit is contained in:
		@@ -2,7 +2,6 @@
 | 
				
			|||||||
# It will most likely need a partial rewrite to segment the build process into separate script invocations based on the OS.
 | 
					# It will most likely need a partial rewrite to segment the build process into separate script invocations based on the OS.
 | 
				
			||||||
# That or just rewrite it in an sh script and call it a day.
 | 
					# That or just rewrite it in an sh script and call it a day.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Import-Module ./helpers/target_arch.psm1
 | 
					 | 
				
			||||||
$target_arch        = Join-Path $PSScriptRoot 'helpers/target_arch.psm1'
 | 
					$target_arch        = Join-Path $PSScriptRoot 'helpers/target_arch.psm1'
 | 
				
			||||||
$devshell           = Join-Path $PSScriptRoot 'helpers/devshell.ps1'
 | 
					$devshell           = Join-Path $PSScriptRoot 'helpers/devshell.ps1'
 | 
				
			||||||
$format_cpp	        = Join-Path $PSScriptRoot 'helpers/format_cpp.psm1'
 | 
					$format_cpp	        = Join-Path $PSScriptRoot 'helpers/format_cpp.psm1'
 | 
				
			||||||
@@ -10,6 +9,8 @@ $refactor_unreal    = Join-Path $PSScriptRoot 'refactor_unreal.ps1'
 | 
				
			|||||||
$incremental_checks = Join-Path $PSScriptRoot 'helpers/incremental_checks.ps1'
 | 
					$incremental_checks = Join-Path $PSScriptRoot 'helpers/incremental_checks.ps1'
 | 
				
			||||||
$vendor_toolchain   = Join-Path $PSScriptRoot 'helpers/vendor_toolchain.ps1'
 | 
					$vendor_toolchain   = Join-Path $PSScriptRoot 'helpers/vendor_toolchain.ps1'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Import-Module $target_arch
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function Get-ScriptRepoRoot {
 | 
					function Get-ScriptRepoRoot {
 | 
				
			||||||
    $currentPath = $PSScriptRoot
 | 
					    $currentPath = $PSScriptRoot
 | 
				
			||||||
    while ($currentPath -ne $null -and $currentPath -ne "")
 | 
					    while ($currentPath -ne $null -and $currentPath -ne "")
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user