Move odin compiler and ols to their own directory separate from thirdparty packages: toolchain

This commit is contained in:
2024-03-19 18:52:33 -04:00
parent cbf47ca21d
commit 6d1a32b124
7 changed files with 36 additions and 14 deletions

View File

@ -14,7 +14,8 @@ $path_code = join-path $path_root 'code'
$path_build = join-path $path_root 'build'
$path_scripts = join-path $path_root 'scripts'
$path_thirdparty = join-path $path_root 'thirdparty'
$path_odin = join-path $path_thirdparty 'odin'
$path_toolchain = join-path $path_root 'toolchain'
$path_odin = join-path $path_toolchain 'odin'
if ( -not( test-path $path_build) ) {
new-item -ItemType Directory -Path $path_build
@ -160,7 +161,7 @@ push-location $path_root
$build_args += '.'
$build_args += $flag_build_mode_dll
$build_args += $flag_output_path + $module_dll
# $build_args += ($flag_collection + $pkg_collection_thirdparty)
$build_args += ($flag_collection + $pkg_collection_thirdparty)
$build_args += $flag_micro_architecture_native
# $build_args += $flag_use_separate_modules
$build_args += $flag_thread_count + $CoreCount_Physical
@ -189,7 +190,7 @@ push-location $path_root
$module_dll_pre_build_hash = get-filehash -path $module_dll -Algorithm MD5
}
# write-host $build_args
write-host $build_args
Invoke-WithColorCodedOutput -command { & $odin_compiler $build_args }
# Invoke-WithColorCodedOutput -command { & $raddbg "$odin_compiler" "$build_args" }
@ -238,7 +239,7 @@ push-location $path_root
$build_args += $command_build
$build_args += './host'
$build_args += $flag_output_path + $executable
# $build_args += ($flag_collection + $pkg_collection_thirdparty)
$build_args += ($flag_collection + $pkg_collection_thirdparty)
$build_args += $flag_micro_architecture_native
$build_args += $flag_use_separate_modules
$build_args += $flag_thread_count + $CoreCount_Physical

View File

@ -4,13 +4,16 @@ $path_root = git rev-parse --show-toplevel
$path_code = join-path $path_root 'code'
$path_build = join-path $path_root 'build'
$path_thirdparty = join-path $path_root 'thirdparty'
$path_toolchain = join-path $path_root 'toolchain'
$url_ols_repo = 'https://github.com/Ed94/ols'
$url_odin_repo = 'https://github.com/Ed94/Odin.git'
$url_ini_parser = 'https://github.com/laytan/odin-ini-parser.git'
$path_odin = join-path $path_thirdparty 'Odin'
$path_ini_parser = join-path $path_thirdparty 'ini'
$path_ols = join-path $path_thirdparty 'ols'
$url_backtrace_repo = 'https://github.com/Ed94/back.git'
$url_ini_parser = 'https://github.com/laytan/odin-ini-parser.git'
$url_odin_repo = 'https://github.com/Ed94/Odin.git'
$url_ols_repo = 'https://github.com/Ed94/ols'
$path_backtrace = join-path $path_thirdparty 'backtrace'
$path_ini_parser = join-path $path_thirdparty 'ini'
$path_odin = join-path $path_toolchain 'Odin'
$path_ols = join-path $path_toolchain 'ols'
$incremental_checks = Join-Path $PSScriptRoot 'helpers/incremental_checks.ps1'
. $incremental_checks
@ -18,6 +21,9 @@ $incremental_checks = Join-Path $PSScriptRoot 'helpers/incremental_checks.ps1'
if ( -not(Test-Path $path_thirdparty) ) {
new-item -ItemType Directory -Path $path_thirdparty
}
if ( -not(Test-Path $path_toolchain) ) {
new-item -ItemType Directory -Path $path_toolchain
}
$binaries_dirty = $false
@ -88,10 +94,20 @@ if (Test-Path -Path $path_ini_parser)
}
else
{
Write-Host "Cloning Odin repository..."
Write-Host "Cloning ini repository..."
git clone $url_ini_parser $path_ini_parser
}
if (test-path $path_backtrace)
{
git -C $path_backtrace pull
}
else
{
Write-Host "Cloning backtrace repository..."
git clone $url_backtrace_repo $path_backtrace
}
$path_vendor = join-path $path_odin 'vendor'
$path_vendor_raylib = join-path $path_vendor 'raylib'
$path_raylib_dlls = join-path $path_vendor_raylib 'windows'