mirror of
https://github.com/Ed94/HandmadeHero.git
synced 2025-06-15 03:01:48 -07:00
Day 1 complete.
This commit is contained in:
@ -47,6 +47,11 @@ function run-compiler
|
||||
{
|
||||
param( $compiler, $unit, $compiler_args )
|
||||
|
||||
$compiler_args += @(
|
||||
($flag_define + 'UNICODE'),
|
||||
($flag_define + '_UNICODE')
|
||||
)
|
||||
|
||||
write-host "`Compiling $unit"
|
||||
write-host "Compiler config:"
|
||||
$compiler_args | ForEach-Object {
|
||||
@ -330,12 +335,15 @@ if ( $false ) {
|
||||
|
||||
#region Handmade Runtime
|
||||
|
||||
$lib_user32 = 'User32.lib'
|
||||
|
||||
$unit = Join-Path $path_project 'handmade_win32.cpp'
|
||||
$executable = Join-Path $path_build 'handmade_win32.exe'
|
||||
|
||||
$compiler_args = @()
|
||||
|
||||
$linker_args = @(
|
||||
$lib_user32,
|
||||
$flag_link_win_subsystem_windows
|
||||
)
|
||||
|
||||
|
@ -19,13 +19,13 @@ if (-not (Test-Path $path_temp)) {
|
||||
New-Item -ItemType Directory -Path $path_temp
|
||||
}
|
||||
|
||||
#pragma region gencpp
|
||||
#region gencpp
|
||||
Invoke-WebRequest -Uri $url -OutFile $destinationZip
|
||||
Expand-Archive -Path $destinationZip -DestinationPath $path_temp
|
||||
Move-Item -Path (Join-Path $path_temp "gen.hpp") -Destination $path_deps -Force
|
||||
#pragma endregion gencpp
|
||||
#endregion gencpp
|
||||
|
||||
#pragma region windows modular headers
|
||||
#region windows modular headers
|
||||
$repo = 'https://github.com/Leandros/WindowsHModular.git'
|
||||
|
||||
Push-Location $path_temp
|
||||
@ -37,6 +37,6 @@ if ( -not(test-path $path_deps_windows)) {
|
||||
Copy-Item -Recurse .\WindowsHModular\include\win32\* $path_deps_windows
|
||||
Remove-Item (Get-ChildItem -Path $path_deps_windows -Exclude '*.h' -Recurse -Force)
|
||||
Pop-Location
|
||||
#pragma endregion windows modular headers
|
||||
#endregion windows modular headers
|
||||
|
||||
Remove-Item $path_temp -Recurse -Force
|
||||
|
Reference in New Issue
Block a user